OSDN Git Service

Shortcut hit detection in WidgetGroup, since groups UI are normally sized to encompas...
[mikumikustudio/libgdx-mikumikustudio.git] / build.xml
index 5d0dde8..a6682f4 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,24 +1,24 @@
 <project name="gdx" default="all" basedir=".">\r
        <description>libgdx distribution build file</description>\r
        <property environment="env" />\r
-       \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
        <!-- 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
@@ -61,7 +64,7 @@
                        <reference refid="classpath"/>\r
                </ant>\r
        </target>\r
-       \r
+\r
        <!-- gdx lwjgl backend -->\r
        <target name="gdx-backend-lwjgl" depends="gdx-core,gdx-openal">\r
                <path id="classpath">\r
                        <reference refid="jarfiles"/>\r
                </ant>\r
        </target>\r
-       \r
+\r
+       <!-- gdx jglfw backend -->\r
+       <target name="gdx-backend-jglfw" depends="gdx-core">\r
+               <mkdir dir="backends/gdx-backend-jglfw/libs"/>\r
+               <get src="http://libgdx.badlogicgames.com/jglfw/nightlies/dist/jglfw.jar" dest="backends/gdx-backend-jglfw/libs/jglfw.jar"/>\r
+               <get src="http://libgdx.badlogicgames.com/jglfw/nightlies/dist/jglfw-natives.jar" dest="backends/gdx-backend-jglfw/libs/gdx-backend-jglfw-natives.jar"/>\r
+               <path id="classpath">\r
+                       <pathelement location="${distDir}/gdx.jar"/>\r
+               </path>\r
+               <ant antfile="../../build-template.xml" dir="backends/gdx-backend-jglfw">\r
+                       <property name="jar" value="gdx-backend-jglfw"/>\r
+                       <reference refid="classpath"/>\r
+               </ant>\r
+       </target>\r
+\r
        <!-- gdx android backend -->\r
        <target name="gdx-backend-android" 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
+    \r
+    <!-- gdx robovm backend -->\r
+    <target name="gdx-backend-robovm" depends="gdx-core">\r
+               <path id="classpath">\r
+                       <pathelement location="${distDir}/gdx.jar"/>\r
+               </path>\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
        <!-- gdx ios-monotouch backend -->\r
        <target name="gdx-backend-iosmonotouch" depends="gdx-core">\r
                <path id="classpath">\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 processor -->\r
-       <target name="gdx-tiled-preprocessor" depends="gdx-core">\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
                        <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
-       <target name="gdx-controllers-desktop" depends="gdx-core,gdx-backend-lwjgl,gdx-jnigen,gdx-controllers">\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
-                       <pathelement location="${distDir}/gdx-backend-lwjgl.jar"/>\r
                        <pathelement location="${distDir}/extensions/gdx-jnigen/gdx-jnigen.jar"/>\r
                        <pathelement location="${distDir}/extensions/gdx-controllers/gdx-controllers.jar"/>\r
                </path>\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-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtApplicationConfiguration.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
+\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>\r
                <copy todir="${distDir}/ios/objectal" failonerror="false">\r
                        <fileset dir="backends/gdx-backend-iosmonotouch/libs/objectal"/>\r
-               </copy>         \r
-               \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="*.dll.mdb"/>\r
                        </fileset>\r
                </copy>\r
-               \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
                </copy>\r
        </target>\r
 \r
-       <target name="jars" \r
-depends="clean,gdx-setup-ui,gdx-core,gdx-openal,gdx-backend-lwjgl,gdx-backend-android,gdx-backend-gwt,gdx-backend-iosmonotouch,gdx-tools,gdx-tiled-preprocessor,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-core,gdx-openal,gdx-backend-lwjgl,gdx-backend-jglfw,gdx-backend-android,gdx-backend-gwt,gdx-backend-robovm,gdx-backend-iosmonotouch,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
                <!-- 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