This commit is contained in:
Martin Haye 2014-09-11 06:48:04 -07:00
commit a480dc8c96
3 changed files with 46 additions and 0 deletions

View File

@ -1007,6 +1007,7 @@ class PackPartitions
readCode("render", "src/raycast/build/render.b")
readCode("expand", "src/raycast/build/expand.b")
readCode("fontEngine", "src/font/build/fontEngine.b")
readCode("tileEngine", "src/tile/build/tile.b")
println "Reading modules."
readModule("gameloop", "src/plasma/build/gameloop.b")

View File

@ -38,6 +38,8 @@
<ant dir="${src.dir}/raycast" target="build" useNativeBasedir="true" inheritAll="false"/>
<echo>Building font engine.</echo>
<ant dir="${src.dir}/font" target="build" useNativeBasedir="true" inheritAll="false"/>
<echo>Building tile engine.</echo>
<ant dir="${src.dir}/tile" target="build" useNativeBasedir="true" inheritAll="false"/>
<!-- Pack the game data -->
<echo>Packing game and code resources.</echo>

View File

@ -0,0 +1,43 @@
<?xml version="1.0"?>
<project name="tile" default="build">
<property name="projName" value="tile"/> <!-- base part of output bin name -->
<property name="src.dir" location="."/>
<property name="include.dir" location="../include"/>
<property file="${include.dir}/build.props"/> <!-- needs to define ACME_BIN_DIR -->
<property name="build.dir" value="${src.dir}/build"/>
<property name="ACME_TOOL" location="${ACME_BIN_DIR}/acme"/>
<property name="ASM_SETTINGS" value="-f plain"/>
<target name="all">
<antcall target="clean"/>
<antcall target="build"/>
</target>
<target name="clean">
<delete failonerror="false" dir="${build.dir}"/>
</target>
<target name="build">
<!-- Create build directory -->
<mkdir dir="${build.dir}"/>
<!-- Assemble all .s files -->
<apply executable="${ACME_TOOL}" dir="${src.dir}"
relative="true" parallel="false" failonerror="true" verbose="true">
<fileset dir="${src.dir}" includes="*.s"/>
<mapper type="glob" from="*.s" to="${build.dir}/*.b"/>
<arg line="${ASM_SETTINGS}"/>
<arg value="-o"/>
<targetfile/>
<srcfile/>
</apply>
</target>
</project>