Explorar o código

Move files to build directory
Move the downloaded files to build directory and moved the unzip folder to the build directory so that they are ignored by git and cleaned appropriately.

iwgeric %!s(int64=9) %!d(string=hai) anos
pai
achega
b7efc437be
Modificáronse 1 ficheiros con 7 adicións e 7 borrados
  1. 7 7
      jme3-android-native/decode.gradle

+ 7 - 7
jme3-android-native/decode.gradle

@@ -14,27 +14,27 @@ String decodeSourceDir = 'src/native/jme_decode'
 
 
 task downloadStbImage(type: MyDownload) {
 task downloadStbImage(type: MyDownload) {
     sourceUrl = stbiUrl
     sourceUrl = stbiUrl
-    target = file('stb_image.h')
+    target = file(decodeBuildDir + File.separator + 'stb_image.h')
 }
 }
 
 
-// Copy stb_image.h to the source directory.
+// Copy stb_image.h to the jni directory.
 task copyStbiFiles(type: Copy) {
 task copyStbiFiles(type: Copy) {
-    def sourceDir = file('stb_image.h')
-    def outputDir = file(decodeSourceDir + File.separator + "STBI")
+    def sourceDir = file(decodeBuildDir + File.separator + 'stb_image.h')
+    def outputDir = file(decodeBuildJniDir + File.separator + "STBI")
     from sourceDir
     from sourceDir
     into outputDir
     into outputDir
 }
 }
 copyStbiFiles.dependsOn {
 copyStbiFiles.dependsOn {
-    def stbiFile = file('stb_image.h')
+    def stbiFile = file(decodeBuildDir + File.separator + 'stb_image.h')
     if (!stbiFile.exists()) {
     if (!stbiFile.exists()) {
         downloadStbImage
         downloadStbImage
     }
     }
 }
 }
 
 
-// Copy libtremor source to the source directory.
+// Copy libtremor source to the jni directory.
 task copyTremorFiles(type: Copy) {
 task copyTremorFiles(type: Copy) {
     def zipFile = file(tremorZipFile)
     def zipFile = file(tremorZipFile)
-    def outputDir = file(decodeSourceDir + File.separator + "Tremor")
+    def outputDir = file(decodeBuildJniDir + File.separator + "Tremor")
 
 
     from (zipTree(zipFile)) {
     from (zipTree(zipFile)) {
         include '*.c'
         include '*.c'