api / org.gradle.language.nativeplatform / ComponentWithLinkFile

ComponentWithLinkFile

@Incubating interface ComponentWithLinkFile : ComponentWithNativeRuntime

Represents a native component that produces a file to be used at link time.

Since
4.5

Functions

getLinkFile

abstract fun getLinkFile(): Provider<RegularFile>

Returns the link file of 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

ComponentWithSharedLibrary

interface ComponentWithSharedLibrary : ComponentWithLinkFile, ComponentWithRuntimeFile

Represents a native component that produces a shared library.

ComponentWithStaticLibrary

interface ComponentWithStaticLibrary : ComponentWithLinkFile

Represents a component that produces a static library.