api / org.gradle.language.nativeplatform / ComponentWithSharedLibrary

ComponentWithSharedLibrary

@Incubating interface ComponentWithSharedLibrary : ComponentWithLinkFile, ComponentWithRuntimeFile

Represents a native component that produces a shared library.

Since
4.5

Functions

getLinkLibraries

abstract fun getLinkLibraries(): FileCollection

Returns the link libraries to use to link the shared library. Includes the link libraries of the component's dependencies.

getLinkTask

abstract fun getLinkTask(): Provider<out LinkSharedLibrary>

Returns the link task for the shared library.

Inherited Functions

getLinkFile

abstract fun getLinkFile(): Provider<RegularFile>

Returns the link file of this component.

getRuntimeFile

abstract fun getRuntimeFile(): Provider<RegularFile>

Returns the runtime file of this component.

Inheritors

CppSharedLibrary

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

A shared library built from C++ source.

SwiftSharedLibrary

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

A shared library built from Swift source.