build.xml: automatically build tiles.png from source images
It should work to just type `ant'. The composed tiles.png will be generated in the 'build' subdirectory, and automatically inserted into the generated Jarfile. git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@715 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
4fdc4fb34f
commit
aad8ce76f2
2 changed files with 9 additions and 1 deletions
10
build.xml
10
build.xml
|
@ -44,6 +44,14 @@
|
||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="compose-tiles" depends="init-builddir,compile">
|
||||||
|
<java classname="micropolisj.build_tool.MakeTiles" classpath="${builddir}"
|
||||||
|
fork="true" dir="graphics">
|
||||||
|
<arg file="graphics/tiles.dat" />
|
||||||
|
<arg file="${builddir}/tiles.png" />
|
||||||
|
</java>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="compile" depends="init-builddir">
|
<target name="compile" depends="init-builddir">
|
||||||
<javac srcdir="${srcdir}"
|
<javac srcdir="${srcdir}"
|
||||||
destdir="${builddir}"
|
destdir="${builddir}"
|
||||||
|
@ -57,7 +65,7 @@
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build" depends="copy-resources,compile">
|
<target name="build" depends="copy-resources,compile,compose-tiles">
|
||||||
<pathconvert property="runtime-classpath" pathsep=" " refid="build-classpath">
|
<pathconvert property="runtime-classpath" pathsep=" " refid="build-classpath">
|
||||||
<map from="${basedir}" to="." />
|
<map from="${basedir}" to="." />
|
||||||
</pathconvert>
|
</pathconvert>
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 73 KiB |
Reference in a new issue