API Documentation: | ProjectNativeComponent |
---|
Note: This class is incubating and may change in a future version of Gradle.
Represents a logical software component, which may be built in a number of variant binaries.
Property | Description |
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. |
source | Incubating The source sets that are used to build this component. |
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)
DomainObjectSet
<NativeBinary
>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.
DomainObjectSet
<LanguageSourceSet
>
source
(read-only)
DomainObjectSet
<LanguageSourceSet
>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 | Description |
source(source) | Incubating Adds one or more |
targetBuildTypes(platformSelectors) | Incubating Specifies one or more |
targetFlavors(flavorSelectors) | Incubating Specifies one or more |
targetPlatforms(platformSelectors) | Incubating Specifies one or more |
void
source
(Object
source)
Note: This method is incubating and may change in a future version of Gradle.
Adds one or more LanguageSourceSet
s that are used to compile this binary.
This method accepts the following types:
- A
FunctionalSourceSet
- A
LanguageSourceSet
- A Collection of
LanguageSourceSet
s
void
targetBuildTypes
(Object
...
platformSelectors)
Object
...Note: This method is incubating and may change in a future version of Gradle.
Specifies one or more BuildType
s that this component should be built for.
This method accepts the following types:
- The String name of a build type.
void
targetFlavors
(Object
...
flavorSelectors)
Object
...Note: This method is incubating and may change in a future version of Gradle.
Specifies one or more Flavor
s that this component should be built for.
This method accepts the following types:
- The String name of the flavor to build.
void
targetPlatforms
(Object
...
platformSelectors)
Object
...Note: This method is incubating and may change in a future version of Gradle.
Specifies one or more Platform
s that this component should be built for.
This method accepts the following types:
- The String name of the platform to target.