- unzip android bullet natives on copy

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8812 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent f646192ea8
commit d4f799d8b2
  1. 13
      sdk/jme3-android/src/com/jme3/gde/android/mobile-targets.xml

@ -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"/>

Loading…
Cancel
Save