|
|
@ -24,6 +24,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<target name="-copy-android-libs" if="is.android.enabled"> |
|
|
|
<target name="-copy-android-libs" if="is.android.enabled"> |
|
|
|
<!--property name="libs.jme3-android" location="${libs.jme3-android.classpath}"/--> |
|
|
|
<!--property name="libs.jme3-android" location="${libs.jme3-android.classpath}"/--> |
|
|
|
|
|
|
|
<echo>Copying application libraries to android project.</echo> |
|
|
|
<delete dir="mobile/libs" failonerror="false"/> |
|
|
|
<delete dir="mobile/libs" failonerror="false"/> |
|
|
|
<mkdir dir="mobile/libs"/> |
|
|
|
<mkdir dir="mobile/libs"/> |
|
|
|
<copy todir="mobile/libs" verbose="false" flatten="true"> |
|
|
|
<copy todir="mobile/libs" verbose="false" flatten="true"> |
|
|
@ -41,13 +42,14 @@ |
|
|
|
</fileset> |
|
|
|
</fileset> |
|
|
|
</copy> |
|
|
|
</copy> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<echo>Adding jMonkeyEngine3.jar for android.</echo> |
|
|
|
<copy todir="mobile/libs" flatten="true"> |
|
|
|
<copy todir="mobile/libs" flatten="true"> |
|
|
|
<mapper type="flatten" from="*jMonkeyEngine-android.jar" to="jMonkeyEngine.jar"/> |
|
|
|
<!--mapper type="flatten" from="*jMonkeyEngine-android.jar" to="jMonkeyEngine.jar"/--> |
|
|
|
<path> |
|
|
|
<path> |
|
|
|
<pathelement path="${libs.jme3-android.classpath}"/> |
|
|
|
<pathelement path="${libs.jme3-android.classpath}"/> |
|
|
|
</path> |
|
|
|
</path> |
|
|
|
</copy> |
|
|
|
</copy> |
|
|
|
<antcall target="-delete-bullet-libs"/> |
|
|
|
<antcall target="-unzip-bullet-libs"/> |
|
|
|
<copy file="${dist.jar}" todir="mobile/libs/" verbose="false"/> |
|
|
|
<copy file="${dist.jar}" todir="mobile/libs/" verbose="false"/> |
|
|
|
</target> |
|
|
|
</target> |
|
|
|
|
|
|
|
|
|
|
@ -56,6 +58,13 @@ |
|
|
|
<delete file="mobile/libs/jME3-bullet-natives-android.jar"/> |
|
|
|
<delete file="mobile/libs/jME3-bullet-natives-android.jar"/> |
|
|
|
</target> |
|
|
|
</target> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<target name="-unzip-bullet-libs" depends="-delete-bullet-libs" if="bulletIsIncluded"> |
|
|
|
|
|
|
|
<echo>Replacing bullet library with android native version.</echo> |
|
|
|
|
|
|
|
<unzip src="mobile/libs/jME3-bullet-natives-android.jar" dest="mobile/libs"/> |
|
|
|
|
|
|
|
<delete file="mobile/libs/jME3-bullet-natives-android.jar"/> |
|
|
|
|
|
|
|
<delete dir="mobile/libs/x86"/> |
|
|
|
|
|
|
|
</target> |
|
|
|
|
|
|
|
|
|
|
|
<target name="-test-bullet-included"> |
|
|
|
<target name="-test-bullet-included"> |
|
|
|
<condition property="bulletIsIncluded"> |
|
|
|
<condition property="bulletIsIncluded"> |
|
|
|
<contains string="${javac.classpath}" substring="bullet.jar"/> |
|
|
|
<contains string="${javac.classpath}" substring="bullet.jar"/> |
|
|
|