API Documentation: | StaticLibraryBinary |
---|
Note: This class is incubating and may change in a future version of Gradle.
A Library
that has been compiled and archived into a static library.
Property | Description |
asNativeDependencySet | Incubating Converts this binary into a |
compilerArgs | Incubating The arguments passed when compiling this binary. |
libs | Incubating The libraries that should be linked into this binary. |
linkerArgs | Incubating The arguments passed when linking this binary. |
macros | Incubating The set of preprocessor macros to define when compiling this binary. |
outputFile | Incubating The file where this binary will be created. |
source | Incubating The source sets used to compile this binary. |
toolChain | Incubating The |
NativeDependencySet
asNativeDependencySet
(read-only)
Note: This property is incubating and may change in a future version of Gradle.
Converts this binary into a NativeDependencySet
, for consumption in another binary.
Note: This property is incubating and may change in a future version of Gradle.
The arguments passed when compiling this binary.
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.
Note: This property is incubating and may change in a future version of Gradle.
The arguments passed when linking this binary.
Note: This property is incubating and may change in a future version of Gradle.
The set of preprocessor macros to define when compiling 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.
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 |
compilerArgs(args) | Incubating Adds a number of arguments to be passed to the compiler. |
define(defines) | Incubating Adds a number of preprocessor macros to define when compiling this binary. |
lib(library) | Incubating Adds a library as input to this binary. |
linkerArgs(args) | Incubating Adds a number of arguments to be passed to the linker. |
source(sourceSet) | Incubating Adds a source set to use to compile this binary. |
void
compilerArgs
(Object
...
args)
Object
...Note: This method is incubating and may change in a future version of Gradle.
Adds a number of arguments to be passed to the compiler.
void
define
(Object
...
defines)
Object
...Note: This method is incubating and may change in a future version of Gradle.
Adds a number of preprocessor macros to define when compiling this binary.
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
linkerArgs
(Object
...
args)
Object
...Note: This method is incubating and may change in a future version of Gradle.
Adds a number of arguments to be passed to the linker.
void
source
(LanguageSourceSet
sourceSet)
Note: This method is incubating and may change in a future version of Gradle.
Adds a source set to use to compile this binary.