Explorar o código

Fix issue detecting Android NDK and property to build native projects

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

+ 3 - 1
jme3-bullet-native-android/build.gradle

@@ -186,7 +186,9 @@ task copyPreCompiledBulletLibs(type: Copy) {
     into outputDir
 }
 
-if (rootProject.ndkExists) {
+// 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 { updatePreCompiledBulletLibs }
 } else {