api / org.gradle.nativeplatform.tasks / LinkSharedLibrary

LinkSharedLibrary

@Incubating open class LinkSharedLibrary : AbstractLinkTask

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

Constructors

<init>

LinkSharedLibrary()

Functions

getImportLibrary

open fun getImportLibrary(): RegularFileProperty

Returns the import library produced by this task. Defaults to the directory containing the runtime file and is not defined when no import library will be produced.

getInstallName

open fun getInstallName(): String

setInstallName

open fun setInstallName(installName: String): Unit

Inherited Functions

getDebuggable

open fun getDebuggable(): Property<Boolean>

Create a debuggable binary?

getDestinationDirectory

open fun getDestinationDirectory(): DirectoryProperty

Include the destination directory as an output, to pick up auxiliary files produced alongside the main output file

getLibs

open fun getLibs(): ConfigurableFileCollection

The library files to be passed to the linker.

getLinkedFile

open fun getLinkedFile(): RegularFileProperty

The file where the linked binary will be located.

getLinkerArgs

open fun getLinkerArgs(): ListProperty<String>

Additional arguments passed to the linker.

getOperationLoggerFactory

open fun getOperationLoggerFactory(): BuildOperationLoggerFactory

getSource

open fun getSource(): ConfigurableFileCollection

The source object files to be passed to the linker.

getTargetPlatform

open fun getTargetPlatform(): Property<NativePlatform>

The platform being linked for.

getToolChain

open fun getToolChain(): Property<NativeToolChain>

The tool chain used for linking.

isDebuggable

open fun isDebuggable(): Boolean

Create a debuggable binary?

lib

open fun lib(libs: Any): Unit

Adds a set of library files to be linked. The provided libs object is evaluated as per org.gradle.api.Project#files(Object...).

link

open fun link(): Unit

setLibs

open fun setLibs(libs: FileCollection): Unit

setSource

open fun setSource(source: FileCollection): Unit

source

open fun source(source: Any): Unit

Adds a set of object files to be linked. The provided source object is evaluated as per org.gradle.api.Project#files(Object...).