api / org.gradle.nativeplatform / NativeBinary

NativeBinary

@Incubating interface NativeBinary : Binary

Represents a particular binary artifact.

Functions

getBuildType

abstract fun getBuildType(): BuildType

Returns the org.gradle.nativeplatform.BuildType used to construct this binary.

getFlavor

abstract fun getFlavor(): Flavor

The org.gradle.nativeplatform.Flavor that this binary was built with.

getTargetPlatform

abstract fun getTargetPlatform(): NativePlatform

Returns the org.gradle.nativeplatform.platform.NativePlatform that this binary is targeted to run on.

Inherited Functions

getDisplayName

abstract fun getDisplayName(): String

Returns a human-consumable display name for this binary.

Inheritors

NativeExecutableBinary

interface NativeExecutableBinary : NativeBinary

A binary artifact for a NativeExecutable, targeted at a particular platform with specific configuration.

NativeLibraryBinary

interface NativeLibraryBinary : NativeBinary

A physical representation of a NativeLibrary component.