# SwiftStaticLibrary

interface SwiftStaticLibrary : SwiftBinary, ComponentWithStaticLibrary, ComponentWithRuntimeUsage, ComponentWithLinkUsage, ComponentWithOutputs(source)

A static library built from Swift source.

#### Since

4.5

## Functions

getBaseName
Link copied to clipboard
abstract fun getBaseName(): Provider<String>
Returns the base name of this component.
getCompileModules
Link copied to clipboard
abstract fun getCompileModules(): FileCollection
Returns the modules to use to compile this binary.
getCompileTask
Link copied to clipboard
abstract fun getCompileTask(): Provider<SwiftCompile>
Returns the compile task for this binary.
getCreateTask
Link copied to clipboard
abstract fun getCreateTask(): Provider<out CreateStaticLibrary>
Returns the task to create the static library.
getDependencies
Link copied to clipboard
abstract fun getDependencies(): ComponentDependencies
Returns the dependencies of this component.
getLinkElements
Link copied to clipboard
abstract fun getLinkElements(): Provider<Configuration>
Returns the outgoing link elements of this component.
getLinkFile
Link copied to clipboard
abstract fun getLinkFile(): Provider<RegularFile>
Returns the link file of this component.
getLinkFileProducer
Link copied to clipboard
abstract fun getLinkFileProducer(): Provider<out Task>
Returns the task that should be run to produce the link file of this component.
getLinkLibraries
Link copied to clipboard
abstract fun getLinkLibraries(): FileCollection
Returns the link libraries to use to link this binary.
getModule
Link copied to clipboard
abstract fun getModule(): Provider<String>
Returns the name of the Swift module that this binary defines.
getModuleFile
Link copied to clipboard
abstract fun getModuleFile(): Provider<RegularFile>
Returns the module file for this binary.
getName
Link copied to clipboard
abstract fun getName(): String
The object's name.
getObjects
Link copied to clipboard
abstract fun getObjects(): FileCollection
Returns the object files created for this component.
getOutputs
Link copied to clipboard
abstract fun getOutputs(): FileCollection
Returns the outputs produced for this component.
getRuntimeElements
Link copied to clipboard
abstract fun getRuntimeElements(): Provider<Configuration>
Returns the outgoing runtime elements of this component.
getRuntimeLibraries
Link copied to clipboard
abstract fun getRuntimeLibraries(): FileCollection
Returns the runtime libraries required by this binary.
getSwiftSource
Link copied to clipboard
abstract fun getSwiftSource(): FileCollection
Returns the Swift source files of this binary.
getTargetMachine
Link copied to clipboard
abstract fun getTargetMachine(): TargetMachine
Returns the target machine for this component.
getTargetPlatform
Link copied to clipboard
abstract fun getTargetPlatform(): SwiftPlatform
Returns the target platform for this component.
getToolChain
Link copied to clipboard
abstract fun getToolChain(): NativeToolChain
Returns the tool chain for this component.
isDebuggable
Link copied to clipboard
abstract fun isDebuggable(): Boolean
Returns true if this component has debugging enabled.
isOptimized
Link copied to clipboard
abstract fun isOptimized(): Boolean
Returns true if this component is optimized.
isTestable
Link copied to clipboard
abstract fun isTestable(): Boolean
Returns true if this binary has testing enabled.