Mercurial > audio-send
comparison java/build.xml @ 27:f79bef1687c5
separated some tasks in build.xml
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 19 Nov 2011 19:25:21 -0700 |
parents | 56f83c170251 |
children |
comparison
equal
deleted
inserted
replaced
26:56f83c170251 | 27:f79bef1687c5 |
---|---|
1 <project name="audio-send" default="linux64dist" basedir="."> | 1 <project name="audio-send" default="dist" basedir="."> |
2 | 2 |
3 | 3 |
4 <property name="build" value="build"/> | 4 <property name="build" value="build"/> |
5 <property name="src" value="src"/> | 5 <property name="src" value="src"/> |
6 <property name="dist" value="dist"/> | 6 <property name="dist" value="dist"/> |
10 <property name="artifacts" value="../artifacts"/> | 10 <property name="artifacts" value="../artifacts"/> |
11 | 11 |
12 <target name="prepare"> | 12 <target name="prepare"> |
13 <mkdir dir="${build}"/> | 13 <mkdir dir="${build}"/> |
14 <mkdir dir="${headers}"/> | 14 <mkdir dir="${headers}"/> |
15 <mkdir dir="${dist}"/> | |
16 <mkdir dir="${native}"/> | |
15 </target> | 17 </target> |
16 | 18 |
17 <target name="compile" depends="prepare" > | 19 <target name="compile" depends="prepare" > |
18 <javac srcdir="${src}" destdir="${build}" | 20 <javac srcdir="${src}" destdir="${build}" |
19 includeantruntime="false"/> | 21 includeantruntime="false"/> |
24 destdir="${headers}" | 26 destdir="${headers}" |
25 classpath="${build}" | 27 classpath="${build}" |
26 /> | 28 /> |
27 </target> | 29 </target> |
28 | 30 |
31 <target name="dist"> | |
32 <jar jarfile="${dist}/audio-send.jar"> | |
33 <fileset dir="${build}"/> | |
34 <fileset dir="${src}"/> | |
35 </jar> | |
36 </target> | |
37 | |
29 <target name="linux64dist" depends="compile, native" > | 38 <target name="linux64dist" depends="compile, native" > |
30 <mkdir dir="${dist}"/> | |
31 <jar jarfile="${dist}/audio-send.jar" basedir="${build}"/> | |
32 <mkdir dir="${native}"/> | |
33 <copy file="../build/libopenal.so.1.13.0" | 39 <copy file="../build/libopenal.so.1.13.0" |
34 tofile="${native}/libopenal64.so"/> | 40 tofile="${native}/libopenal64.so"/> |
35 <jar jarfile="${dist}/audio-send-natives.jar" | 41 <jar jarfile="${dist}/audio-send-natives.jar" |
36 basedir="${nativeBase}"/> | 42 basedir="${nativeBase}"/> |
37 <delete dir="${nativeBase}"/> | 43 <delete dir="${nativeBase}"/> |