Android 12 Developer Preview is here! Try it out, and give us your feedback!

ExternalNativeGenericOptions

@Incubating interface ExternalNativeGenericOptions
com.android.build.api.variant.ExternalNativeGenericOptions

Summary

Properties

abstract SetProperty<String>

Specifies the Application Binary Interfaces (ABI) that Gradle should build outputs for.

abstract ListProperty<String>

Specifies arguments for CMake.

abstract ListProperty<String>

Specifies flags for the C compiler.

abstract ListProperty<String>

Specifies flags for the CPP compiler.

abstract SetProperty<String>

Specifies the library and executable targets from your CMake project that Gradle should build.

Properties

abiFilters

abstract val abiFilters: SetProperty<String>

Specifies the Application Binary Interfaces (ABI) that Gradle should build outputs for. The ABIs that Gradle packages into your APK are determined by {@link com.android.build.gradle.internal.dsl.NdkOptions#abiFilter android.defaultConfig.ndk.abiFilter}

arguments

abstract val arguments: ListProperty<String>

Specifies arguments for CMake.

cFlags

abstract val cFlags: ListProperty<String>

Specifies flags for the C compiler.

cppFlags

abstract val cppFlags: ListProperty<String>

Specifies flags for the CPP compiler.

targets

abstract val targets: SetProperty<String>

Specifies the library and executable targets from your CMake project that Gradle should build.