OSDN Git Service

(no commit message)
authorbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Wed, 28 Dec 2011 20:05:56 +0000 (20:05 +0000)
committerbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Wed, 28 Dec 2011 20:05:56 +0000 (20:05 +0000)
build-template.xml

index a9ea67d..6cf3992 100644 (file)
@@ -56,7 +56,20 @@ zipfileset id="jarfiles" -> the jar files to be merged with the project's classe
        <target name="compile-natives" depends="init, check-natives" if="natives-present">\r
                <ant antfile="build.xml" target="clean" dir="${jni}"/>\r
                <ant antfile="build.xml" target="all" dir="${jni}"/>\r
-       </target>       \r
+               <!-- copy shared libs for desktop -->\r
+               <copy failonerror="false" file="${libs}/${jar}-natives.jar" tofile="${distDir}/${jar}-natives.jar"/>\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
        <target name="all" depends="compile,compile-natives">\r
@@ -75,20 +88,5 @@ zipfileset id="jarfiles" -> the jar files to be merged with the project's classe
                        <!-- merge dependencies specified in parent build.xml -->\r
                        <zipfileset refid="jarfiles"/>\r
                </jar>\r
-               \r
-               <!-- optional natives jar for desktop -->\r
-               <copy failonerror="false" file="${libs}/${jar}-natives.jar" tofile="${distDir}/${jar}-natives.jar"/>\r
-               \r
-               <!-- optional shared libraries 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
 </project>\r