Add JNativeHook to build file
authorTomas Wenström <tomas.wenstrom@gmail.com>
Sun, 18 Aug 2019 17:34:53 +0000 (19:34 +0200)
committerTomas Wenström <tomas.wenstrom@gmail.com>
Sun, 18 Aug 2019 17:34:53 +0000 (19:34 +0200)
build.xml

index 3802cff..4ec16b0 100644 (file)
--- a/build.xml
+++ b/build.xml
       <patternset refid="library.patterns"/>
     </fileset>
   </path>
-  
+
+  <path id="library.jnativehook.classpath">
+    <pathelement location="${basedir}/lib/jnativehook-2.1.0.jar"/>
+  </path>
+
   <!-- Modules -->
   
   
     <path refid="${module.jdk.classpath.cakelight}"/>
     <path refid="library.opencv.classpath"/>
     <path refid="library.pi4j.classpath"/>
+    <path refid="library.jnativehook.classpath"/>
   </path>
   
   <path id="cakelight.runtime.production.module.classpath">
     <pathelement location="${cakelight.output.dir}"/>
     <path refid="library.opencv.classpath"/>
     <path refid="library.pi4j.classpath"/>
+    <path refid="library.jnativehook.classpath"/>
   </path>
   
   <path id="cakelight.module.classpath">
     <pathelement location="${cakelight.output.dir}"/>
     <path refid="library.opencv.classpath"/>
     <path refid="library.pi4j.classpath"/>
+    <path refid="library.jnativehook.classpath"/>
   </path>
   
   <path id="cakelight.runtime.module.classpath">
     <pathelement location="${cakelight.output.dir}"/>
     <path refid="library.opencv.classpath"/>
     <path refid="library.pi4j.classpath"/>
+    <path refid="library.jnativehook.classpath"/>
   </path>
   
   
       <!-- TODO replace hard links -->
       <zipfileset includes="**/*.class" src="/opt/pi4j/lib/pi4j-core.jar" />
       <zipfileset includes="**/*.class" src="/usr/share/java/opencv.jar" />
+      <zipfileset includes="**/*.class" src="${module.cakelight.basedir}/lib/jnativehook-2.1.0.jar" />
       <manifest>
         <attribute name="Main-Class" value="kaka.cakelight.LedController" />
       </manifest>