Skip to content

Instantly share code, notes, and snippets.

@btimofeev
Created October 7, 2020 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btimofeev/e8b1f44cc3bbc29d397640bc51e39991 to your computer and use it in GitHub Desktop.
Save btimofeev/e8b1f44cc3bbc29d397640bc51e39991 to your computer and use it in GitHub Desktop.
task runNdkBuild(type: Exec) {
def ndkDir = android.ndkDirectory
executable = "$ndkDir/ndk-build"
args = ['NDK_PROJECT_PATH=build/intermediates/ndk',
'NDK_LIBS_OUT=src/main/jniLibs',
'APP_BUILD_SCRIPT=src/main/jni/ndkbuild/Android.mk',
'NDK_APPLICATION_MK=src/main/jni/ndkbuild/Application.mk']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment