Fix issue detecting Android NDK and property to build native projects
This commit is contained in:
parent
b4d295ee1b
commit
f3177535a7
@ -186,7 +186,9 @@ task copyPreCompiledBulletLibs(type: Copy) {
|
|||||||
into outputDir
|
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
|
// build native libs and update stored pre-compiled libs to commit
|
||||||
compileJava.dependsOn { updatePreCompiledBulletLibs }
|
compileJava.dependsOn { updatePreCompiledBulletLibs }
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user