api / org.gradle.language.nativeplatform / ComponentWithRuntimeUsage

ComponentWithRuntimeUsage

@Incubating interface ComponentWithRuntimeUsage : ComponentWithNativeRuntime

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

Since
4.5

Functions

getRuntimeElements

abstract fun getRuntimeElements(): Provider<Configuration>

Returns the outgoing runtime elements 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

CppExecutable

interface CppExecutable : CppBinary, ComponentWithExecutable, ComponentWithInstallation, ComponentWithOutputs, ComponentWithRuntimeUsage, PublishableComponent

An executable built from C++ source.

CppSharedLibrary

interface CppSharedLibrary : CppBinary, ComponentWithSharedLibrary, ComponentWithLinkUsage, ComponentWithRuntimeUsage, ComponentWithOutputs, PublishableComponent

A shared library built from C++ source.

CppStaticLibrary

interface CppStaticLibrary : CppBinary, ComponentWithStaticLibrary, ComponentWithLinkUsage, ComponentWithRuntimeUsage, ComponentWithOutputs, PublishableComponent

A static library built from C++ source.

SwiftSharedLibrary

interface SwiftSharedLibrary : SwiftBinary, ComponentWithSharedLibrary, ComponentWithRuntimeUsage, ComponentWithLinkUsage, ComponentWithOutputs

A shared library built from Swift source.

SwiftStaticLibrary

interface SwiftStaticLibrary : SwiftBinary, ComponentWithStaticLibrary, ComponentWithRuntimeUsage, ComponentWithLinkUsage, ComponentWithOutputs

A static library built from Swift source.