LinkSharedLibrary

API Documentation:LinkSharedLibrary

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

Links a binary shared library from object files and imported libraries.

Properties

PropertyDescription
binaryFile
Incubating

The file where the linked binary will be located.

libs
Incubating

The library files to be passed to the linker.

linkerArgs
Incubating

Additional arguments passed to the linker.

source
Incubating

The source object files to be passed to the linker.

toolChain
Incubating

The tool chain used for linking.

Methods

MethodDescription
lib(libs)
Incubating

Adds a set of library files to be linked. The provided libs object is evaluated as per Project.files(java.lang.Object[]).

source(source)
Incubating

Adds a set of object files to be linked. The provided source object is evaluated as per Project.files(java.lang.Object[]).

Script blocks

No script blocks

Property details

RegularFileVar binaryFile (read-only)

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

The file where the linked binary will be located.

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

The library files to be passed to the linker.

List<String> linkerArgs

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

Additional arguments passed to the linker.

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

The source object files to be passed to the linker.

NativeToolChain toolChain

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

The tool chain used for linking.

Method details

void lib(Object libs)

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

Adds a set of library files to be linked. The provided libs object is evaluated as per Project.files(java.lang.Object[]).

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[]).