1 <project name="gdx-ios-build" default="all" basedir=".">
2 <!-- compile the distribution so we have all jars we need, do not compile natives -->
3 <target name="compile-jars">
4 <ant antfile="build.xml" dir=".">
5 <property name="compile-natives" value="false"/>
9 <target name="ios-java-only">
10 <ant antfile="build.xml" target="gdx-backend-iosmonotouch" dir=".">
11 <property name="compile-natives" value="false"/>
13 <ant antfile="convert-ikvm.xml" dir=".">
14 <property name="IN" value="-srcpath:gdx/src/ dist/gdx.jar"/>
15 <property name="OUT" value="gdx/libs/ios32/gdx.dll"/>
17 <ant antfile="convert-ikvm.xml" dir=".">
18 <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:backends/gdx-backend-iosmonotouch/src/ dist/gdx-backend-iosmonotouch.jar"/>
19 <property name="OUT" value="backends/gdx-backend-iosmonotouch/libs/ios32/gdx-backend-ios.dll"/>
23 <target name="core" depends="compile-jars">
24 <ant antfile="build-macosx32.xml" dir="gdx/jni">
25 <target name="clean"/>
26 <target name="postcompile"/>
29 <ant antfile="build-ios32.xml" dir="gdx/jni"/>
30 <ant antfile="convert-ikvm.xml" dir=".">
31 <property name="IN" value="-srcpath:gdx/src/ dist/gdx.jar"/>
32 <property name="OUT" value="gdx/libs/ios32/gdx.dll"/>
36 <target name="backend-iosmonotouch" depends="core">
37 <ant antfile="convert-ikvm.xml" dir=".">
38 <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:backends/gdx-backend-iosmonotouch/src/ dist/gdx-backend-iosmonotouch.jar"/>
39 <property name="OUT" value="backends/gdx-backend-iosmonotouch/libs/ios32/gdx-backend-ios.dll"/>
43 <target name="backend-robovm" depends="core">
44 <exec dir="backends/gdx-backend-robovm" executable="/bin/bash">
45 <arg value="build-objectal.sh"/>
49 <target name="freetype" depends="core">
50 <ant antfile="build-macosx32.xml" dir="extensions/gdx-freetype/jni">
51 <target name="clean"/>
52 <target name="postcompile"/>
54 <ant antfile="build-ios32.xml" dir="extensions/gdx-freetype/jni"/>
55 <ant antfile="convert-ikvm.xml" dir=".">
56 <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:extensions/gdx-freetype/src/ dist/extensions/gdx-freetype/gdx-freetype.jar"/>
57 <property name="OUT" value="extensions/gdx-freetype/libs/ios32/gdx-freetype.dll"/>
61 <target name="bullet" depends="core">
62 <ant antfile="build-macosx32.xml" dir="extensions/gdx-bullet/jni">
63 <target name="clean"/>
64 <target name="postcompile"/>
66 <ant antfile="build-ios32.xml" dir="extensions/gdx-bullet/jni"/>
67 <ant antfile="convert-ikvm.xml" dir=".">
68 <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:extensions/gdx-bullet/src/ dist/extensions/gdx-bullet/gdx-bullet.jar"/>
69 <property name="OUT" value="extensions/gdx-bullet/libs/ios32/gdx-bullet.dll"/>
73 <target name="controllers" depends="core">
74 <ant antfile="build-macosx32.xml" dir="extensions/gdx-controllers/gdx-controllers-desktop/jni">
75 <target name="clean"/>
76 <target name="postcompile"/>
80 <target name="audio" depends="core">
81 <ant antfile="build-macosx32.xml" dir="extensions/gdx-audio/jni">
82 <target name="clean"/>
83 <target name="postcompile"/>
87 <target name="image" depends="core">
88 <ant antfile="build-macosx32.xml" dir="extensions/gdx-image/jni">
89 <target name="clean"/>
90 <target name="postcompile"/>
94 <target name="all" depends="core,backend-iosmonotouch,backend-robovm,freetype,bullet,audio,image,controllers">