annotate java/build.xml @ 26:56f83c170251

adding hard-to-compile artifacts for other systems
author Robert McIntyre <rlm@mit.edu>
date Sat, 19 Nov 2011 19:17:37 -0700
parents d51f1a2b4c30
children f79bef1687c5
rev   line source
rlm@26 1 <project name="audio-send" default="linux64dist" basedir=".">
rlm@24 2
rlm@24 3
rlm@24 4 <property name="build" value="build"/>
rlm@24 5 <property name="src" value="src"/>
rlm@24 6 <property name="dist" value="dist"/>
rlm@24 7 <property name="headers" value="headers"/>
rlm@24 8 <property name="native" value="output/native/linux/audioSend"/>
rlm@24 9 <property name="nativeBase" value="output"/>
rlm@26 10 <property name="artifacts" value="../artifacts"/>
rlm@24 11
rlm@24 12 <target name="prepare">
rlm@24 13 <mkdir dir="${build}"/>
rlm@24 14 <mkdir dir="${headers}"/>
rlm@24 15 </target>
rlm@24 16
rlm@24 17 <target name="compile" depends="prepare" >
rlm@24 18 <javac srcdir="${src}" destdir="${build}"
rlm@24 19 includeantruntime="false"/>
rlm@24 20 </target>
rlm@24 21
rlm@24 22 <target name="native" depends="prepare, compile" >
rlm@24 23 <javah class="com.aurellem.send.AudioSend"
rlm@24 24 destdir="${headers}"
rlm@24 25 classpath="${build}"
rlm@24 26 />
rlm@24 27 </target>
rlm@24 28
rlm@26 29 <target name="linux64dist" depends="compile, native" >
rlm@24 30 <mkdir dir="${dist}"/>
rlm@24 31 <jar jarfile="${dist}/audio-send.jar" basedir="${build}"/>
rlm@24 32 <mkdir dir="${native}"/>
rlm@24 33 <copy file="../build/libopenal.so.1.13.0"
rlm@24 34 tofile="${native}/libopenal64.so"/>
rlm@24 35 <jar jarfile="${dist}/audio-send-natives.jar"
rlm@24 36 basedir="${nativeBase}"/>
rlm@24 37 <delete dir="${nativeBase}"/>
rlm@24 38 </target>
rlm@24 39
rlm@26 40 <target name="artifactDist" depends="compile, native">
rlm@26 41 <jar jarfile="${dist}/audio-send-natives.jar"
rlm@26 42 basedir="${artifacts}"/>
rlm@26 43 </target>
rlm@26 44
rlm@24 45 <target name="clean" >
rlm@24 46 <delete dir="${build}"/>
rlm@24 47 <delete dir="${dist}"/>
rlm@24 48 <delete dir="${headers}"/>
rlm@24 49 <delete dir="${nativeBase}"/>
rlm@24 50 </target>
rlm@24 51
rlm@24 52
rlm@24 53 </project>
rlm@24 54