home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 165
/
MOBICLIC165.ISO
/
mac
/
DATA
/
HOTE
/
gameEngine_as3
/
build.xml
next >
Wrap
Text File
|
2014-06-23
|
3KB
|
85 lines
<project name="Flex Ant Tasks Build Script" default="compile flex project">
<!-- load previously defined configuration properties file -->
<property file="build.properties" />
<!-- Project properties -->
<!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project -->
<!--<taskdef resource="flexTasks.tasks" classpath="${basedir}/lib/flexTasks.jar"/>-->
<target name="COMPILE GAME_ENGINE ALL">
<property name="DEBUG" value="true"/>
<antcall target="Compile SWC reference"/>
<antcall target="Compile TypesCapsules"/>
<antcall target="Compile GameEngine SWC"/>
<antcall target="Compile GameEngine SWF"/>
</target>
<target name="COMPILE GAME_ENGINE ALL RELEASE">
<property name="DEBUG" value="false"/>
<antcall target="Compile SWC reference"/>
<antcall target="Compile TypesCapsules"/>
<antcall target="Compile GameEngine SWC"/>
<antcall target="Compile GameEngine SWF"/>
</target>
<target name="Compile SWC reference">
<property name="CONFIG_FILE" value="${basedir}/reference.flex.compc.xml"/>
<exec executable="${COMPC.EXE}">
<arg line="-load-config+=${CONFIG_FILE}"/>
<arg line="-debug=${DEBUG}"/>
</exec>
</target>
<target name="Compile GameEngine SWC">
<property name="CONFIG_FILE" value="${basedir}/gameEngine_as3.flex.compc.xml"/>
<exec executable="${COMPC.EXE}">
<arg line="-load-config+=${CONFIG_FILE}"/>
<arg line="-debug=${DEBUG}"/>
</exec>
</target>
<target name="Compile GameEngine SWF">
<unzip
src="${basedir}/bin/GameEngine.swc"
dest="${basedir}/bin/GameEngine/"
/>
</target>
<target name="Compile TypesCapsules">
<property name="CONFIG_FILE" value="${basedir}/types_capsules.flex.compc.xml"/>
<exec executable="${COMPC.EXE}">
<arg line="-load-config+=${CONFIG_FILE}"/>
<arg line="-debug=${DEBUG}"/>
</exec>
</target>
<!-- Run the ASDoc executable and generate the ASDocs to the new output folder -->
<target name="compileASDoc">
<echo>ASDoc Compiling...</echo>
<property name="AppClasses.dir" value="${basedir}/src"/>
<property name="LibrarySrc.dir" value="${basedir}/types_capsules.flex.compc.xml"/>
<exec executable="${ASDOC.EXE}" failonerror="true">
<arg line="-doc-sources '${AppClasses.dir}'" />
<!--<arg line="-doc-sources '${LibrarySrc.dir}'" />
<arg line="-external-library-path '${LibrarySrc.dir}'" />
<arg line="-external-library-path '${Library.dir}/${LibraryLibs.dir}'" />-->
<arg line="-main-title 'Milan Presse API'" />
<arg line="-window-title 'Milan Presse API'" />
<arg line="-output '${basedir}/doc'" />
<!--<arg line="-package com.milanpresse.capsule 'Classes needed by capsules to compile.'" />
<arg line="-package com.milanpresse.engine 'GameEngine'" />-->
<arg line="-footer '_'" />
</exec>
<echo>ASDoc Compile Complete</echo>
</target>
</project>