Sfoglia il codice sorgente

Fix issue detecting Android NDK and property to build native projects

iwgeric 9 anni fa
parent
commit
7de6199bb5
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      jme3-android-native/openalsoft.gradle

+ 3 - 1
jme3-android-native/openalsoft.gradle

@@ -111,7 +111,9 @@ task copyPreCompiledOpenAlSoftLibs(type: Copy) {
     into outputDir
 }
 
-if (rootProject.ndkExists && rootProject.buildNativeProjects) {
+// ndkExists is a boolean from the build.gradle in the root project
+// buildNativeProjects is a string set to "true"
+if (ndkExists && buildNativeProjects == "true") {
     // build native libs and update stored pre-compiled libs to commit
     compileJava.dependsOn { updatePreCompiledOpenAlSoftLibs }
 } else {