Main repository of MikuMikuStudio
Revision | bbc16df73bafa7906fb08cdc066de6948ebe5837 (tree) |
---|---|
Time | 2013-05-18 08:27:25 |
Author | iwgeric@gmail.com <iwgeric@gmai...> |
Commiter | iwgeric@gmail.com |
SDK: Automatically unzip OpenAL Soft libraries in mobile/libs if included in the classpath
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10624 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
@@ -32,6 +32,7 @@ | ||
32 | 32 | <antcall target="-unzip-bullet-libs"/> |
33 | 33 | <antcall target="-unzip-assets"/> |
34 | 34 | <copy file="${dist.jar}" todir="mobile/libs/" verbose="false" preservelastmodified="true"/> |
35 | + <antcall target="-unzip-openal-soft-libs"/> | |
35 | 36 | </target> |
36 | 37 | |
37 | 38 | <target description="create mobile/libs directory and copy project libraries" name="-copy-project-libs"> |
@@ -90,6 +91,22 @@ | ||
90 | 91 | <delete file="mobile/libs/${assets.jar.name}" failonerror="true"/> |
91 | 92 | </target> |
92 | 93 | |
94 | + <target name="-unzip-openal-soft-libs" depends="-test-openalsoft-included" if="openalsoftIsIncluded"> | |
95 | + <echo>Adding OpenAL Soft</echo> | |
96 | + <!-- use copy with zipfileset to enable preserving the last modified date to avoid pre-dexing --> | |
97 | + <copy todir="mobile/libs" preservelastmodified="true"> | |
98 | + <zipfileset src="mobile/libs/jME3-openal-soft-natives-android.jar"> | |
99 | + </zipfileset> | |
100 | + </copy> | |
101 | + <delete file="mobile/libs/jME3-openal-soft-natives-android.jar"/> | |
102 | + </target> | |
103 | + | |
104 | + <target name="-test-openalsoft-included"> | |
105 | + <condition property="openalsoftIsIncluded"> | |
106 | + <contains string="${javac.classpath}" substring="jME3-openal-soft-natives-android.jar"/> | |
107 | + </condition> | |
108 | + </target> | |
109 | + | |
93 | 110 | <target name="-test-bullet-included"> |
94 | 111 | <condition property="bulletIsIncluded"> |
95 | 112 | <contains string="${javac.classpath}" substring="bullet.jar"/> |