StaticLibraryBinary

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.

Properties

PropertyDescription
asNativeDependencySet
Incubating

Converts this binary into a NativeDependencySet, for consumption in another binary.

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 ToolChain that will be used to build this binary.

Property details

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.

List<Object> compilerArgs (read-only)

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

The arguments passed when compiling this binary.

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

The libraries that should be linked into this binary.

List<Object> linkerArgs (read-only)

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

The arguments passed when linking this binary.

List<Object> macros (read-only)

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.

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.

Script blocks

No script blocks

Methods

MethodDescription
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.

Method details

void compilerArgs(Object... args)

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)

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)

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.