home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 161 / MOBICLIC161.ISO / pc / DATA / HOTE / gameEngine_as3 / build.xml < prev    next >
Text File  |  2014-01-15  |  3KB  |  85 lines

  1. <project name="Flex Ant Tasks Build Script" default="compile flex project">
  2.  
  3.     <!-- load previously defined configuration properties file -->
  4.     <property file="build.properties" />
  5.     
  6.     <!-- Project properties --> 
  7.     
  8.  
  9.     <!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project -->
  10.     <!--<taskdef resource="flexTasks.tasks" classpath="${basedir}/lib/flexTasks.jar"/>--> 
  11.     
  12.  
  13.  
  14.  
  15.     
  16.     <target name="COMPILE GAME_ENGINE ALL">
  17.         <property name="DEBUG" value="true"/>
  18.         <antcall target="Compile SWC reference"/>
  19.         <antcall target="Compile TypesCapsules"/>
  20.         <antcall target="Compile GameEngine SWC"/>
  21.         <antcall target="Compile GameEngine SWF"/>
  22.     </target>
  23.  
  24.     
  25.     <target name="COMPILE GAME_ENGINE ALL RELEASE">
  26.         <property name="DEBUG" value="false"/>
  27.         <antcall target="Compile SWC reference"/>
  28.         <antcall target="Compile TypesCapsules"/>
  29.         <antcall target="Compile GameEngine SWC"/>
  30.         <antcall target="Compile GameEngine SWF"/>
  31.     </target>
  32.     
  33.     <target name="Compile SWC reference">
  34.         <property name="CONFIG_FILE" value="${basedir}/reference.flex.compc.xml"/> 
  35.         <exec executable="${COMPC.EXE}">
  36.             <arg line="-load-config+=${CONFIG_FILE}"/>
  37.             <arg line="-debug=${DEBUG}"/>
  38.         </exec>
  39.     </target>
  40.     <target name="Compile GameEngine SWC">
  41.         <property name="CONFIG_FILE" value="${basedir}/gameEngine_as3.flex.compc.xml"/> 
  42.         <exec executable="${COMPC.EXE}">
  43.             <arg line="-load-config+=${CONFIG_FILE}"/>
  44.              <arg line="-debug=${DEBUG}"/>
  45.         </exec>
  46.     </target>
  47.     <target name="Compile GameEngine SWF">
  48.         <unzip 
  49.         src="${basedir}/bin/GameEngine.swc" 
  50.         dest="${basedir}/bin/GameEngine/"
  51.         />
  52.     </target>
  53.     
  54.     <target name="Compile TypesCapsules">
  55.         <property name="CONFIG_FILE" value="${basedir}/types_capsules.flex.compc.xml"/> 
  56.         <exec executable="${COMPC.EXE}">
  57.             <arg line="-load-config+=${CONFIG_FILE}"/>
  58.             <arg line="-debug=${DEBUG}"/>
  59.             
  60.         </exec>
  61.     </target>
  62.     
  63. <!-- Run the ASDoc executable and generate the ASDocs to the new output folder -->
  64.     <target name="compileASDoc">
  65.         <echo>ASDoc Compiling...</echo>
  66.         <property name="AppClasses.dir" value="${basedir}/src"/> 
  67.         <property name="LibrarySrc.dir" value="${basedir}/types_capsules.flex.compc.xml"/> 
  68.         <exec executable="${ASDOC.EXE}" failonerror="true">
  69.             <arg line="-doc-sources '${AppClasses.dir}'" />
  70.             <!--<arg line="-doc-sources '${LibrarySrc.dir}'" />
  71.             <arg line="-external-library-path '${LibrarySrc.dir}'" />
  72.             <arg line="-external-library-path '${Library.dir}/${LibraryLibs.dir}'" />-->
  73.             <arg line="-main-title 'Milan Presse API'" />
  74.             <arg line="-window-title 'Milan Presse API'" />
  75.             <arg line="-output '${basedir}/doc'" />
  76.             <!--<arg line="-package com.milanpresse.capsule 'Classes needed by capsules to compile.'" />
  77.             <arg line="-package com.milanpresse.engine 'GameEngine'" />-->
  78.             <arg line="-footer '_'" />
  79.         </exec>
  80.         <echo>ASDoc Compile Complete</echo>
  81.     </target>
  82.  
  83.  
  84.     </project>
  85.