# ComponentWithExecutable

interface ComponentWithExecutable : ComponentWithNativeRuntime(source)

Represents a native component that produces an executable.

#### Since

4.5

#### Inheritors

CppExecutable
CppTestExecutable
SwiftXCTestExecutable
SwiftExecutable

## Functions

getBaseName
Link copied to clipboard
abstract fun getBaseName(): Provider<String>
Returns the base name of this component.
getExecutableFile
Link copied to clipboard
abstract fun getExecutableFile(): Provider<RegularFile>
Returns the executable file to produce.
getExecutableFileProducer
Link copied to clipboard
abstract fun getExecutableFileProducer(): Provider<out Task>
Returns the task that should be run to produce the executable file of this component.
getLinkLibraries
Link copied to clipboard
abstract fun getLinkLibraries(): FileCollection
Returns the link libraries to use to link the executable.
getLinkTask
Link copied to clipboard
abstract fun getLinkTask(): Provider<out LinkExecutable>
Returns the link task for the executable.
getName
Link copied to clipboard
abstract fun getName(): String
The object's name.
getTargetMachine
Link copied to clipboard
abstract fun getTargetMachine(): TargetMachine
Returns the target machine 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.