NativeOutputKind

An enum class representing the different output types generated by the Kotlin/Native compiler. Each output type (or "kind") defines the format of the binary produced, such as an executable, a dynamic library, or a framework.

Entries

Link copied to clipboard

Represents an executable output type, such as a standalone program.

Link copied to clipboard

Represents a test executable, typically used for running unit or integration tests.

Link copied to clipboard

Represents a dynamic (shared) library, which is loaded at runtime by other programs.

Link copied to clipboard

Represents a static library, which is linked into an executable at compile time.

Link copied to clipboard

Represents a framework output type, used for iOS/macOS applications. For more information see Apple's documentation on Bundles and frameworks.

Properties

Link copied to clipboard
val compilerOutputKind: CompilerOutputKind

The internal representation of the output type used by the Kotlin/Native compiler.

Link copied to clipboard

A human-readable description of the output type, typically shown in logs or error messages, helping developers quickly understand the nature of the binary being generated. For example, "an executable".

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A string used to classify the tasks related to this instance of NativeOutputKind class, typically appended to task names to distinguish between tasks producing different types of binaries. For example, "executable" or "static".

Functions

Link copied to clipboard
open fun availableFor(target: KonanTarget): Boolean

Determines whether this instance of NativeOutputKind is supported for the specified target platform.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.