rlm@27
|
1 <project name="audio-send" default="dist" 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@27
|
15 <mkdir dir="${dist}"/>
|
rlm@27
|
16 <mkdir dir="${native}"/>
|
rlm@24
|
17 </target>
|
rlm@24
|
18
|
rlm@24
|
19 <target name="compile" depends="prepare" >
|
rlm@24
|
20 <javac srcdir="${src}" destdir="${build}"
|
rlm@24
|
21 includeantruntime="false"/>
|
rlm@24
|
22 </target>
|
rlm@24
|
23
|
rlm@24
|
24 <target name="native" depends="prepare, compile" >
|
rlm@24
|
25 <javah class="com.aurellem.send.AudioSend"
|
rlm@24
|
26 destdir="${headers}"
|
rlm@24
|
27 classpath="${build}"
|
rlm@24
|
28 />
|
rlm@24
|
29 </target>
|
rlm@24
|
30
|
rlm@27
|
31 <target name="dist">
|
rlm@27
|
32 <jar jarfile="${dist}/audio-send.jar">
|
rlm@27
|
33 <fileset dir="${build}"/>
|
rlm@27
|
34 <fileset dir="${src}"/>
|
rlm@27
|
35 </jar>
|
rlm@27
|
36 </target>
|
rlm@27
|
37
|
rlm@26
|
38 <target name="linux64dist" depends="compile, native" >
|
rlm@24
|
39 <copy file="../build/libopenal.so.1.13.0"
|
rlm@24
|
40 tofile="${native}/libopenal64.so"/>
|
rlm@24
|
41 <jar jarfile="${dist}/audio-send-natives.jar"
|
rlm@24
|
42 basedir="${nativeBase}"/>
|
rlm@24
|
43 <delete dir="${nativeBase}"/>
|
rlm@24
|
44 </target>
|
rlm@24
|
45
|
rlm@26
|
46 <target name="artifactDist" depends="compile, native">
|
rlm@26
|
47 <jar jarfile="${dist}/audio-send-natives.jar"
|
rlm@26
|
48 basedir="${artifacts}"/>
|
rlm@26
|
49 </target>
|
rlm@26
|
50
|
rlm@24
|
51 <target name="clean" >
|
rlm@24
|
52 <delete dir="${build}"/>
|
rlm@24
|
53 <delete dir="${dist}"/>
|
rlm@24
|
54 <delete dir="${headers}"/>
|
rlm@24
|
55 <delete dir="${nativeBase}"/>
|
rlm@24
|
56 </target>
|
rlm@24
|
57
|
rlm@24
|
58
|
rlm@24
|
59 </project>
|
rlm@24
|
60
|