Fine-tune fire mode
[kaka/cakelight.git] / build.xml
index 3802cff..c9dc10e 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -54,9 +54,9 @@
   
   <!-- JDK definitions -->
   
-  <property name="jdk.bin.1.8" value="${jdk.home.1.8}/bin"/>
-  <path id="jdk.classpath.1.8">
-    <fileset dir="${jdk.home.1.8}">
+  <property name="jdk.bin" value="${jdk.home}/bin"/>
+  <path id="jdk.classpath">
+    <fileset dir="${jdk.home}">
       <include name="jre/lib/charsets.jar"/>
       <include name="jre/lib/ext/cldrdata.jar"/>
       <include name="jre/lib/ext/dnsns.jar"/>
@@ -77,9 +77,9 @@
     </fileset>
   </path>
   
-  <property name="project.jdk.home" value="${jdk.home.1.8}"/>
-  <property name="project.jdk.bin" value="${jdk.bin.1.8}"/>
-  <property name="project.jdk.classpath" value="jdk.classpath.1.8"/>
+  <property name="project.jdk.home" value="${jdk.home}"/>
+  <property name="project.jdk.bin" value="${jdk.bin}"/>
+  <property name="project.jdk.classpath" value="jdk.classpath"/>
   
   
   <!-- Project Libraries -->
       <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>
   <target name="build.modules" depends="init, clean, compile.module.cakelight, jar" description="build all modules"/>
   
   <target name="all" depends="build.modules" description="build all"/>
+
+  <target name="build" depends="compile.module.cakelight" description="build cakelight"/>
 </project>
\ No newline at end of file