<property name="target" value="target" />\r
<property name="libs" value="libs" />\r
<zipfileset id="jarfiles" dir="." excludes="**"/>\r
+ <fileset id="resourcefiles" dir="." excludes="**"/>\r
\r
<!-- clean output directories, create libs directory --> \r
<target name="clean"> \r
<target name="init" depends="clean"> \r
<mkdir dir="${target}" />\r
<mkdir dir="${target}/java" />\r
- <!-- need to copy the internal font to target if compiling the gdx core :/ -->\r
- <copy failonerror="false" tofile="${target}/java/com/badlogic/gdx/utils/arial-15.png" file="src/com/badlogic/gdx/utils/arial-15.png" />\r
- <copy failonerror="false" tofile="${target}/java/com/badlogic/gdx/utils/arial-15.fnt" file="src/com/badlogic/gdx/utils/arial-15.fnt" />\r
<!-- need to copy jni headers for gdx-jnigen -->\r
<copy failonerror="false" todir="${target}/java">\r
<fileset dir="src">\r
\r
<!-- compiles the java code -->\r
<target name="compile" depends="init">\r
- <javac debug="on" encoding="utf-8" source="1.6" target="1.6" destdir="${target}/java">\r
+ <javac debug="on" encoding="utf-8" source="1.6" target="1.6" destdir="${target}/java" includeantruntime="false">\r
<src>\r
<path refid="src"/>\r
</src>\r
<mkdir dir="${libs}/android32" />\r
<mkdir dir="${libs}/armeabi" />\r
<mkdir dir="${libs}/armeabi-v7a" />\r
+ <mkdir dir="${libs}/x86" />\r
<mkdir dir="${libs}/linux32" />\r
<mkdir dir="${libs}/linux64" />\r
<mkdir dir="${libs}/macosx32" />\r
<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
</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}/x86">\r
+ <fileset dir="${libs}/x86">\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
<fileset dir="${target}/java"/>\r
+ <fileset refid="resourcefiles"/>\r
<!-- merge dependencies found in libs/ folder, exclude native, debug and android/gwt jars -->\r
<zipgroupfileset file="${libs}/*.jar">\r
<exclude name="*-natives.jar"/>\r
<exclude name="*-debug.jar"/>\r
<exclude name="android-*.jar"/>\r
+ <exclude name="robovm-*.jar"/>\r
<exclude name="gwt*.jar"/>\r
</zipgroupfileset>\r
<!-- merge dependencies specified in parent build.xml -->\r