<classpath>\r
<pathelement location="gdx/bin"/>\r
<pathelement location="backends/dependencies/lwjgl.jar"/>\r
+ <pathelement location="backends/dependencies/lwjgl-natives.jar" />\r
<pathelement location="backends/dependencies/javazoom-spi.jar"/>\r
<pathelement location="backends/dependencies/jl1.0.1.jar"/>\r
<pathelement location="backends/dependencies/jorbis.jar"/>\r
</classpath>\r
</javac>\r
</target>\r
-\r
- <!-- compiles the native code (for android only atm) -->\r
- <target name="compile-native" depends="init">\r
- <exec executable="make" dir="gdx">\r
- <arg value="-f"/> \r
- <arg value="${env.NDK_HOME}/build/core/build-local.mk"/>\r
- <arg value="clean"/>\r
- </exec>\r
- <exec executable="make" dir="gdx">\r
- <arg value="-f"/> \r
- <arg value="${env.NDK_HOME}/build/core/build-local.mk"/>\r
- </exec>\r
- </target>\r
\r
<!-- generates the javadoc for the core api and the application implementations -->\r
<target name="docs" depends="init">\r
</javadoc>\r
</target>\r
\r
- <target name="packnatives" depends="init">\r
- <jar destfile="${stable}/gdx-natives.jar">\r
- <fileset dir="gdx/windows" includes="gdx.dll"/>\r
- <fileset dir="gdx/windows64" includes="gdx-64.dll"/>\r
- <fileset dir="gdx/linux" includes="libgdx.so"/>\r
- <fileset dir="gdx/linux64" includes="libgdx-64.so"/>\r
- <fileset dir="gdx/mac" includes="libgdx.dylib"/>\r
- </jar>\r
+ <target name="compile-natives" depends="init">\r
+ <ant antfile="build.xml" dir="gdx/jni/" target="clean"/>\r
+ <ant antfile="build.xml" dir="gdx/jni/"/>\r
</target>\r
\r
<!-- builds the distribution directory, does not include the desktop libs \r
for some reason excludes don't work so i have to delete the ndk directory first... -->\r
- <target name="dist" depends="compile,compile-native,docs,packnatives">\r
+ <target name="dist" depends="compile,compile-natives,docs">\r
<delete dir="gdx/bin/ndk"/>\r
<jar destfile="${stable}/gdx.jar" basedir="gdx/bin"/>\r
<jar destfile="${stable}/gdx-sources.jar" basedir="gdx/src"/>\r
<zipfileset src="extensions/twl/gdx-twl/libs/xpp3-1.1.4c.jar" />\r
</jar>\r
\r
+ <copy tofile="${stable}/gdx-natives.jar" file="backends/dependencies/gdx-natives.jar" />\r
<copy tofile="${stable}/armeabi/libgdx.so" file="gdx/libs/armeabi/libgdx.so" />\r
<!-- <copy tofile="${stable}/armeabi/libmpg123.so" file="gdx/libs/armeabi/libmpg123.so" /> -->\r
<copy tofile="${stable}/armeabi/libandroidgl20.so" file="gdx/dist/armeabi/libandroidgl20.so" />\r
<pathelement location="extensions/twl/gdx-twl/libs/xpp3-1.1.4c.jar" />\r
</classpath>\r
</javac>\r
-\r
- </target>\r
-\r
- <!-- compiles the native code (for android only atm) -->\r
- <target name="compile-native" depends="init">\r
- <exec executable="make" dir="gdx">\r
- <arg value="-f" />\r
- <arg value="${env.NDK_HOME}/build/core/build-local.mk" />\r
- <arg value="clean" />\r
- </exec>\r
- <exec executable="make" dir="gdx">\r
- <arg value="-f" />\r
- <arg value="${env.NDK_HOME}/build/core/build-local.mk" />\r
- </exec>\r
</target>\r
\r
<!-- generates the javadoc for the core api and the application implementations -->\r
<target name="docs" depends="init">\r
- <javadoc destdir="${stable}/docs/api" author="true" version="true" use="true" windowtitle="Libgdx API">\r
+ <javadoc destdir="${stable}/docs/api" author="true" version="true" use="true"\r
+ windowtitle="libgdx API" doctitle="libgdx API" footer="libgdx API">\r
+ <header><![CDATA[\r
+ libgdx API\r
+ <style>\r
+ body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }\r
+ pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }\r
+ h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold }\r
+ .TableHeadingColor { background:#EEEEFF; }\r
+ a { text-decoration:none }\r
+ a:hover { text-decoration:underline }\r
+ a:link, a:visited { color:blue }\r
+ table { border:0px }\r
+ .TableRowColor td:first-child { border-left:1px solid black }\r
+ .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }\r
+ hr { border:0px; border-bottom:1px solid #333366; }\r
+ </style>\r
+ ]]></header>\r
+ <bottom><![CDATA[\r
+ <div style="font-size:9pt"><i>\r
+ Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)\r
+ </i></div>\r
+ ]]></bottom>\r
<fileset dir="gdx/src" defaultexcludes="yes">\r
<include name="com/badlogic/gdx/**" />\r
<exclude name="com/badlogic/gdx/utils/arial-15.fnt" />\r
</fileset>\r
<fileset dir="backends" includes="gdx-backend-jogl/src/com/badlogic/gdx/backends/jogl/JoglApplication.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="extensions/twl/" includes="gdx-twl/src/com/badlogic/gdx/twl/TWL.java"/>\r
</javadoc>\r
</target>\r
\r
- <target name="packnatives" depends="init">\r
- <jar destfile="${stable}/gdx-natives.jar">\r
- <fileset dir="gdx/windows" includes="gdx.dll"/>\r
- <fileset dir="gdx/windows64" includes="gdx-64.dll"/>\r
- <fileset dir="gdx/linux" includes="libgdx.so"/>\r
- <fileset dir="gdx/linux64" includes="libgdx-64.so"/>\r
- <fileset dir="gdx/mac" includes="libgdx.dylib"/>\r
- </jar>\r
+ <target name="compile-natives" depends="init">\r
+ <ant antfile="build.xml" dir="gdx/jni/" target="clean"/>\r
+ <ant antfile="build.xml" dir="gdx/jni/"/>\r
</target>\r
\r
<!-- builds the distribution directory, does not include the desktop libs \r
for some reason excludes don't work so i have to delete the ndk directory first... -->\r
- <target name="dist" depends="compile,compile-native,docs,packnatives">\r
+ <target name="dist" depends="compile,compile-natives,docs">\r
<delete dir="gdx/bin/ndk" />\r
<jar destfile="${stable}/gdx.jar" basedir="gdx/bin" />\r
<jar destfile="${stable}/gdx-sources.jar" basedir="gdx/src" />\r
<zipfileset src="extensions/twl/gdx-twl/libs/xpp3-1.1.4c.jar" />\r
</jar>\r
\r
+ <copy tofile="${stable}/gdx-natives.jar" file="backends/dependencies/gdx-natives.jar" />\r
<copy tofile="${stable}/armeabi/libgdx.so" file="gdx/libs/armeabi/libgdx.so" />\r
<!--<copy tofile="${stable}/armeabi/libmpg123.so" file="gdx/libs/armeabi/libmpg123.so" />-->\r
<copy tofile="${stable}/armeabi/libandroidgl20.so" file="gdx/dist/armeabi/libandroidgl20.so" />\r
<!-- do everything -->\r
<target name="all" depends="update-demos,update-android-tests">\r
</target>\r
-</project>
\ No newline at end of file
+</project>\r
-<?xml version="1.0" encoding="UTF-8"?>\r
-<classpath>\r
- <classpathentry excluding="**/.svn/*" kind="src" path="src"/>\r
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>\r
- <classpathentry combineaccessrules="false" kind="src" path="/gdx"/>\r
- <classpathentry combineaccessrules="false" kind="src" path="/gdx-backend-jogl"/>\r
- <classpathentry combineaccessrules="false" kind="src" path="/gdx-tests"/>\r
- <classpathentry kind="lib" path="/dependencies/gdx-natives.jar"/>\r
- <classpathentry kind="output" path="bin"/>\r
-</classpath>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry excluding="**/.svn/*" kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/gdx"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/gdx-backend-jogl"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/gdx-tests"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>