CreateStaticLibrary

API Documentation:CreateStaticLibrary

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

Assembles a static library from object files.

Properties

PropertyDescription
outputFile
Incubating

The file where the output binary will be located.

source
Incubating

The source object files to be passed to the archiver.

staticLibArgs
Incubating

Additional arguments passed to the archiver.

targetPlatform
Incubating

The platform being linked for.

toolChain
Incubating

The tool chain used for linking.

Methods

MethodDescription
source(source)
Incubating

Adds a set of object files to be linked.

Script blocks

No script blocks

Property details

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

The file where the output binary will be located.

FileCollection source (read-only)

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

The source object files to be passed to the archiver.

ListProperty<String> staticLibArgs

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

Additional arguments passed to the archiver.

Property<NativePlatform> targetPlatform

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

The platform being linked for.

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

The tool chain used for linking.

Method details

void source(Object source)

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

Adds a set of object files to be linked.

The provided source object is evaluated as per Project.files(java.lang.Object[]).