annotate java/build.xml @ 115:39fb0cbab25e

working on preliminary bootstrap code
author Robert McIntyre <rlm@mit.edu>
date Fri, 16 Mar 2012 16:52:29 -0500
parents 9d3769896d66
children 09b3bc0b71b5
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@44 8
rlm@44 9 <target name="prepare">
rlm@44 10 <mkdir dir="${build}"/>
rlm@44 11 <mkdir dir="${headers}"/>
rlm@44 12 <mkdir dir="${dist}"/>
rlm@44 13 </target>
rlm@44 14
rlm@44 15 <target name="compile" depends="prepare" >
rlm@44 16 <javac srcdir="${src}" destdir="${build}"
rlm@44 17 includeantruntime="false"/>
rlm@44 18 </target>
rlm@44 19
rlm@44 20 <target name="native" depends="prepare, compile" >
rlm@44 21 <javah class="com.aurellem.gb.Gb"
rlm@44 22 destdir="${headers}"
rlm@44 23 classpath="${build}"/>
rlm@44 24 </target>
rlm@44 25
rlm@44 26 <target name="dist">
rlm@44 27 <jar jarfile="${dist}/gb-bindings.jar">
rlm@44 28 <fileset dir="${build}"/>
rlm@44 29 <fileset dir="${src}"/>
rlm@44 30 </jar>
rlm@44 31 </target>
rlm@44 32
rlm@44 33 <target name="all" depends="native, dist"/>
rlm@44 34
rlm@44 35
rlm@44 36 <target name="clean" >
rlm@44 37 <delete dir="${build}"/>
rlm@44 38 <delete dir="${dist}"/>
rlm@44 39 <delete dir="${headers}"/>
rlm@44 40 </target>
rlm@44 41
rlm@44 42 </project>
rlm@44 43