gradle
8.3

# SwiftBinary

interface SwiftBinary : ComponentWithObjectFiles, ComponentWithDependencies

A binary built from Swift source and linked from the resulting object files.

#### Inheritors

SwiftXCTestBinary
SwiftExecutable
SwiftSharedLibrary
SwiftStaticLibrary

## Functions

getBaseName
Link copied to clipboard
abstract fun getBaseName(): Provider<String>
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.
getDependencies
Link copied to clipboard
abstract fun getDependencies(): ComponentDependencies
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
getObjects
Link copied to clipboard
abstract fun getObjects(): FileCollection
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
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
isDebuggable
Link copied to clipboard
abstract fun isDebuggable(): Boolean
isOptimized
Link copied to clipboard
abstract fun isOptimized(): Boolean
isTestable
Link copied to clipboard
abstract fun isTestable(): Boolean
Returns true if this binary has testing enabled.