view java/build.xml @ 24:d51f1a2b4c30

adding java build file
author Robert McIntyre <rlm@mit.edu>
date Fri, 18 Nov 2011 16:05:47 -0700
parents
children 56f83c170251
line wrap: on
line source
1 <project name="audio-send" default="dist" basedir=".">
4 <property name="build" value="build"/>
5 <property name="src" value="src"/>
6 <property name="dist" value="dist"/>
7 <property name="headers" value="headers"/>
8 <property name="native" value="output/native/linux/audioSend"/>
9 <property name="nativeBase" value="output"/>
12 <target name="prepare">
13 <mkdir dir="${build}"/>
14 <mkdir dir="${headers}"/>
15 </target>
17 <target name="compile" depends="prepare" >
18 <javac srcdir="${src}" destdir="${build}"
19 includeantruntime="false"/>
20 </target>
22 <target name="native" depends="prepare, compile" >
23 <javah class="com.aurellem.send.AudioSend"
24 destdir="${headers}"
25 classpath="${build}"
26 />
27 </target>
30 <target name="dist" depends="compile, native" >
31 <mkdir dir="${dist}"/>
32 <jar jarfile="${dist}/audio-send.jar" basedir="${build}"/>
33 <mkdir dir="${native}"/>
34 <copy file="../build/libopenal.so.1.13.0"
35 tofile="${native}/libopenal64.so"/>
36 <jar jarfile="${dist}/audio-send-natives.jar"
37 basedir="${nativeBase}"/>
38 <delete dir="${nativeBase}"/>
39 </target>
41 <target name="clean" >
42 <delete dir="${build}"/>
43 <delete dir="${dist}"/>
44 <delete dir="${headers}"/>
45 <delete dir="${nativeBase}"/>
46 </target>
49 </project>