NdkBuildOptions

DSL object for per-module ndk-build configurations, such as the path to your Android.mk build script.

Properties

PropertyDescription
path

The relative path to your Android.mk build script.

Methods

No methods

Script blocks

No script blocks

Property details

File path

The relative path to your Android.mk build script.

For example, if your ndk-build script was in the same folder as your module-level build.gradle file, you simply pass the following:

path "Android.mk"

Gradle requires this build script to add your ndk-build project as a build dependency and pull your native sources into your Android project. Gradle also includes the Application.mk file if it is located in the same directory as your Android.mk file.