Mercurial > audio-send
view java/build.xml @ 26:56f83c170251
adding hard-to-compile artifacts for other systems
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 19 Nov 2011 19:17:37 -0700 |
parents | d51f1a2b4c30 |
children | f79bef1687c5 |
line wrap: on
line source
1 <project name="audio-send" default="linux64dist" 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 </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>29 <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"34 tofile="${native}/libopenal64.so"/>35 <jar jarfile="${dist}/audio-send-natives.jar"36 basedir="${nativeBase}"/>37 <delete dir="${nativeBase}"/>38 </target>40 <target name="artifactDist" depends="compile, native">41 <jar jarfile="${dist}/audio-send-natives.jar"42 basedir="${artifacts}"/>43 </target>45 <target name="clean" >46 <delete dir="${build}"/>47 <delete dir="${dist}"/>48 <delete dir="${headers}"/>49 <delete dir="${nativeBase}"/>50 </target>53 </project>