<project name="gdx" default="all" basedir=".">\r
<description>libgdx distribution build file</description>\r
<property environment="env" />\r
- \r
- <!-- ndk directory -->\r
- <property name="env.NDK_HOME" value="/home/mzechner/android-ndk-r5"/>\r
- \r
+\r
<!-- library version -->\r
<property name="version" value="0.9.9-SNAPSHOT"/>\r
- \r
+\r
<!-- define distribution/output directory -->\r
<property name="distDir" value="${basedir}/dist"/>\r
- \r
+\r
<!-- should we build natives? -->\r
<property name="build-natives" value="false"/>\r
- \r
+\r
<!-- clean distribution/output directory -->\r
<target name="clean">\r
<delete dir="${distDir}"/>\r
</target>\r
- \r
+\r
<!-- build the core of the library plus all backends -->\r
<!-- gdx jnigen -->\r
<target name="gdx-jnigen">\r
<property name="build-natives" value="false"/>\r
</ant>\r
</target>\r
- \r
+\r
<!-- gdx setup ui, custom target -->\r
<target name="gdx-setup-ui">\r
<ant antfile="build.xml" dir="extensions/gdx-setup-ui/"/>\r
<copy tofile="${distDir}/gdx-setup-ui.jar" file="extensions/gdx-setup-ui/gdx-setup-ui.jar"/>\r
</target>\r
- \r
+ \r
+ <!-- new gdx setup -->\r
+ <target name="gdx-setup">\r
+ <fileset id="resourcefiles" dir="extensions/gdx-setup/src">\r
+ <exclude name="**/*.java"/>\r
+ </fileset>\r
+ <ant antfile="../../build-template.xml" dir="extensions/gdx-setup">\r
+ <property name="jar" value="gdx-setup"/>\r
+ <reference refid="resourcefiles"/>\r
+ </ant>\r
+ </target>\r
+\r
<!-- gdx core -->\r
<target name="gdx-core" depends="gdx-jnigen">\r
<path id="classpath">\r
<pathelement location="${distDir}/extensions/gdx-jnigen/gdx-jnigen.jar"/>\r
</path>\r
+ <fileset id="resourcefiles" dir="gdx/src">\r
+ <include name="com/badlogic/gdx/graphics/g3d/shaders/default.fragment.glsl"/>\r
+ <include name="com/badlogic/gdx/graphics/g3d/shaders/default.vertex.glsl"/>\r
+ <include name="com/badlogic/gdx/utils/arial-15.png"/>\r
+ <include name="com/badlogic/gdx/utils/arial-15.fnt"/>\r
+ </fileset>\r
<ant antfile="../build-template.xml" dir="gdx">\r
<property name="jar" value="gdx"/>\r
<reference refid="classpath"/>\r
+ <reference refid="resourcefiles"/>\r
</ant>\r
- <!-- the ndk clean process deletes all shared libs in libs/armeabi(-v7a), need to copy\r
- the GLES 2.0 bindings manually... -->\r
- <copy tofile="${distDir}/armeabi/libandroidgl20.so" file="gdx/dist/armeabi/libandroidgl20.so"/>\r
- <copy tofile="${distDir}/armeabi-v7a/libandroidgl20.so" file="gdx/dist/armeabi/libandroidgl20.so"/>\r
</target>\r
- \r
+\r
<!-- gdx openal, for all desktop backends -->\r
<target name="gdx-openal" depends="gdx-core">\r
<path id="classpath">\r
<reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
+\r
<!-- gdx gwt backend -->\r
<target name="gdx-backend-gwt" depends="gdx-core">\r
<path id="classpath">\r
<reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
- <!-- gdx ios-monotouch backend -->\r
- <target name="gdx-backend-iosmonotouch" depends="gdx-core">\r
+ \r
+ <!-- gdx robovm backend -->\r
+ <target name="gdx-backend-robovm" depends="gdx-core">\r
<path id="classpath">\r
<pathelement location="${distDir}/gdx.jar"/>\r
- <pathelement location="${basedir}/backends/gdx-backend-iosmonotouch/libs/monotouch-jars/monotouch-5.4.0.jar"/>\r
- <pathelement location="${basedir}/backends/gdx-backend-iosmonotouch/libs/monotouch-jars/mscorlib-4.0.jar"/>\r
- <pathelement location="${basedir}/backends/gdx-backend-iosmonotouch/libs/monotouch-jars/opentk-5.4.0.jar"/>\r
- <pathelement location="${basedir}/backends/gdx-backend-iosmonotouch/libs/monotouch-jars/system-2.1.jar"/>\r
- <pathelement location="${basedir}/backends/gdx-backend-iosmonotouch/libs/monotouch-jars/system-core-2.1.jar"/>\r
- <pathelement location="${basedir}/backends/gdx-backend-iosmonotouch/libs/monotouch-jars/system-data-2.1.jar"/>\r
- <pathelement location="${basedir}/backends/gdx-backend-iosmonotouch/libs/objectal/libObjectAL.jar"/>\r
</path>\r
- <ant antfile="../../build-template.xml" dir="backends/gdx-backend-iosmonotouch">\r
- <property name="jar" value="gdx-backend-iosmonotouch"/>\r
+ <ant antfile="fetch.xml">\r
+ <target name="fetch-robovm"/>\r
+ </ant>\r
+ <ant antfile="../../build-template.xml" dir="backends/gdx-backend-robovm">\r
+ <property name="jar" value="gdx-backend-robovm"/>\r
<reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
+\r
<!-- build the extensions -->\r
<!-- gdx tools -->\r
<target name="gdx-tools" depends="gdx-core,gdx-backend-lwjgl,gdx-backend-lwjgl">\r
<path id="classpath">\r
<pathelement location="${distDir}/gdx.jar"/>\r
- <pathelement location="${distDir}/gdx-backend-lwjgl.jar"/> \r
+ <pathelement location="${distDir}/gdx-backend-lwjgl.jar"/>\r
</path>\r
+ <fileset id="resourcefiles" dir="extensions/gdx-tools/assets"/>\r
<ant antfile="../../build-template.xml" dir="extensions/gdx-tools">\r
<property name="distDir" value="${distDir}/extensions/gdx-tools"/>\r
<property name="jar" value="gdx-tools"/>\r
<reference refid="classpath"/>\r
+ <reference refid="resourcefiles"/>\r
+ </ant>\r
+ </target>\r
+\r
+ <!-- gdx tiled preprocessor -->\r
+ <target name="gdx-tiled-preprocessor" depends="gdx-core,gdx-backend-lwjgl,gdx-tools">\r
+ <path id="classpath">\r
+ <pathelement location="${distDir}/gdx.jar"/>\r
+ <pathelement location="${distDir}/gdx-backend-lwjgl.jar"/>\r
+ <pathelement location="${distDir}/extensions/gdx-tools/gdx-tools.jar"/>\r
+ </path>\r
+ <ant antfile="../../build-template.xml" dir="extensions/gdx-tiled-preprocessor">\r
+ <property name="distDir" value="${distDir}/extensions/gdx-tiled-preprocessor"/>\r
+ <property name="jar" value="gdx-tiled-preprocessor"/>\r
+ <reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
+\r
<!-- gdx controllers -->\r
<target name="gdx-controllers" depends="gdx-core">\r
<path id="classpath">\r
<reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
+\r
<target name="gdx-controllers-desktop" depends="gdx-core,gdx-jnigen,gdx-controllers">\r
<path id="classpath">\r
<pathelement location="${distDir}/gdx.jar"/>\r
<reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
+\r
<target name="gdx-controllers-android" depends="gdx-core,gdx-backend-android,gdx-controllers">\r
<path id="classpath">\r
<pathelement location="${distDir}/gdx.jar"/>\r
<reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
+\r
<target name="gdx-controllers-gwt" depends="gdx-core,gdx-backend-gwt,gdx-controllers">\r
<path id="classpath">\r
<pathelement location="${distDir}/gdx.jar"/>\r
<pathelement location="${distDir}/gdx-backend-gwt.jar"/>\r
<pathelement location="${distDir}/extensions/gdx-controllers/gdx-controllers.jar"/>\r
+ <pathelement location="${basedir}/backends/gdx-backends-gwt/libs/gwt-dev.jar"/>\r
+ <pathelement location="${basedir}/backends/gdx-backends-gwt/libs/gwt-user.jar"/>\r
</path>\r
<ant antfile="../../../build-template.xml" dir="extensions/gdx-controllers/gdx-controllers-gwt">\r
<property name="distDir" value="${distDir}/extensions/gdx-controllers"/>\r
<reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
+\r
<!-- gdx image -->\r
<target name="gdx-image" depends="gdx-core">\r
<path id="classpath">\r
<reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
+\r
<!-- gdx audio -->\r
<target name="gdx-audio" depends="gdx-core">\r
<path id="classpath">\r
<reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
+\r
<!-- gdx freetype -->\r
<target name="gdx-freetype" depends="gdx-core">\r
<path id="classpath">\r
<reference refid="classpath"/>\r
</ant>\r
</target>\r
- \r
+\r
<!-- gdx bullet -->\r
<target name="gdx-bullet" depends="gdx-core">\r
<path id="classpath">\r
<reference refid="src"/>\r
</ant>\r
</target>\r
- \r
+\r
<!-- generates the javadoc for the core api and the application implementations -->\r
<target name="docs" depends="clean">\r
<javadoc destdir="${distDir}/docs/api" author="true" version="true" use="true"\r
]]></bottom>\r
<fileset dir="gdx/src" defaultexcludes="yes">\r
<include name="com/badlogic/gdx/**" />\r
+ <exclude name="com/badlogic/gdx/**/*.glsl"/>\r
<exclude name="com/badlogic/gdx/utils/arial-15.fnt" />\r
<exclude name="com/badlogic/gdx/utils/arial-15.png" />\r
<exclude name="com/badlogic/gdx/utils/XmlReader.rl" />\r
<exclude name="com/badlogic/gdx/utils/JsonReader.rl" />\r
- </fileset> \r
+ </fileset>\r
<fileset dir="backends" includes="gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw/JglfwApplication.java"/>\r
<fileset dir="backends" includes="gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglApplication.java"/>\r
<fileset dir="backends" includes="gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglCanvas.java"/>\r
<fileset dir="backends" includes="gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglApplet.java"/>\r
<fileset dir="backends" includes="gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidApplication.java"/>\r
<fileset dir="backends" includes="gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidApplicationConfiguration.java"/>\r
- <fileset dir="backends" includes="gdx-backend-iosmonotouch/src/com/badlogic/gdx/backends/ios/IOSApplication.java"/>\r
- <fileset dir="backends" includes="gdx-backend-iosmonotouch/src/com/badlogic/gdx/backends/ios/IOSApplicationConfiguration.java"/>\r
<fileset dir="backends" includes="gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtApplication.java"/>\r
<fileset dir="backends" includes="gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtApplicationConfiguration.java"/>\r
+ <fileset dir="backends" includes="gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/IOSApplication.java"/>\r
+ <fileset dir="backends" includes="gdx-backend-robovm/src/com/badlogic/gdx/backends/iosrobovm/IOSApplicationConfiguration.java"/>\r
</javadoc>\r
</target>\r
- \r
- <!-- assumes that all the .dll and .a files have been compiled on a Mac and copied on top \r
- of the current libgdx folder -->\r
- <target name="copy-iosfiles">\r
- <!-- copy dll and .a files as well as IKVM, monotouch and ObjectAL binaries to ios folder-->\r
- <copy todir="${distDir}/ios" flatten="true" failonerror="false">\r
- <fileset dir="gdx/libs/ios32/">\r
- <include name="*.a"/>\r
- <include name="*.dll"/>\r
- <include name="*.dll.mdb"/>\r
- </fileset>\r
- <fileset dir="backends/gdx-backend-iosmonotouch/libs/ios32">\r
- <include name="*.dll"/>\r
- <include name="*.dll.mdb"/>\r
- <include name="*.a"/>\r
- </fileset>\r
- </copy>\r
- <copy todir="${distDir}/ios/ikvm" failonerror="false">\r
- <fileset dir="backends/gdx-backend-iosmonotouch/libs/ikvm"/>\r
- </copy>\r
- <copy todir="${distDir}/ios/monotouch-jars" failonerror="false">\r
- <fileset dir="backends/gdx-backend-iosmonotouch/libs/monotouch-jars"/>\r
- </copy>\r
- <copy todir="${distDir}/ios/objectal" failonerror="false">\r
- <fileset dir="backends/gdx-backend-iosmonotouch/libs/objectal"/>\r
- </copy> \r
- \r
- <!-- copy freetype extension dll and .a files -->\r
- <copy todir="${distDir}/extensions/gdx-freetype/ios" failonerror="false">\r
- <fileset dir="extensions/gdx-freetype/libs/ios32">\r
- <include name="*.a"/>\r
- <include name="*.dll"/>\r
- <include name="*.dll.mdb"/>\r
- </fileset>\r
- </copy>\r
- \r
- <!-- copy bullet extension dll and .a files -->\r
- <copy todir="${distDir}/extensions/gdx-bullet/ios" failonerror="false">\r
- <fileset dir="extensions/gdx-bullet/libs/ios32">\r
- <include name="*.a"/>\r
- <include name="*.dll"/>\r
- <include name="*.dll.mdb"/>\r
- </fileset>\r
- </copy>\r
- </target>\r
\r
- <target name="jars" \r
-depends="clean,gdx-setup-ui,gdx-core,gdx-openal,gdx-backend-lwjgl,gdx-backend-jglfw,gdx-backend-android,gdx-backend-gwt,gdx-backend-iosmonotouch,gdx-tools,gdx-controllers,gdx-controllers-desktop,gdx-controllers-android,gdx-controllers-gwt,gdx-image,gdx-audio,gdx-freetype,gdx-bullet"/>\r
+ <target name="jars"\r
+depends="clean,gdx-setup-ui,gdx-setup,gdx-core,gdx-openal,gdx-backend-lwjgl,gdx-backend-jglfw,gdx-backend-android,gdx-backend-gwt,gdx-backend-robovm,gdx-tools,gdx-controllers,gdx-controllers-desktop,gdx-controllers-android,gdx-controllers-gwt,gdx-image,gdx-audio,gdx-freetype,gdx-bullet,gdx-tiled-preprocessor"/>\r
\r
- <target name="all" depends="jars,docs,copy-iosfiles">\r
+ <target name="all" depends="jars,docs">\r
<!-- copy distribution files (licences etc.) -->\r
- <copy tofile="${distDir}/README" file="gdx/dist/README"/>\r
- <copy tofile="${distDir}/LICENSE" file="gdx/dist/LICENSE"/>\r
- <copy tofile="${distDir}/CC-LICENSE" file="gdx/dist/CC-LICENSE"/>\r
- <copy tofile="${distDir}/AUTHORS" file="gdx/dist/AUTHORS"/>\r
- <copy tofile="${distDir}/CONTRIBUTORS" file="gdx/dist/CONTRIBUTORS"/>\r
- \r
+ <copy tofile="${distDir}/README" file="README.md"/>\r
+ <copy tofile="${distDir}/LICENSE" file="LICENSE"/>\r
+ <copy tofile="${distDir}/CC-LICENSE" file="CC-LICENSE"/>\r
+ <copy tofile="${distDir}/AUTHORS" file="AUTHORS"/>\r
+ <copy tofile="${distDir}/CONTRIBUTORS" file="CONTRIBUTORS"/>\r
+\r
<!-- zip dist dir -->\r
<zip destfile="libgdx-${version}.zip" basedir="${distDir}"/>\r
+ <checksum file="libgdx-${version}.zip" forceOverwrite="yes" />\r
</target>\r
</project>\r