view java/build.xml @ 33:3caceef436ea tip

formatting for web
author Robert McIntyre <rlm@mit.edu>
date Sat, 11 Feb 2012 12:25:55 -0700
parents f79bef1687c5
children
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"/>
10 <property name="artifacts" value="../artifacts"/>
12 <target name="prepare">
13 <mkdir dir="${build}"/>
14 <mkdir dir="${headers}"/>
15 <mkdir dir="${dist}"/>
16 <mkdir dir="${native}"/>
17 </target>
19 <target name="compile" depends="prepare" >
20 <javac srcdir="${src}" destdir="${build}"
21 includeantruntime="false"/>
22 </target>
24 <target name="native" depends="prepare, compile" >
25 <javah class="com.aurellem.send.AudioSend"
26 destdir="${headers}"
27 classpath="${build}"
28 />
29 </target>
31 <target name="dist">
32 <jar jarfile="${dist}/audio-send.jar">
33 <fileset dir="${build}"/>
34 <fileset dir="${src}"/>
35 </jar>
36 </target>
38 <target name="linux64dist" depends="compile, native" >
39 <copy file="../build/libopenal.so.1.13.0"
40 tofile="${native}/libopenal64.so"/>
41 <jar jarfile="${dist}/audio-send-natives.jar"
42 basedir="${nativeBase}"/>
43 <delete dir="${nativeBase}"/>
44 </target>
46 <target name="artifactDist" depends="compile, native">
47 <jar jarfile="${dist}/audio-send-natives.jar"
48 basedir="${artifacts}"/>
49 </target>
51 <target name="clean" >
52 <delete dir="${build}"/>
53 <delete dir="${dist}"/>
54 <delete dir="${headers}"/>
55 <delete dir="${nativeBase}"/>
56 </target>
59 </project>