|
|
@@ -1,16 +1,11 @@
|
|
|
-<!--
|
|
|
- - Overall Android native build script (for convenience)
|
|
|
- -
|
|
|
- - If new GamePlay samples are added please keep this list
|
|
|
- - in sync.
|
|
|
- -->
|
|
|
-<project name="GamePlay-Android" default="all" basedir=".">
|
|
|
+<!-- Android build script -->
|
|
|
+<project name="gameplay" default="all" basedir=".">
|
|
|
|
|
|
- <fail message="OS not supported (must be Windows, MacOS X, or Linux)">
|
|
|
+ <fail message="OS not supported. Supported platforms: Windows, MacOS X or Linux.">
|
|
|
<condition>
|
|
|
<not>
|
|
|
<or>
|
|
|
- <os family="unix"/> <!-- includes MacOS X -->
|
|
|
+ <os family="unix"/>
|
|
|
<os family="windows"/>
|
|
|
</or>
|
|
|
</not>
|
|
|
@@ -21,7 +16,6 @@
|
|
|
<attribute name="location"/>
|
|
|
<sequential>
|
|
|
|
|
|
- <!-- Non-Windows execs -->
|
|
|
<exec osfamily="unix" dir="@{location}/android" executable="android">
|
|
|
<arg value="update"/>
|
|
|
<arg value="project"/>
|
|
|
@@ -33,7 +27,6 @@
|
|
|
</exec>
|
|
|
<exec osfamily="unix" dir="@{location}/android" executable="ndk-build"/>
|
|
|
|
|
|
- <!-- Windows execs -->
|
|
|
<exec osfamily="windows" dir="@{location}/android" executable="cmd">
|
|
|
<arg value="/c"/>
|
|
|
<arg value="android.bat"/>
|
|
|
@@ -49,7 +42,7 @@
|
|
|
<arg value="/c"/>
|
|
|
<arg value="ndk-build"/>
|
|
|
</exec>
|
|
|
-
|
|
|
+
|
|
|
</sequential>
|
|
|
</macrodef>
|
|
|
|
|
|
@@ -63,4 +56,5 @@
|
|
|
<build-native location="samples/racer"/>
|
|
|
<build-native location="samples/spaceship"/>
|
|
|
</target>
|
|
|
+
|
|
|
</project>
|