Mercurial > audio-send
changeset 24:d51f1a2b4c30
adding java build file
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 18 Nov 2011 16:05:47 -0700 |
parents | 45dc4f76e548 |
children | f4c7260d397a |
files | .hgignore java/build.xml |
diffstat | 2 files changed, 51 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/.hgignore Fri Nov 18 16:02:44 2011 -0700 1.2 +++ b/.hgignore Fri Nov 18 16:05:47 2011 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 syntax: glob 1.5 -build* 1.6 +build/* 1.7 html* 1.8 java/.classpath 1.9 java/.project
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/java/build.xml Fri Nov 18 16:05:47 2011 -0700 2.3 @@ -0,0 +1,50 @@ 2.4 +<project name="audio-send" default="dist" basedir="."> 2.5 + 2.6 + 2.7 + <property name="build" value="build"/> 2.8 + <property name="src" value="src"/> 2.9 + <property name="dist" value="dist"/> 2.10 + <property name="headers" value="headers"/> 2.11 + <property name="native" value="output/native/linux/audioSend"/> 2.12 + <property name="nativeBase" value="output"/> 2.13 + 2.14 + 2.15 + <target name="prepare"> 2.16 + <mkdir dir="${build}"/> 2.17 + <mkdir dir="${headers}"/> 2.18 + </target> 2.19 + 2.20 + <target name="compile" depends="prepare" > 2.21 + <javac srcdir="${src}" destdir="${build}" 2.22 + includeantruntime="false"/> 2.23 + </target> 2.24 + 2.25 + <target name="native" depends="prepare, compile" > 2.26 + <javah class="com.aurellem.send.AudioSend" 2.27 + destdir="${headers}" 2.28 + classpath="${build}" 2.29 + /> 2.30 + </target> 2.31 + 2.32 + 2.33 + <target name="dist" depends="compile, native" > 2.34 + <mkdir dir="${dist}"/> 2.35 + <jar jarfile="${dist}/audio-send.jar" basedir="${build}"/> 2.36 + <mkdir dir="${native}"/> 2.37 + <copy file="../build/libopenal.so.1.13.0" 2.38 + tofile="${native}/libopenal64.so"/> 2.39 + <jar jarfile="${dist}/audio-send-natives.jar" 2.40 + basedir="${nativeBase}"/> 2.41 + <delete dir="${nativeBase}"/> 2.42 + </target> 2.43 + 2.44 + <target name="clean" > 2.45 + <delete dir="${build}"/> 2.46 + <delete dir="${dist}"/> 2.47 + <delete dir="${headers}"/> 2.48 + <delete dir="${nativeBase}"/> 2.49 + </target> 2.50 + 2.51 + 2.52 +</project> 2.53 +