OSDN Git Service

Merge pull request #788 from hneuer/stream
[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="ios-java-only">
10         <ant antfile="build.xml" target="gdx-backend-iosmonotouch" dir=".">
11                         <property name="compile-natives" value="false"/>
12                 </ant>
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"/>
16                 </ant>
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"/>
20                 </ant>
21     </target>
22     
23         <target name="core" depends="compile-jars">
24                 <ant antfile="build-macosx32.xml" dir="gdx/jni">
25                         <target name="clean"/>
26                         <target name="postcompile"/>
27                 </ant>
28         
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"/>
33                 </ant>
34         </target>
35         
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"/>
40                 </ant>
41         </target>
42     
43     <target name="backend-robovm" depends="core">
44         <exec dir="backends/gdx-backend-robovm" executable="/bin/bash">
45             <arg value="build-objectal.sh"/>
46         </exec>
47         </target>
48         
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"/>
53                 </ant>
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"/>
58                 </ant>
59         </target>
60         
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"/>
65                 </ant>
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"/>
70                 </ant>
71         </target>
72         
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"/>
77                 </ant>
78         </target>
79         
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"/>
84                 </ant>
85         </target>
86         
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"/>
91                 </ant>
92         </target>
93         
94         <target name="all" depends="core,backend-iosmonotouch,backend-robovm,freetype,bullet,audio,image,controllers">  
95         </target>
96 </project>