From 7de6199bb5b1f3dd0280fea40041fd7fc68d2992 Mon Sep 17 00:00:00 2001 From: iwgeric Date: Mon, 11 Apr 2016 19:31:48 -0400 Subject: [PATCH] Fix issue detecting Android NDK and property to build native projects --- jme3-android-native/openalsoft.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jme3-android-native/openalsoft.gradle b/jme3-android-native/openalsoft.gradle index e64c9dd54..22e47a65a 100644 --- a/jme3-android-native/openalsoft.gradle +++ b/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 {