浏览代码

Fix issue detecting Android NDK and property to build native projects

iwgeric 9 年之前
父节点
当前提交
ae2cb3b740
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      jme3-android-native/decode.gradle

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

@@ -85,7 +85,9 @@ task copyPreCompiledLibs(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 { updatePreCompiledLibs }
 } else {