| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <!--
- - 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=".">
- <fail message="OS not supported (must be Windows, MacOS X, or Linux)">
- <condition>
- <not>
- <or>
- <os family="unix"/> <!-- includes MacOS X -->
- <os family="windows"/>
- </or>
- </not>
- </condition>
- </fail>
- <macrodef name="build-native">
- <attribute name="location"/>
- <sequential>
- <!-- Non-Windows execs -->
- <exec osfamily="unix" dir="@{location}/android" executable="android">
- <arg value="update"/>
- <arg value="project"/>
- <arg value="-t"/>
- <arg value="1"/>
- <arg value="-p"/>
- <arg value="."/>
- <arg value="-s"/>
- </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"/>
- <arg value="update"/>
- <arg value="project"/>
- <arg value="-t"/>
- <arg value="1"/>
- <arg value="-p"/>
- <arg value="."/>
- <arg value="-s"/>
- </exec>
- <exec osfamily="windows" dir="@{location}/android" executable="cmd">
- <arg value="/c"/>
- <arg value="ndk-build"/>
- </exec>
- </sequential>
- </macrodef>
- <target name="all">
- <build-native location="gameplay"/>
- <build-native location="samples/browser"/>
- <build-native location="samples/character"/>
- <build-native location="samples/lua"/>
- <build-native location="samples/mesh"/>
- <build-native location="samples/particles"/>
- <build-native location="samples/racer"/>
- <build-native location="samples/spaceship"/>
- </target>
- </project>
|