OSDN Git Service

Merge pull request #236 from xoppa/bullet
[mikumikustudio/libgdx-mikumikustudio.git] / build-mac-ios.xml
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"/>
6                 </ant>
7         </target>
8                 
9         <target name="core" depends="compile-jars">
10                 <ant antfile="build-macosx32.xml" dir="gdx/jni">
11                         <target name="clean"/>
12                         <target name="postcompile"/>
13                 </ant>
14                 <ant antfile="build-ios32.xml" dir="gdx/jni"/>
15                 <ant antfile="convert-ikvm.xml" dir=".">
16                         <property name="IN" value="-srcpath:gdx/src/ dist/gdx.jar"/>
17                         <property name="OUT" value="gdx/libs/ios32/gdx.dll"/>
18                 </ant>
19         </target>
20         
21         <target name="backend-iosmonotouch" depends="core">
22                 <ant antfile="convert-ikvm.xml" dir=".">
23                         <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:backends/gdx-backend-iosmonotouch/src/ dist/gdx-backend-iosmonotouch.jar"/>
24                         <property name="OUT" value="backends/gdx-backend-iosmonotouch/libs/ios32/gdx-backend-ios.dll"/>
25                 </ant>
26         </target>
27         
28         <target name="freetype" depends="core">
29                 <ant antfile="build-macosx32.xml" dir="extensions/gdx-freetype/jni">
30                         <target name="clean"/>
31                         <target name="postcompile"/>
32                 </ant>
33                 <ant antfile="build-ios32.xml" dir="extensions/gdx-freetype/jni"/>
34                 <ant antfile="convert-ikvm.xml" dir=".">
35                         <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:extensions/gdx-freetype/src/ dist/extensions/gdx-freetype/gdx-freetype.jar"/>
36                         <property name="OUT" value="extensions/gdx-freetype/libs/ios32/gdx-freetype.dll"/>
37                 </ant>
38         </target>
39         
40         <target name="bullet" depends="core">
41                 <ant antfile="build-macosx32.xml" dir="extensions/gdx-bullet/jni">
42                         <target name="clean"/>
43                         <target name="postcompile"/>
44                 </ant>
45                 <!--<ant antfile="build-ios32.xml" dir="extensions/gdx-bullet/jni"/>
46                 <ant antfile="convert-ikvm.xml" dir=".">
47                         <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:extensions/gdx-bullet/src/ dist/extensions/gdx-bullet/gdx-bullet.jar"/>
48                         <property name="OUT" value="extensions/gdx-bullet/libs/ios32/gdx-bullet.dll"/>
49                 </ant>-->
50         </target>
51         
52         <target name="controllers" depends="core">
53                 <ant antfile="build-macosx32.xml" dir="extensions/gdx-controllers/gdx-controllers-desktop/jni">
54                         <target name="clean"/>
55                         <target name="postcompile"/>
56                 </ant>
57         </target>
58         
59         <target name="audio" depends="core">
60                 <ant antfile="build-macosx32.xml" dir="extensions/gdx-audio/jni">
61                         <target name="clean"/>
62                         <target name="postcompile"/>
63                 </ant>
64         </target>
65         
66         <target name="image" depends="core">
67                 <ant antfile="build-macosx32.xml" dir="extensions/gdx-image/jni">
68                         <target name="clean"/>
69                         <target name="postcompile"/>
70                 </ant>
71         </target>
72         
73         <target name="all" depends="core,backend-iosmonotouch,freetype,bullet,audio,image,controllers"> 
74         </target>
75 </project>