API Documentation: | LibraryBinary |
---|
Note: This class is incubating and may change in a future version of Gradle.
A physical representation of a Library
component.
Property | Description |
buildType | Incubating The |
buildable | Incubating Can this binary be built in the current environment? |
component | Incubating The Library that this binary represents. |
flavor | Incubating The flavor that this binary was built with. |
libs | Incubating The libraries that should be linked into this binary. |
linker | Incubating The settings used for linking this binary. |
outputFile | Incubating The file where this binary will be created. |
source | Incubating The source sets used to compile this binary. |
targetPlatform | Incubating The |
tasks | Incubating The set of tasks associated with this binary. |
toolChain | Incubating The |
BuildType
buildType
(read-only)
Note: This property is incubating and may change in a future version of Gradle.
The BuildType
used to construct this binary.
Note: This property is incubating and may change in a future version of Gradle.
Can this binary be built in the current environment?
Library
component
(read-only)
Note: This property is incubating and may change in a future version of Gradle.
The Library that this binary represents.
Flavor
flavor
(read-only)
Note: This property is incubating and may change in a future version of Gradle.
The flavor that this binary was built with.
Collection
<NativeDependencySet
>
libs
(read-only)
Collection
<NativeDependencySet
>Note: This property is incubating and may change in a future version of Gradle.
The libraries that should be linked into this binary.
Tool
linker
(read-only)
Note: This property is incubating and may change in a future version of Gradle.
The settings used for linking this binary.
File
outputFile
Note: This property is incubating and may change in a future version of Gradle.
The file where this binary will be created.
DomainObjectSet
<LanguageSourceSet
>
source
(read-only)
DomainObjectSet
<LanguageSourceSet
>Note: This property is incubating and may change in a future version of Gradle.
The source sets used to compile this binary.
Platform
targetPlatform
(read-only)
Note: This property is incubating and may change in a future version of Gradle.
The Platform
that this binary is targeted to run on.
NativeBinaryTasks
tasks
(read-only)
Note: This property is incubating and may change in a future version of Gradle.
The set of tasks associated with this binary.
ToolChain
toolChain
(read-only)
Note: This property is incubating and may change in a future version of Gradle.
The ToolChain
that will be used to build this binary.
Method | Description |
lib(library) | Incubating Adds a library as input to this binary. |
source(source) | Incubating Adds one or more |
void
lib
(Object
library)
Note: This method is incubating and may change in a future version of Gradle.
Adds a library as input to this binary.
This method accepts the following types:
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