Browse Source

Ant template modified to copy all files from res directory to Android apk

pooerh 13 years ago
parent
commit
300d87ce98
1 changed files with 3 additions and 4 deletions
  1. 3 4
      gameplay-template/android/template.build.xml

+ 3 - 4
gameplay-template/android/template.build.xml

@@ -62,10 +62,9 @@
        If this is not done in place, override ${out.dex.input.absolute.dir} */
        If this is not done in place, override ${out.dex.input.absolute.dir} */
        -->
        -->
     <target name="-post-compile">
     <target name="-post-compile">
-        <copy file="../res/box.gpb" tofile="assets/res/box.gpb"/>
-        <copy file="../res/box.material" tofile="assets/res/box.material"/>
-        <copy file="../res/colored.vert" tofile="assets/res/colored.vert"/>
-        <copy file="../res/colored.frag" tofile="assets/res/colored.frag"/>
+        <copy todir="assets/res">
+            <fileset dir="../res" />
+        </copy>
     </target>
     </target>
 
 
     <!-- Import the actual build file.
     <!-- Import the actual build file.