NativeExecutable

API Documentation:NativeExecutable

Note: This class is incubating and may change in a future version of Gradle.

An executable native component that is built by Gradle.

Properties

PropertyDescription
baseName
Incubating

The name that is used to construct the output file names when building this component.

binaries
Incubating

The binaries that are built for this component. You can use this to configure the binaries for this component.

displayName
Incubating

Returns a human-consumable display name for this component.

source
Incubating

The source sets that are used to build this component.

Methods

MethodDescription
source(source)
Incubating

Adds one or more LanguageSourceSets that are used to compile this binary.

targetBuildTypes(platformSelectors)
Incubating

Specifies the names of one or more BuildTypes that this component should be built for.

targetFlavors(flavorSelectors)
Incubating

Specifies the names of one or more Flavors that this component should be built for.

targetPlatforms(platformSelectors)
Incubating

Specifies the names of one or more Platforms that this component should be built for.

Script blocks

No script blocks

Property details

String baseName

Note: This property is incubating and may change in a future version of Gradle.

The name that is used to construct the output file names when building this component.

DomainObjectSet<NativeBinary> binaries (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The binaries that are built for this component. You can use this to configure the binaries for this component.

String displayName (read-only)

Note: This property is incubating and may change in a future version of Gradle.

Returns a human-consumable display name for this component.

Note: This property is incubating and may change in a future version of Gradle.

The source sets that are used to build this component.

Method details

void source(Object source)

Note: This method is incubating and may change in a future version of Gradle.

Adds one or more LanguageSourceSets that are used to compile this binary.

This method accepts the following types:

void targetBuildTypes(String... platformSelectors)

Note: This method is incubating and may change in a future version of Gradle.

Specifies the names of one or more BuildTypes that this component should be built for.

void targetFlavors(String... flavorSelectors)

Note: This method is incubating and may change in a future version of Gradle.

Specifies the names of one or more Flavors that this component should be built for.

void targetPlatforms(String... platformSelectors)

Note: This method is incubating and may change in a future version of Gradle.

Specifies the names of one or more Platforms that this component should be built for.