Mercurial > audio-send
comparison 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 |
comparison
equal
deleted
inserted
replaced
23:45dc4f76e548 | 24:d51f1a2b4c30 |
---|---|
1 <project name="audio-send" default="dist" basedir="."> | |
2 | |
3 | |
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 | |
11 | |
12 <target name="prepare"> | |
13 <mkdir dir="${build}"/> | |
14 <mkdir dir="${headers}"/> | |
15 </target> | |
16 | |
17 <target name="compile" depends="prepare" > | |
18 <javac srcdir="${src}" destdir="${build}" | |
19 includeantruntime="false"/> | |
20 </target> | |
21 | |
22 <target name="native" depends="prepare, compile" > | |
23 <javah class="com.aurellem.send.AudioSend" | |
24 destdir="${headers}" | |
25 classpath="${build}" | |
26 /> | |
27 </target> | |
28 | |
29 | |
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> | |
40 | |
41 <target name="clean" > | |
42 <delete dir="${build}"/> | |
43 <delete dir="${dist}"/> | |
44 <delete dir="${headers}"/> | |
45 <delete dir="${nativeBase}"/> | |
46 </target> | |
47 | |
48 | |
49 </project> | |
50 |