Table of Contents
API Documentation: | StaticLibraryBinarySpec |
---|
Note: This class is incubating and may change in a future version of Gradle.
A static library binary built by Gradle for a native library.
Property | Description |
assembler | Incubating The configuration of the assembler used when compiling assembly sources this binary.
Valid for |
buildType | Incubating The |
buildable | Incubating Can this binary be built in the current environment? |
cCompiler | Incubating The configuration of the C compiler used when compiling C sources for this binary.
Valid for |
component | Incubating The component that this binary was built from. |
cppCompiler | Incubating The configuration of the C++ compiler used when compiling C++ sources for this binary.
Valid for |
flavor | Incubating The |
inputs | Incubating Returns all inputs of the binary. This includes source sets owned by the binary, and other source sets created elsewhere (e.g. inherited from the binary's component). |
libs | Incubating The libraries that should be linked into this binary. |
linker | Incubating The configuration of the linker used when linking this binary.
Valid for |
objcCompiler | Incubating The configuration of the Objective-C compiler used when compiling Objective-C sources for this binary.
Valid for |
objcppCompiler | Incubating The configuration of the Objective-C++ compiler used when compiling Objective-C++ sources for this binary.
Valid for |
rcCompiler | Incubating The configuration of the Resource compiler used when compiling resources for this binary.
Valid for |
sources | Incubating The sources owned by this binary. |
staticLibArchiver | Incubating The configuration of the static library archiver used when creating this binary.
Valid for |
staticLibraryFile | Incubating The static library file. |
targetPlatform | Incubating The |
tasks | Incubating The set of tasks associated with this binary. |
toolChain | Incubating The |
Method | Description |
lib(library) | Incubating Adds a library as input to this binary. |
Note: This property is incubating and may change in a future version of Gradle.
The configuration of the assembler used when compiling assembly sources this binary.
Valid for SharedLibraryBinarySpec
, StaticLibraryBinarySpec
and
NativeExecutableBinarySpec
when the 'assembler' plugin is applied.
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?
Note: This property is incubating and may change in a future version of Gradle.
The configuration of the C compiler used when compiling C sources for this binary.
Valid for SharedLibraryBinarySpec
, StaticLibraryBinarySpec
and
NativeExecutableBinarySpec
when the 'c' plugin is applied.
Note: This property is incubating and may change in a future version of Gradle.
The component that this binary was built from.
Note: This property is incubating and may change in a future version of Gradle.
The configuration of the C++ compiler used when compiling C++ sources for this binary.
Valid for SharedLibraryBinarySpec
, StaticLibraryBinarySpec
and
NativeExecutableBinarySpec
when the 'cpp' plugin is applied.
Note: This property is incubating and may change in a future version of Gradle.
The Flavor
that this binary was built with.
Note: This property is incubating and may change in a future version of Gradle.
Returns all inputs of the binary. This includes source sets owned by the binary, and other source sets created elsewhere (e.g. inherited from the binary's component).
Note: This property is incubating and may change in a future version of Gradle.
The libraries that should be linked into this binary.
Note: This property is incubating and may change in a future version of Gradle.
The configuration of the linker used when linking this binary.
Valid for SharedLibraryBinarySpec
and NativeExecutableBinarySpec
.
Note: This property is incubating and may change in a future version of Gradle.
The configuration of the Objective-C compiler used when compiling Objective-C sources for this binary.
Valid for SharedLibraryBinarySpec
, StaticLibraryBinarySpec
and
NativeExecutableBinarySpec
when the 'objective-c' plugin is applied.
Note: This property is incubating and may change in a future version of Gradle.
The configuration of the Objective-C++ compiler used when compiling Objective-C++ sources for this binary.
Valid for SharedLibraryBinarySpec
, StaticLibraryBinarySpec
and
NativeExecutableBinarySpec
when the 'objective-cpp' plugin is applied.
Note: This property is incubating and may change in a future version of Gradle.
The configuration of the Resource compiler used when compiling resources for this binary.
Valid for SharedLibraryBinarySpec
, StaticLibraryBinarySpec
and
NativeExecutableBinarySpec
when the 'windows-resources' plugin is applied.
Note: This property is incubating and may change in a future version of Gradle.
The sources owned by this binary.
Note: This property is incubating and may change in a future version of Gradle.
The configuration of the static library archiver used when creating this binary.
Valid for StaticLibraryBinarySpec
.
Note: This property is incubating and may change in a future version of Gradle.
The static library file.
Note: This property is incubating and may change in a future version of Gradle.
The NativePlatform
that this binary is targeted to run on.
Note: This property is incubating and may change in a future version of Gradle.
The set of tasks associated with this binary.
Note: This property is incubating and may change in a future version of Gradle.
The NativeToolChain
that will be used to build this binary.
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:
- A
NativeLibrarySpec
- A
NativeDependencySet
- A
Map
containing the library selector.
The Map notation supports the following String attributes:
- project: the path to the project containing the library (optional, defaults to current project)
- library: the name of the library (required)
- linkage: the library linkage required ['shared'/'static'] (optional, defaults to 'shared')