ExternalNativeBuild

public interface ExternalNativeBuild

Known direct subclasses
ExternalNdkBuild

Interface for ndk-build per-variant info.


Parameters to use when building native components.

Warning: Due to current limitations in how Android Gradle Plugin and native build interacts, it is not possible to wire a org.gradle.api.Task mapped org.gradle.api.provider.Provider to any of the collection ListProperty or SetProperty below. These properties must be resolved at configuration time and therefore cannot have results based on Task execution. This limitation might be lifted in the future.

Summary

Public methods

abstract @NonNull SetProperty<@NonNull String>

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

abstract @NonNull ListProperty<@NonNull String>

Specifies arguments for CMake.

abstract @NonNull ListProperty<@NonNull String>

Specifies flags for the C compiler.

abstract @NonNull ListProperty<@NonNull String>

Specifies flags for the CPP compiler.

abstract @NonNull SetProperty<@NonNull String>

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

Public methods

getAbiFilters

abstract @NonNull SetProperty<@NonNull StringgetAbiFilters()

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}

getArguments

abstract @NonNull ListProperty<@NonNull StringgetArguments()

Specifies arguments for CMake.

getCFlags

abstract @NonNull ListProperty<@NonNull StringgetCFlags()

Specifies flags for the C compiler.

getCppFlags

abstract @NonNull ListProperty<@NonNull StringgetCppFlags()

Specifies flags for the CPP compiler.

getTargets

abstract @NonNull SetProperty<@NonNull StringgetTargets()

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