api / org.gradle.language.nativeplatform / ComponentWithNativeRuntime

ComponentWithNativeRuntime

@Incubating interface ComponentWithNativeRuntime : SoftwareComponent

Represents a component that produces outputs that run on a native platform.

Since
4.5

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

ComponentWithExecutable

interface ComponentWithExecutable : ComponentWithNativeRuntime

Represents a native component that produces an executable.

ComponentWithInstallation

interface ComponentWithInstallation : ComponentWithNativeRuntime

Represents a native component that produces an application installation.

ComponentWithLinkFile

interface ComponentWithLinkFile : ComponentWithNativeRuntime

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

ComponentWithLinkUsage

interface ComponentWithLinkUsage : ComponentWithNativeRuntime

Represents a native component whose link time file and dependencies are published for consumption by some other project.

ComponentWithObjectFiles

interface ComponentWithObjectFiles : ComponentWithNativeRuntime

Represents a component that produces object files.

ComponentWithRuntimeFile

interface ComponentWithRuntimeFile : ComponentWithNativeRuntime

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

ComponentWithRuntimeUsage

interface ComponentWithRuntimeUsage : ComponentWithNativeRuntime

Represents a native component whose runtime file and dependencies are published for consumption by some other project.