view java/build.xml @ 310:3d4f60b4a4af

added hxc-intro-pkmn for seeing which pokemon is displayed in oak's intro, and sxc-intro-pkmn! for modifying it.
author Dylan Holmes <ocsenave@gmail.com>
date Sun, 01 Apr 2012 01:50:34 -0500
parents 9d3769896d66
children 09b3bc0b71b5
line wrap: on
line source
1 <project name="gb-bindings" default="dist" basedir=".">
3 <property name="build" value="build"/>
4 <property name="src" value="src"/>
5 <property name="dist" value="dist"/>
6 <property name="headers" value="headers"/>
7 <property name="artifacts" value="../artifacts"/>
9 <target name="prepare">
10 <mkdir dir="${build}"/>
11 <mkdir dir="${headers}"/>
12 <mkdir dir="${dist}"/>
13 </target>
15 <target name="compile" depends="prepare" >
16 <javac srcdir="${src}" destdir="${build}"
17 includeantruntime="false"/>
18 </target>
20 <target name="native" depends="prepare, compile" >
21 <javah class="com.aurellem.gb.Gb"
22 destdir="${headers}"
23 classpath="${build}"/>
24 </target>
26 <target name="dist">
27 <jar jarfile="${dist}/gb-bindings.jar">
28 <fileset dir="${build}"/>
29 <fileset dir="${src}"/>
30 </jar>
31 </target>
33 <target name="all" depends="native, dist"/>
36 <target name="clean" >
37 <delete dir="${build}"/>
38 <delete dir="${dist}"/>
39 <delete dir="${headers}"/>
40 </target>
42 </project>