api / org.gradle.language.nativeplatform / ComponentWithObjectFiles

ComponentWithObjectFiles

@Incubating interface ComponentWithObjectFiles : ComponentWithNativeRuntime

Represents a component that produces object files.

Since
4.5

Functions

getObjects

abstract fun getObjects(): FileCollection

Returns the object files created for this component.

Inherited Functions

getBaseName

abstract fun getBaseName(): Provider<String>

Returns the base name of this component. This is used to calculate output file names.

getTargetPlatform

abstract fun getTargetPlatform(): NativePlatform

Returns the target platform for this component.

getToolChain

abstract fun getToolChain(): NativeToolChain

Returns the tool chain for this component.

isDebuggable

abstract fun isDebuggable(): Boolean

Returns true if this component has debugging enabled.

isOptimized

abstract fun isOptimized(): Boolean

Returns true if this component is optimized.

Inheritors

CppBinary

interface CppBinary : ComponentWithObjectFiles, ComponentWithDependencies, BuildableComponent

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

SwiftBinary

interface SwiftBinary : ComponentWithObjectFiles, ComponentWithDependencies

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