| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <project name="GamePlay-Android" default="all" basedir=".">
- <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>
|