jan_flanders

Untitled

Dec 27th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.88 KB | None | 0 0
  1. <!--
  2.  
  3.  This file will get included twice - once at the beginning - once at the end.
  4.  
  5.  The first time though, the "vars" section is parsed, and this is where you can
  6.   set variables to control the setup of the standard compilers and install paths etc.
  7.  
  8.  The second time, the "exes" section is parsed, and you can modify the linkers/compilers
  9.   by adding flags to these executables.
  10.  
  11. -->
  12.  
  13. <xml>
  14.  
  15.   <!-- This section is parses at the beginning of the build .... -->
  16.   <section id="vars">
  17.  
  18.      <!-- Use this to control the SDK used when compiling for iphone/iphonesim, and the
  19.           default is not found, or you wish to use a specific version -->
  20.      <!-- <set name="IPHONE_VER" value="4.2" /> -->
  21.  
  22.      <!-- If you put all your SDKs in one directory, then you can just set this
  23.          single variable.  If you put them in exactly this place, then you should not
  24.          need to setup anything ! -->
  25.      <set name="SDK_ROOT" value="c:\SDKs\" unless="SDK_ROOT" if="windows" />
  26.      <set name="SDK_ROOT" value="${HOME}/SDKs/" unless="SDK_ROOT" />
  27.  
  28.  
  29.      <!-- ANDROID_NDK_ROOT is required for building android binaries. See:
  30.            http://developer.android.com/sdk/ndk/index.html -->
  31.      <set name="ANDROID_NDK_ROOT" value="${SDK_ROOT}/android-ndk-r6" unless="ANDROID_NDK_ROOT" />
  32.  
  33.      <!-- ant is required to build android packages. See:
  34.            http://ant.apache.org/bindownload.cgi -->
  35.      <set name="ANT_HOME" value="${SDK_ROOT}/ant" unless="ANT_HOME" />
  36.  
  37.      <!-- The ANDROID_SDK is required for building androis packages. See
  38.            http://developer.android.com/sdk/index.html -->
  39.      <set name="ANDROID_SDK" value="${SDK_ROOT}/android-sdk" unless="ANDROID_SDK" />
  40.  
  41.      <!-- The Java development kit (which should include the java runtime) is
  42.         also required for android dev. Make sure to get the 32 bit version! -->
  43.  
  44.      <set name="JAVA_HOME" value="${SDK_ROOT}/java_jdk" unless="JAVA_HOME" />
  45.  
  46.  
  47.  
  48.      <!-- If you want to control how many compilers get spawned .
  49.          The default will use the number of processors.
  50.          Reducing this to 1 can help deciphering error messages. -->
  51.      <!-- <set name="HXCPP_COMPILE_THREADS" value="1" /> -->
  52.  
  53.      <!-- Add this if your compiler does not support precompiled headers -->
  54.      <!-- <set name="NO_PRECOMPILED_HEADERS" value="1"/> -->
  55.  
  56.      <!-- Older versions of gcc do not suport the @file syntax for an obj file list
  57.          and precompiled headers.  Set this if you have these issues -->
  58.      <!-- <set name="GCC_OLD" value="1" /> -->
  59.  
  60.  
  61.      <!-- Skip the "stripping" phase.  This will leave extra symbols in you exe, which
  62.          may allow reverse engineering and larger file sizes.  You might want to do
  63.          this to debug some problems though. -->
  64.      <!-- <set name="nostrip" value="1" /> -->
  65.  
  66.      <!-- Let the system detect the latest version of MSVC on windows
  67.          (otherwise must setup the environment yourself) -->
  68.      <!-- Disable with <set name="NO_AUTO_MSVC" value="1" /> -->
  69.      <!-- To disable specific versions: <setenv name="VS110COMNTOOLS" value="disable" /> -->
  70.  
  71.  
  72.   </section>
  73.  
  74.  
  75.   <!-- Use this section to add flags to the compilers and linkers -->
  76.   <section id="exes">
  77.  
  78.      <!-- Compiling on windows ... -->
  79.      <compiler id="MSVC" if="windows">
  80.         <!-- Example adding a build flag -->
  81.         <flag value = "-Ie:/VS8//PlatformSDK/Include"/>
  82.      </compiler>
  83.  
  84.      <!-- Linking on windows ... -->
  85.      <linker id="dll" if="windows">
  86.         <!-- Add library paths for windows (DirectX needed for building NME) -->
  87.         <flag value = "-libpath:e:\VS8\DirectXSDK\Lib\x86"/>
  88.         <flag value = "-libpath:e:/VS8/PlatformSDK/Lib"/>
  89.      </linker>
  90.  
  91.      <!-- And for linking executables -->
  92.      <linker id="exe" if="windows">
  93.         <flag value = "-libpath:e:/VS8/PlatformSDK/Lib"/>
  94.      </linker>
  95.  
  96.   </section>
  97.  
  98. </xml>
Advertisement
Add Comment
Please, Sign In to add comment