api / org.gradle.nativeplatform.tasks / CreateStaticLibrary

CreateStaticLibrary

@Incubating open class CreateStaticLibrary : DefaultTask, ObjectFilesToBinary

Assembles a static library from object files.

Constructors

<init>

CreateStaticLibrary()

Functions

getBinaryFile

open fun getBinaryFile(): RegularFileProperty

The file where the linked binary will be located.

getOperationLoggerFactory

open fun getOperationLoggerFactory(): BuildOperationLoggerFactory

getOutputFile

open fun getOutputFile(): RegularFileProperty

The file where the output binary will be located.

getSource

open fun getSource(): FileCollection

The source object files to be passed to the archiver.

getStaticLibArgs

open fun getStaticLibArgs(): ListProperty<String>

Additional arguments passed to the archiver.

getTargetPlatform

open fun getTargetPlatform(): Property<NativePlatform>

The platform being linked for.

getToolChain

open fun getToolChain(): Property<NativeToolChain>

The tool chain used for linking.

link

open fun link(): 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...).