build.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <project name="GamePlay-Android" default="all" basedir=".">
  2. <macrodef name="build-native">
  3. <attribute name="location"/>
  4. <sequential>
  5. <!-- Non-Windows execs -->
  6. <exec osfamily="unix" dir="@{location}/android" executable="android">
  7. <arg value="update"/>
  8. <arg value="project"/>
  9. <arg value="-t"/>
  10. <arg value="1"/>
  11. <arg value="-p"/>
  12. <arg value="."/>
  13. <arg value="-s"/>
  14. </exec>
  15. <exec osfamily="unix" dir="@{location}/android" executable="ndk-build"/>
  16. <!-- Windows execs -->
  17. <exec osfamily="windows" dir="@{location}/android" executable="cmd">
  18. <arg value="/c"/>
  19. <arg value="android.bat"/>
  20. <arg value="update"/>
  21. <arg value="project"/>
  22. <arg value="-t"/>
  23. <arg value="1"/>
  24. <arg value="-p"/>
  25. <arg value="."/>
  26. <arg value="-s"/>
  27. </exec>
  28. <exec osfamily="windows" dir="@{location}/android" executable="cmd">
  29. <arg value="/c"/>
  30. <arg value="ndk-build"/>
  31. </exec>
  32. </sequential>
  33. </macrodef>
  34. <target name="all">
  35. <build-native location="gameplay"/>
  36. <build-native location="samples/browser"/>
  37. <build-native location="samples/character"/>
  38. <build-native location="samples/lua"/>
  39. <build-native location="samples/mesh"/>
  40. <build-native location="samples/particles"/>
  41. <build-native location="samples/racer"/>
  42. <build-native location="samples/spaceship"/>
  43. </target>
  44. </project>