11-Feb megacz Picture.java: added 'abstract' keyword
-
+15-Feb megacz GCJ.xml, Linux.xml, Win32.xml: fixed linkage bug
<srcfile/>
<arg value='-o'/>
<targetfile/>
- <fileset dir='src/'>
+ <fileset dir='src/' includes='${javafiles}'>
<include name='org/xwt/*.java'/>
<include name='org/xwt/util/*.java'/>
<include name='org/xwt/plat/GCJ.java'/>
- <include name='org/xwt/plat/${subplat}.java'/>
<include name='org/bouncycastle/**/*.java'/>
<include name='org/mozilla/**/*.java'/>
<exclude name='org/xwt/Trap.java'/>
<srcfile/>
<arg value='-o'/>
<targetfile/>
- <fileset dir='src/' includes='org/xwt/plat/${subplat}.cc'/>
+ <fileset dir='src/' includes='${ccfiles}'/>
<mapper type='glob' from='*.cc' to='*-nat.o'/>
</apply>
<arg value='--main=org.xwt.Main'/>
<arg line='-o bin-${plat}/${binaryname}'/>
<srcfile/>
- <arg line='-L${gcc-path}/lib ${linkflags}'/>
+ <arg line='${linkflags}'/>
</apply>
</target>
<target name="build">
<property name="gcc-target" value=""/>
- <property name="linkflags" value="-L/usr/X11R6/lib -lX11 -lXext --static"/>
+ <property name="linkflags" value="-L${gcc-path}/lib -L/usr/X11R6/lib -lX11 -lXext --static"/>
<property name="binaryname" value="xwt"/>
- <property name="subplat" value="X11"/>
+ <property name="ccfiles" value="org/xwt/plat/X11.cc,org/xwt/plat/POSIX.cc"/>
+ <property name="javafiles" value="org/xwt/plat/X11.java,org/xwt/plat/POSIX.java"/>
<ant target="build" antfile="src/org/xwt/plat/GCJ.xml"/>
</target>
<property name="gcc-target" value="i686-pc-mingw32-"/>
<property name="linkflags" value="-Wl,--subsystem,windows -lcomdlg32"/>
<property name="binaryname" value="xwt.exe"/>
- <property name="subplat" value="Win32"/>
+ <property name="javafiles" value="org/xwt/plat/Win32.java"/>
+ <property name="ccfiles" value="org/xwt/plat/Win32.cc"/>
<ant target="build" antfile="src/org/xwt/plat/GCJ.xml"/>
</target>