Fix issue detecting Android NDK and property to build native projects

This commit is contained in:
iwgeric 2016-04-11 19:31:48 -04:00
parent ae2cb3b740
commit 7de6199bb5

View File

@ -111,7 +111,9 @@ task copyPreCompiledOpenAlSoftLibs(type: Copy) {
into outputDir 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 // build native libs and update stored pre-compiled libs to commit
compileJava.dependsOn { updatePreCompiledOpenAlSoftLibs } compileJava.dependsOn { updatePreCompiledOpenAlSoftLibs }
} else { } else {