<project name="gdx-ios-build" default="all" basedir=".">
- <!-- compile the distribution so we have all jars we need, do not compile natives -->
- <target name="compile-jars">
- <ant antfile="build.xml" dir=".">
- <property name="compile-natives" value="false"/>
- </ant>
- </target>
-
- <target name="ios-java-only">
- <ant antfile="build.xml" target="gdx-backend-iosmonotouch" dir=".">
- <property name="compile-natives" value="false"/>
- </ant>
- <ant antfile="convert-ikvm.xml" dir=".">
- <property name="IN" value="-srcpath:gdx/src/ dist/gdx.jar"/>
- <property name="OUT" value="gdx/libs/ios32/gdx.dll"/>
- </ant>
- <ant antfile="convert-ikvm.xml" dir=".">
- <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:backends/gdx-backend-iosmonotouch/src/ dist/gdx-backend-iosmonotouch.jar"/>
- <property name="OUT" value="backends/gdx-backend-iosmonotouch/libs/ios32/gdx-backend-ios.dll"/>
- </ant>
- </target>
- <target name="core" depends="compile-jars">
+ <target name="core">
<ant antfile="build-macosx32.xml" dir="gdx/jni">
<target name="clean"/>
<target name="postcompile"/>
</ant>
-
<ant antfile="build-ios32.xml" dir="gdx/jni"/>
- <ant antfile="convert-ikvm.xml" dir=".">
- <property name="IN" value="-srcpath:gdx/src/ dist/gdx.jar"/>
- <property name="OUT" value="gdx/libs/ios32/gdx.dll"/>
- </ant>
</target>
- <target name="backend-iosmonotouch" depends="core">
- <ant antfile="convert-ikvm.xml" dir=".">
- <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:backends/gdx-backend-iosmonotouch/src/ dist/gdx-backend-iosmonotouch.jar"/>
- <property name="OUT" value="backends/gdx-backend-iosmonotouch/libs/ios32/gdx-backend-ios.dll"/>
- </ant>
- </target>
-
<target name="backend-robovm" depends="core">
<exec dir="backends/gdx-backend-robovm" executable="/bin/bash">
<arg value="build-objectal.sh"/>
<target name="postcompile"/>
</ant>
<ant antfile="build-ios32.xml" dir="extensions/gdx-freetype/jni"/>
- <ant antfile="convert-ikvm.xml" dir=".">
- <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:extensions/gdx-freetype/src/ dist/extensions/gdx-freetype/gdx-freetype.jar"/>
- <property name="OUT" value="extensions/gdx-freetype/libs/ios32/gdx-freetype.dll"/>
- </ant>
</target>
<target name="bullet" depends="core">
<target name="postcompile"/>
</ant>
<ant antfile="build-ios32.xml" dir="extensions/gdx-bullet/jni"/>
- <ant antfile="convert-ikvm.xml" dir=".">
- <property name="IN" value="-r:gdx/libs/ios32/gdx.dll -srcpath:extensions/gdx-bullet/src/ dist/extensions/gdx-bullet/gdx-bullet.jar"/>
- <property name="OUT" value="extensions/gdx-bullet/libs/ios32/gdx-bullet.dll"/>
- </ant>
</target>
<target name="controllers" depends="core">
</ant>
</target>
- <target name="all" depends="core,backend-iosmonotouch,backend-robovm,freetype,bullet,audio,image,controllers">
+ <target name="all" depends="core,backend-robovm,freetype,bullet,audio,image,controllers">
</target>
</project>
<echo message="compiling natives code"/>\r
<ant antfile="build.xml" target="clean" dir="${jni}"/>\r
<ant antfile="build.xml" target="all" dir="${jni}"/>\r
- <!-- copy shared libs for android -->\r
- <copy failonerror="false" todir="${distDir}/armeabi">\r
- <fileset dir="${libs}/armeabi">\r
- <include name="**/*.so"/>\r
- </fileset>\r
- </copy>\r
- <copy failonerror="false" todir="${distDir}/armeabi-v7a">\r
- <fileset dir="${libs}/armeabi-v7a">\r
- <include name="**/*.so"/>\r
- </fileset>\r
- </copy>\r
- <copy failonerror="false" todir="${distDir}/x86">\r
- <fileset dir="${libs}/x86">\r
- <include name="**/*.so"/>\r
- </fileset>\r
- </copy>\r
</target>\r
\r
<!-- create source and class jar -->\r
</fileset>\r
</copy>\r
\r
- <!-- copy shared libs for android -->\r
+ <!-- copy shared libs for android & ios -->\r
<copy failonerror="false" todir="${distDir}/armeabi">\r
<fileset dir="${libs}/armeabi">\r
<include name="**/*.so"/>\r
<include name="**/*.so"/>\r
</fileset>\r
</copy>\r
+ <copy failonerror="false" todir="${distDir}/ios">\r
+ <fileset dir="${libs}/ios32">\r
+ <include name="**/*.a"/>\r
+ </fileset>\r
+ </copy>\r
\r
<!-- class jar -->\r
<jar destfile="${distDir}/${jar}.jar">\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
<!-- library version -->\r
<property name="version" value="0.9.9-SNAPSHOT"/>\r
\r
</ant>\r
</target>\r
\r
- <!-- gdx ios-monotouch backend -->\r
- <target name="gdx-backend-iosmonotouch" 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
- <reference refid="classpath"/>\r
- </ant>\r
- </target>\r
-\r
<!-- build the extensions -->\r
<!-- gdx tools -->\r
<target name="gdx-tools" depends="gdx-core,gdx-backend-lwjgl,gdx-backend-lwjgl">\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-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
+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-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="README.md"/>\r
<copy tofile="${distDir}/LICENSE" file="LICENSE"/>\r
<!-- the compilerPrefix for the C & C++ compilers -->\r
<property name="compilerPrefix" value=""/> \r
<property name="iphoneos-platform" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin"/>\r
- <property name="iphoneos-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/"/>\r
+ <property name="iphoneos-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/"/>\r
<property name="iphonesimulator-platform" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin"/>\r
- <property name="iphonesimulator-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/"/>\r
+ <property name="iphonesimulator-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk"/>\r
\r
<!-- define gcc compiler, options and files to compile -->\r
- <property name="gcc" value="${compilerPrefix}gcc"/> \r
+ <property name="gcc" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"/> \r
<property name="gcc-opts" value="-c -Wall -O2 -miphoneos-version-min=5.1"/>\r
<fileset id="gcc-files" dir="./">\r
<exclude name="target/"/> \r
- <include name="memcpy_wrap.c"/>\r
- <include name="**/*.c"/>\r
+ <include name="memcpy_wrap.c"/>
+ <include name="**/*.c"/>
\r
- <exclude name="src/bullet/BulletMultiThreaded/GpuSoftBodySolvers/**"/>\r
+ <exclude name="src/bullet/BulletMultiThreaded/GpuSoftBodySolvers/**"/>
\r
</fileset>\r
\r
<!-- define g++ compiler, options and files to compile -->\r
- <property name="g++" value="${compilerPrefix}g++"/>\r
+ <property name="g++" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"/>\r
<property name="g++-opts" value="-c -Wall -O2 -miphoneos-version-min=5.1 -fno-strict-aliasing -fno-rtti -DBT_NO_PROFILE"/>\r
<fileset id="g++-files" dir="./">\r
<exclude name="target/"/>\r
- <include name="**/*.cpp"/>\r
+ <include name="**/*.cpp"/>
\r
- <exclude name="src/bullet/BulletMultiThreaded/GpuSoftBodySolvers/**"/>\r
+ <exclude name="src/bullet/BulletMultiThreaded/GpuSoftBodySolvers/**"/>
\r
</fileset>\r
\r
<!-- define linker and options -->\r
- <property name="linker" value="${compilerPrefix}ar"/>\r
+ <property name="linker" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar"/>\r
<property name="linker-opts" value="rcs"/>\r
<property name="libraries" value=""/>\r
\r
<!-- compiles all C and C++ files to object files in the build directory, for 386 builds-->\r
<target name="compile-386" depends="clean,create-build-dir">\r
<mkdir dir="${buildDir}"/>\r
- <apply failonerror="true" executable="${iphonesimulator-platform}/${g++}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${g++}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphonesimulator-sdk} -arch i386 ${g++-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
<arg value="-I."/>\r
- <arg value="-Isrc/bullet/"/>\r
- <arg value="-Isrc/custom/"/>\r
- <arg value="-Isrc/extras/Serialize/"/>\r
+ <arg value="-Isrc/bullet/"/>
+ <arg value="-Isrc/custom/"/>
+ <arg value="-Isrc/extras/Serialize/"/>
\r
<srcfile/>\r
<arg value="-o"/>\r
<mapper type="glob" from="*.mm" to="*.o"/>\r
</compositemapper>\r
</apply>\r
- <apply failonerror="true" executable="${iphonesimulator-platform}/${gcc}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${gcc}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphonesimulator-sdk} -arch i386 ${gcc-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
<arg value="-I."/>\r
- <arg value="-Isrc/bullet/"/>\r
- <arg value="-Isrc/custom/"/>\r
- <arg value="-Isrc/extras/Serialize/"/>\r
+ <arg value="-Isrc/bullet/"/>
+ <arg value="-Isrc/custom/"/>
+ <arg value="-Isrc/extras/Serialize/"/>
\r
<srcfile/>\r
<arg value="-o"/>\r
</fileset>\r
<pathconvert pathsep=" " property="objFiles" refid="objFileSet" />\r
<mkdir dir="${libsDir}" />\r
- <exec executable="${iphonesimulator-platform}/${linker}" failonerror="true" dir="${buildDir}">\r
+ <exec executable="${linker}" failonerror="true" dir="${buildDir}">\r
<arg line="${linker-opts}" />\r
<arg path="${libsDir}/${libName}.386" />\r
<arg line="${objFiles}"/>\r
<!-- compiles all C and C++ files to object files in the build directory, for 386 builds-->\r
<target name="compile-arm" depends="create-build-dir,clean-objfiles">\r
<mkdir dir="${buildDir}"/>\r
- <apply failonerror="true" executable="${iphoneos-platform}/${g++}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${g++}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphoneos-sdk} -arch armv7 ${g++-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
<arg value="-I."/>\r
- <arg value="-Isrc/bullet/"/>\r
- <arg value="-Isrc/custom/"/>\r
- <arg value="-Isrc/extras/Serialize/"/>\r
+ <arg value="-Isrc/bullet/"/>
+ <arg value="-Isrc/custom/"/>
+ <arg value="-Isrc/extras/Serialize/"/>
\r
<srcfile/>\r
<arg value="-o"/>\r
<mapper type="glob" from="*.mm" to="*.o"/>\r
</compositemapper>\r
</apply>\r
- <apply failonerror="true" executable="${iphoneos-platform}/${gcc}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${gcc}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphoneos-sdk} -arch armv7 ${gcc-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
<arg value="-I."/>\r
- <arg value="-Isrc/bullet/"/>\r
- <arg value="-Isrc/custom/"/>\r
- <arg value="-Isrc/extras/Serialize/"/>\r
+ <arg value="-Isrc/bullet/"/>
+ <arg value="-Isrc/custom/"/>
+ <arg value="-Isrc/extras/Serialize/"/>
\r
<srcfile/>\r
<arg value="-o"/>\r
</fileset>\r
<pathconvert pathsep=" " property="objFiles" refid="objFileSet" />\r
<mkdir dir="${libsDir}" />\r
- <exec executable="${iphoneos-platform}/${linker}" failonerror="true" dir="${buildDir}">\r
+ <exec executable="${linker}" failonerror="true" dir="${buildDir}">\r
<arg line="${linker-opts}" />\r
<arg path="${libsDir}/${libName}.armv7" />\r
<arg line="${objFiles}"/>\r
<!-- the compilerPrefix for the C & C++ compilers -->\r
<property name="compilerPrefix" value=""/> \r
<property name="iphoneos-platform" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin"/>\r
- <property name="iphoneos-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/"/>\r
+ <property name="iphoneos-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/"/>\r
<property name="iphonesimulator-platform" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin"/>\r
- <property name="iphonesimulator-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/"/>\r
+ <property name="iphonesimulator-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk"/>\r
\r
<!-- define gcc compiler, options and files to compile -->\r
- <property name="gcc" value="${compilerPrefix}gcc"/> \r
- <property name="gcc-opts" value="-c -Wall -O2 -miphoneos-version-min=5.1 -std=c99 -DFT2_BUILD_LIBRARY"/>\r
+ <property name="gcc" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"/> \r
+ <property name="gcc-opts" value="-c -Wall -O2 -miphoneos-version-min=5.1 -DFT2_BUILD_LIBRARY"/>\r
<fileset id="gcc-files" dir="./">\r
<exclude name="target/"/> \r
<include name="memcpy_wrap.c"/>
</fileset>\r
\r
<!-- define g++ compiler, options and files to compile -->\r
- <property name="g++" value="${compilerPrefix}g++"/>\r
- <property name="g++-opts" value="-c -Wall -O2 -miphoneos-version-min=5.1 -std=c99 -DFT2_BUILD_LIBRARY"/>\r
+ <property name="g++" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"/>\r
+ <property name="g++-opts" value="-c -Wall -O2 -miphoneos-version-min=5.1 -DFT2_BUILD_LIBRARY"/>\r
<fileset id="g++-files" dir="./">\r
<exclude name="target/"/>\r
<include name="**/*.cpp"/>
</fileset>\r
\r
<!-- define linker and options -->\r
- <property name="linker" value="${compilerPrefix}ar"/>\r
+ <property name="linker" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar"/>\r
<property name="linker-opts" value="rcs"/>\r
<property name="libraries" value=""/>\r
\r
<!-- compiles all C and C++ files to object files in the build directory, for 386 builds-->\r
<target name="compile-386" depends="clean,create-build-dir">\r
<mkdir dir="${buildDir}"/>\r
- <apply failonerror="true" executable="${iphonesimulator-platform}/${g++}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${g++}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphonesimulator-sdk} -arch i386 ${g++-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
<mapper type="glob" from="*.mm" to="*.o"/>\r
</compositemapper>\r
</apply>\r
- <apply failonerror="true" executable="${iphonesimulator-platform}/${gcc}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${gcc}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphonesimulator-sdk} -arch i386 ${gcc-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
</fileset>\r
<pathconvert pathsep=" " property="objFiles" refid="objFileSet" />\r
<mkdir dir="${libsDir}" />\r
- <exec executable="${iphonesimulator-platform}/${linker}" failonerror="true" dir="${buildDir}">\r
+ <exec executable="${linker}" failonerror="true" dir="${buildDir}">\r
<arg line="${linker-opts}" />\r
<arg path="${libsDir}/${libName}.386" />\r
<arg line="${objFiles}"/>\r
<!-- compiles all C and C++ files to object files in the build directory, for 386 builds-->\r
<target name="compile-arm" depends="create-build-dir,clean-objfiles">\r
<mkdir dir="${buildDir}"/>\r
- <apply failonerror="true" executable="${iphoneos-platform}/${g++}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${g++}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphoneos-sdk} -arch armv7 ${g++-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
<mapper type="glob" from="*.mm" to="*.o"/>\r
</compositemapper>\r
</apply>\r
- <apply failonerror="true" executable="${iphoneos-platform}/${gcc}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${gcc}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphoneos-sdk} -arch armv7 ${gcc-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
</fileset>\r
<pathconvert pathsep=" " property="objFiles" refid="objFileSet" />\r
<mkdir dir="${libsDir}" />\r
- <exec executable="${iphoneos-platform}/${linker}" failonerror="true" dir="${buildDir}">\r
+ <exec executable="${linker}" failonerror="true" dir="${buildDir}">\r
<arg line="${linker-opts}" />\r
<arg path="${libsDir}/${libName}.armv7" />\r
<arg line="${objFiles}"/>\r
\r
<!-- define gcc compiler, options and files to compile -->\r
<property name="gcc" value="${compilerPrefix}gcc${compilerSuffix}"/> \r
- <property name="gcc-opts" value="-c -Wall -O2 -arch i386 -arch x86_64 -DFIXED_POINT -fmessage-length=0 -fPIC -mmacosx-version-min=10.5 -std=c99 -DFT2_BUILD_LIBRARY"/>\r
+ <property name="gcc-opts" value="-c -Wall -O2 -arch i386 -arch x86_64 -DFIXED_POINT -fmessage-length=0 -fPIC -mmacosx-version-min=10.5 -DFT2_BUILD_LIBRARY"/>\r
<fileset id="gcc-files" dir="./">\r
<exclude name="target/"/> \r
<include name="memcpy_wrap.c"/>
\r
<!-- define g++ compiler, options and files to compile -->\r
<property name="g++" value="${compilerPrefix}g++${compilerSuffix}"/>\r
- <property name="g++-opts" value="-c -Wall -O2 -arch i386 -arch x86_64 -DFIXED_POINT -fmessage-length=0 -fPIC -mmacosx-version-min=10.5 -std=c99 -DFT2_BUILD_LIBRARY"/>\r
+ <property name="g++-opts" value="-c -Wall -O2 -arch i386 -arch x86_64 -DFIXED_POINT -fmessage-length=0 -fPIC -mmacosx-version-min=10.5 -DFT2_BUILD_LIBRARY"/>\r
<fileset id="g++-files" dir="./">\r
<exclude name="target/"/>\r
<include name="**/*.cpp"/>
BuildTarget mac = BuildTarget.newDefaultTarget(TargetOs.MacOsX, false);\r
mac.headerDirs = headers;\r
mac.cIncludes = sources;\r
- mac.cFlags += " -std=c99 -DFT2_BUILD_LIBRARY";\r
- mac.cppFlags += " -std=c99 -DFT2_BUILD_LIBRARY";\r
+ mac.cFlags += " -DFT2_BUILD_LIBRARY";\r
+ mac.cppFlags += " -DFT2_BUILD_LIBRARY";\r
mac.linkerFlags += " -framework CoreServices -framework Carbon";\r
\r
BuildTarget android = BuildTarget.newDefaultTarget(TargetOs.Android, false);\r
BuildTarget ios = BuildTarget.newDefaultTarget(TargetOs.IOS, false);\r
ios.headerDirs = headers;\r
ios.cIncludes = sources;\r
- ios.cFlags += " -std=c99 -DFT2_BUILD_LIBRARY";\r
- ios.cppFlags += " -std=c99 -DFT2_BUILD_LIBRARY";\r
+ ios.cFlags += " -DFT2_BUILD_LIBRARY";\r
+ ios.cppFlags += " -DFT2_BUILD_LIBRARY";\r
\r
new NativeCodeGenerator().generate();\r
new AntScriptGenerator().generate(new BuildConfig("gdx-freetype"), win32home, win32, win64, lin32, lin64, mac, android, ios);\r
<!-- the compilerPrefix for the C & C++ compilers -->\r
<property name="compilerPrefix" value="%compilerPrefix%"/> \r
<property name="iphoneos-platform" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin"/>\r
- <property name="iphoneos-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/"/>\r
+ <property name="iphoneos-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/"/>\r
<property name="iphonesimulator-platform" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin"/>\r
- <property name="iphonesimulator-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/"/>\r
+ <property name="iphonesimulator-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk"/>\r
\r
<!-- define gcc compiler, options and files to compile -->\r
- <property name="gcc" value="${compilerPrefix}gcc"/> \r
+ <property name="gcc" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"/> \r
<property name="gcc-opts" value="%cFlags%"/>\r
<fileset id="gcc-files" dir="./">\r
<exclude name="target/"/> \r
</fileset>\r
\r
<!-- define g++ compiler, options and files to compile -->\r
- <property name="g++" value="${compilerPrefix}g++"/>\r
+ <property name="g++" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"/>\r
<property name="g++-opts" value="%cppFlags%"/>\r
<fileset id="g++-files" dir="./">\r
<exclude name="target/"/>\r
</fileset>\r
\r
<!-- define linker and options -->\r
- <property name="linker" value="${compilerPrefix}ar"/>\r
+ <property name="linker" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar"/>\r
<property name="linker-opts" value="%linkerFlags%"/>\r
<property name="libraries" value="%libraries%"/>\r
\r
<!-- compiles all C and C++ files to object files in the build directory, for 386 builds-->\r
<target name="compile-386" depends="clean,create-build-dir">\r
<mkdir dir="${buildDir}"/>\r
- <apply failonerror="true" executable="${iphonesimulator-platform}/${g++}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${g++}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphonesimulator-sdk} -arch i386 ${g++-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
<mapper type="glob" from="*.mm" to="*.o"/>\r
</compositemapper>\r
</apply>\r
- <apply failonerror="true" executable="${iphonesimulator-platform}/${gcc}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${gcc}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphonesimulator-sdk} -arch i386 ${gcc-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
</fileset>\r
<pathconvert pathsep=" " property="objFiles" refid="objFileSet" />\r
<mkdir dir="${libsDir}" />\r
- <exec executable="${iphonesimulator-platform}/${linker}" failonerror="true" dir="${buildDir}">\r
+ <exec executable="${linker}" failonerror="true" dir="${buildDir}">\r
<arg line="${linker-opts}" />\r
<arg path="${libsDir}/${libName}.386" />\r
<arg line="${objFiles}"/>\r
<!-- compiles all C and C++ files to object files in the build directory, for 386 builds-->\r
<target name="compile-arm" depends="create-build-dir,clean-objfiles">\r
<mkdir dir="${buildDir}"/>\r
- <apply failonerror="true" executable="${iphoneos-platform}/${g++}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${g++}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphoneos-sdk} -arch armv7 ${g++-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
<mapper type="glob" from="*.mm" to="*.o"/>\r
</compositemapper>\r
</apply>\r
- <apply failonerror="true" executable="${iphoneos-platform}/${gcc}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${gcc}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphoneos-sdk} -arch armv7 ${gcc-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
</fileset>\r
<pathconvert pathsep=" " property="objFiles" refid="objFileSet" />\r
<mkdir dir="${libsDir}" />\r
- <exec executable="${iphoneos-platform}/${linker}" failonerror="true" dir="${buildDir}">\r
+ <exec executable="${linker}" failonerror="true" dir="${buildDir}">\r
<arg line="${linker-opts}" />\r
<arg path="${libsDir}/${libName}.armv7" />\r
<arg line="${objFiles}"/>\r
<!-- the compilerPrefix for the C & C++ compilers -->\r
<property name="compilerPrefix" value=""/> \r
<property name="iphoneos-platform" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin"/>\r
- <property name="iphoneos-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/"/>\r
+ <property name="iphoneos-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/"/>\r
<property name="iphonesimulator-platform" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin"/>\r
- <property name="iphonesimulator-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/"/>\r
+ <property name="iphonesimulator-sdk" value="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk"/>\r
\r
<!-- define gcc compiler, options and files to compile -->\r
- <property name="gcc" value="${compilerPrefix}gcc"/> \r
+ <property name="gcc" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"/> \r
<property name="gcc-opts" value="-c -Wall -O2 -miphoneos-version-min=5.1"/>\r
<fileset id="gcc-files" dir="./">\r
<exclude name="target/"/> \r
</fileset>\r
\r
<!-- define g++ compiler, options and files to compile -->\r
- <property name="g++" value="${compilerPrefix}g++"/>\r
+ <property name="g++" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"/>\r
<property name="g++-opts" value="-c -Wall -O2 -miphoneos-version-min=5.1"/>\r
<fileset id="g++-files" dir="./">\r
<exclude name="target/"/>\r
</fileset>\r
\r
<!-- define linker and options -->\r
- <property name="linker" value="${compilerPrefix}ar"/>\r
+ <property name="linker" value="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar"/>\r
<property name="linker-opts" value="rcs"/>\r
<property name="libraries" value=""/>\r
\r
<!-- compiles all C and C++ files to object files in the build directory, for 386 builds-->\r
<target name="compile-386" depends="clean,create-build-dir">\r
<mkdir dir="${buildDir}"/>\r
- <apply failonerror="true" executable="${iphonesimulator-platform}/${g++}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${g++}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphonesimulator-sdk} -arch i386 ${g++-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
<mapper type="glob" from="*.mm" to="*.o"/>\r
</compositemapper>\r
</apply>\r
- <apply failonerror="true" executable="${iphonesimulator-platform}/${gcc}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${gcc}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphonesimulator-sdk} -arch i386 ${gcc-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
</fileset>\r
<pathconvert pathsep=" " property="objFiles" refid="objFileSet" />\r
<mkdir dir="${libsDir}" />\r
- <exec executable="${iphonesimulator-platform}/${linker}" failonerror="true" dir="${buildDir}">\r
+ <exec executable="${linker}" failonerror="true" dir="${buildDir}">\r
<arg line="${linker-opts}" />\r
<arg path="${libsDir}/${libName}.386" />\r
<arg line="${objFiles}"/>\r
<!-- compiles all C and C++ files to object files in the build directory, for 386 builds-->\r
<target name="compile-arm" depends="create-build-dir,clean-objfiles">\r
<mkdir dir="${buildDir}"/>\r
- <apply failonerror="true" executable="${iphoneos-platform}/${g++}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${g++}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphoneos-sdk} -arch armv7 ${g++-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
<mapper type="glob" from="*.mm" to="*.o"/>\r
</compositemapper>\r
</apply>\r
- <apply failonerror="true" executable="${iphoneos-platform}/${gcc}" dest="${buildDir}" verbose="true">\r
+ <apply failonerror="true" executable="${gcc}" dest="${buildDir}" verbose="true">\r
<arg line="-isysroot ${iphoneos-sdk} -arch armv7 ${gcc-opts}"/>\r
<arg value="-Ijni-headers"/>\r
<arg value="-Ijni-headers/${jniPlatform}"/>\r
</fileset>\r
<pathconvert pathsep=" " property="objFiles" refid="objFileSet" />\r
<mkdir dir="${libsDir}" />\r
- <exec executable="${iphoneos-platform}/${linker}" failonerror="true" dir="${buildDir}">\r
+ <exec executable="${linker}" failonerror="true" dir="${buildDir}">\r
<arg line="${linker-opts}" />\r
<arg path="${libsDir}/${libName}.armv7" />\r
<arg line="${objFiles}"/>\r
<include name="scenes/scene2d/utils/ChangeListener.java"/>
<include name="scenes/scene2d/utils/ClickListener.java"/>
<include name="scenes/scene2d/utils/Cullable.java"/>
+ <include name="scenes/scene2d/utils/Disableable.java"/>
<include name="scenes/scene2d/utils/DragAndDrop.java"/>
<include name="scenes/scene2d/utils/DragListener.java"/>
<include name="scenes/scene2d/utils/DragScrollListener.java"/>