diff --git a/lib/build.gradle b/lib/build.gradle index 5c6800c50..9506b790e 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -104,7 +104,7 @@ task buildSqlite(dependsOn: installSqlite, type: Exec) { println("NDK directory: $ndkDir") // Add NDK_DEBUG=1 for debug symbols or V=1 for verbose building output - if (OperatingSystem.current().linux) { + if (OperatingSystem.current().linux || OperatingSystem.current().macOsX) { commandLine "$ndkDir/ndk-build", '-j8', '-C', file('src/main/jni').absolutePath } else if (OperatingSystem.current().windows) { commandLine "$ndkDir/ndk-build.cmd", '-j8', '-C', file('src/main/jni').absolutePath @@ -114,7 +114,7 @@ task buildSqlite(dependsOn: installSqlite, type: Exec) { } task ndkClean(type: Exec, description: 'Clean NDK Binaries') { - if (OperatingSystem.current().linux) { + if (OperatingSystem.current().linux || OperatingSystem.current().macOsX) { commandLine "$ndkDir/ndk-build", 'clean', '-C', file('src/main/jni').absolutePath } else if (OperatingSystem.current().windows) { commandLine "$ndkDir/ndk-build.cmd", 'clean', '-C', file('src/main/jni').absolutePath