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
compilerArgs
Incubating

The arguments passed when compiling this binary.

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.

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

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.

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.

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(source)
Incubating

Adds one or more LanguageSourceSets that are used 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(Object source)

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

Adds one or more LanguageSourceSets that are used to compile this binary.

This method accepts the following types: