1 <project name="xwt" default="run" basedir=".">
3 <!-- required so that libgcj.jar doesn't interfere with non-gcj compilation -->
4 <property name="build.sysclasspath" value="first"/>
6 <property name="gcc-path" value="/usr/local/gcc"/>
7 <property name="build.compiler" value="jikes"/>
8 <property environment="env"/>
10 <!-- set up our classpath -->
12 <pathelement path="${envCLASSPATH}"/>
13 <pathelement path="bin/"/>
15 <include name="**/*.jar"/>
19 <!-- purges binaries we've built -->
22 find . -name \*\~ | xargs rm -f
23 find . -name \#\*\# | xargs rm -f
28 <!-- compiles all .java files into .class files; all other tasks predepend on this since they need the <taskdef/>'s -->
29 <target name="compile">
31 <echo message="compiling .java -> .class"/>
32 <javac destdir="bin/" deprecation="no">
34 <include name="**/*.java"/>
36 <!-- don't EVER include the following line anywhere else; it causes really bizarre errors -->
37 <pathelement location="${gcc-path}/share/libgcj.jar"/>
38 <path refid="classpath"/>
41 <taskdef name="bash" classname="org.xwt.tasks.BashTask">
42 <classpath path="bin/"/>
46 <target name="build" depends="compile">
47 <ant dir="." antfile="src/org/xwt/plat/${plat}.xml" target="build"/>
50 <target name="run" depends="compile,build">
51 <ant dir="." antfile="src/org/xwt/plat/${plat}.xml" target="run"/>
57 <!-- old javago optimization code - - reintegrate at some point
58 lib/javago.`uname` -threshold 300 -not-inline-constructor -not-use-invokespecial org/xwt/Box.class
59 lib/javago.`uname` -threshold 300 -not-inline-constructor -not-use-invokespecial org/xwt/Box.class
60 lib/javago.`uname` -threshold 200 -not-inline-constructor -not-use-invokespecial org/xwt/Surface.class
61 lib/javago.`uname` -threshold 50 -not-inline-constructor -not-use-invokespecial org/xwt/GetPutHandler*
62 lib/javago.`uname` -threshold 200 -not-inline-constructor -not-use-invokespecial org/xwt/util/DirtyList.class