annotate java/build.xml @ 564:a5cb3f8d12ee

simplified return program.
author Robert McIntyre <rlm@mit.edu>
date Fri, 31 Aug 2012 11:01:22 -0500
parents 7ef5c73ea8fa
children
rev   line source
rlm@44 1 <project name="gb-bindings" default="dist" basedir=".">
rlm@44 2
rlm@44 3 <property name="build" value="build"/>
rlm@44 4 <property name="src" value="src"/>
rlm@44 5 <property name="dist" value="dist"/>
rlm@44 6 <property name="headers" value="headers"/>
rlm@44 7 <property name="artifacts" value="../artifacts"/>
rlm@524 8 <property name="lib" value="lib"/>
rlm@524 9
rlm@524 10 <path id="classpath">
rlm@524 11 <pathelement path="${lib}/tritonus_aos-0.3.6.jar"/>
rlm@524 12 <pathelement path="${lib}/tritonus_share-0.3.6.jar"/>
rlm@524 13 </path>
rlm@524 14
rlm@44 15
rlm@44 16 <target name="prepare">
rlm@44 17 <mkdir dir="${build}"/>
rlm@44 18 <mkdir dir="${headers}"/>
rlm@44 19 <mkdir dir="${dist}"/>
rlm@44 20 </target>
rlm@44 21
rlm@44 22 <target name="compile" depends="prepare" >
rlm@44 23 <javac srcdir="${src}" destdir="${build}"
rlm@524 24 classpathref="classpath"
rlm@44 25 includeantruntime="false"/>
rlm@44 26 </target>
rlm@44 27
rlm@44 28 <target name="native" depends="prepare, compile" >
rlm@44 29 <javah class="com.aurellem.gb.Gb"
rlm@44 30 destdir="${headers}"
rlm@44 31 classpath="${build}"/>
rlm@44 32 </target>
rlm@44 33
rlm@488 34 <target name="dist" depends="native">
rlm@44 35 <jar jarfile="${dist}/gb-bindings.jar">
rlm@44 36 <fileset dir="${build}"/>
rlm@44 37 <fileset dir="${src}"/>
rlm@44 38 </jar>
rlm@44 39 </target>
rlm@44 40
rlm@488 41 <target name="all" depends="dist"/>
rlm@44 42
rlm@44 43 <target name="clean" >
rlm@44 44 <delete dir="${build}"/>
rlm@44 45 <delete dir="${dist}"/>
rlm@44 46 <delete dir="${headers}"/>
rlm@44 47 </target>
rlm@44 48
rlm@44 49 </project>
rlm@44 50