SHARE
TWEET

ANT's build.xml

harpwood Apr 7th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <project name="xromatopaixnidia" default="release">
  4.     <property file="build.properties"/>
  5.     <property name="project.root" value="."/>
  6.     <property name="ane.dir" value="lib-ane"/>
  7.     <property name="deploy.dir" value="deploy"/>
  8.     <property name="src.dir" value="src"/>
  9.     <property name="lib.dir" value="lib"/>
  10.     <property name="assets.dir" value="assets"/>
  11.     <property name="swc.dir" value="swc"/>
  12.     <property name="keystore.dir" value="cert"/>
  13.     <property name="swc.file" value="xromatopaixnidia.swc"/>
  14.     <property name="swf.file" value="xromatopaixnidia.swf"/>
  15.     <property name="air.amxmlc" value="${air.sdk}/bin/amxmlc.bat"/>
  16.     <property name="air.adt" value="${air.sdk}/bin/adt.bat"/>
  17.     <property name="air.name" value="xromatopaixnidia"/>
  18.     <property name="airi.name" value="xromatopaixnidia"/>
  19.     <property name="air.storetype" value="PKCS12"/>
  20.     <property name="air.keystore" value="picoupicou-colorgame-ssl.p12"/>
  21.     <property name="app.name" value="xromatopaixnidia"/>
  22.     <property name="app.descriptor" value="xromatopaixnidia-app.xml"/>
  23.     <!-- ANEs -->
  24.     <property name="ane1" value="admob.ane"/>
  25.     <property name="ane2" value="androidSupport-arch.ane"/>
  26.     <property name="ane3" value="androidSupport-core.ane"/>
  27.     <property name="ane4" value="androidSupport-customtabs.ane"/>
  28.     <property name="ane5" value="androidSupport-v4.ane"/>
  29.     <property name="ane6" value="googlePlayServices_ads.ane"/>
  30.     <property name="ane7" value="googlePlayServices_adsLite.ane"/>
  31.     <property name="ane8" value="googlePlayServices_basement.ane"/>
  32.     <property name="ane9" value="overrideAir.ane"/>
  33.    
  34.     <!-- Clean -->
  35.     <target name="clean" description="Removes previous build artifacts">
  36.         <delete dir="${deploy.dir}"/>
  37.         <mkdir dir="${deploy.dir}"/>
  38.     </target>
  39.  
  40.     <!-- Copy Assets -->
  41.     <target name="copy" description="Copies dependencies">
  42.         <!-- Copy air description file -->
  43.         <copy file="${src.dir}/${app.descriptor}" tofile="${deploy.dir}/${app.descriptor}"/>
  44.         <!-- Copy Certificate file -->
  45.         <copy file="${keystore.dir}/${air.keystore}" tofile="${deploy.dir}/${air.keystore}"/>
  46.         <!-- Copy over the Flash assets swc -->
  47.         <copy file="${swc.dir}/${swc.file}" tofile="${lib.dir}/${swc.file}" overwrite="true"/>
  48.     </target>
  49.  
  50.     <!-- Compile -->
  51.     <target name="build" description="Compiles the project SWF">
  52.         <exec executable="${air.amxmlc}" failonerror="true">
  53.             <arg line="${src.dir}/Preloader.as"/>
  54.             <arg line="-library-path ${lib.dir}/${swc.file}"/>
  55.             <arg line="-external-library-path+=${ane.dir}/${ane1}"/>
  56.             <arg line="-external-library-path+=${ane.dir}/${ane2}"/>
  57.             <arg line="-external-library-path+=${ane.dir}/${ane3}"/>
  58.             <arg line="-external-library-path+=${ane.dir}/${ane4}"/>
  59.             <arg line="-external-library-path+=${ane.dir}/${ane5}"/>
  60.             <arg line="-external-library-path+=${ane.dir}/${ane6}"/>
  61.             <arg line="-external-library-path+=${ane.dir}/${ane7}"/>
  62.             <arg line="-external-library-path+=${ane.dir}/${ane8}"/>
  63.             <arg line="-external-library-path+=${ane.dir}/${ane9}"/>
  64.             <arg line="-frames.frame+=1,Preloader"/>
  65.             <arg line="-frames.frame+=2,Main"/>
  66.             <arg line="-default-frame-rate=30"/>
  67.             <arg line="-swf-version=43"/>
  68.             <arg line="-output ${deploy.dir}/${swf.file}"/>
  69.         </exec>
  70.     </target>
  71.  
  72.     <!-- Prepare AIRI -->
  73.     <target name="airi" description="prepare an airi file" depends="clean,copy,build">
  74.         <exec executable="${air.adt}" failonerror="true">
  75.             <arg line="-prepare ${airi.file}"/>
  76.             <arg line="${deploy.dir}/${app.descriptor}"/>
  77.             <arg line="${deploy.dir}"/>
  78.             <arg line="-extdir ${ane.dir}"/>
  79.         </exec>
  80.     </target>
  81.  
  82.     <!-- Release -->
  83.     <target name="release" description="Runs the targets needed for a release build" depends="clean,copy,build,airi,package-release" />
  84.     <target name="package-release" description="Packages up you Air application for release as an apk">
  85.         <exec executable="${air.adt}" failonerror="true">
  86.             <arg line="-package"/>
  87.             <arg line="-target apk-captive-runtime"/>
  88.             <arg line="-storetype ${air.storetype}"/>
  89.             <arg line="-keystore ${deploy.dir}/${air.keystore}"/>
  90.             <arg line="-storepass ${air.storepass}"/>
  91.             <arg line="${air.name}"/>
  92.             <arg line="${deploy.dir}/${app.descriptor}"/>
  93.             <arg line="${deploy.dir}/${app.name}.swf"/>
  94.             <arg line="-C ${deploy.dir} ${app.name}.swf" />
  95.              <arg line=" -extdir ${ane.dir}"/>
  96.         </exec>
  97.     </target>
  98.    
  99.    
  100.  
  101. </project>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top