api / org.gradle.nativeplatform / OperatingSystemFamily

OperatingSystemFamily

@Incubating abstract class OperatingSystemFamily : Named

Represents the operating system of a configuration. Typical operating system include Windows, Linux, and macOS. This interface allows the user to customize operating systems by implementing this interface.

Since
4.7

Constructors

<init>

OperatingSystemFamily()

Represents the operating system of a configuration. Typical operating system include Windows, Linux, and macOS. This interface allows the user to customize operating systems by implementing this interface.

Properties

LINUX

static val LINUX: String

The Linux operating system family.

MACOS

static val MACOS: String

The macOS operating system family.

OPERATING_SYSTEM_ATTRIBUTE

static val OPERATING_SYSTEM_ATTRIBUTE: Attribute<OperatingSystemFamily>

WINDOWS

static val WINDOWS: String

The Windows operating system family.

Functions

getName

abstract fun getName(): String

{@inheritDoc}

isLinux

open fun isLinux(): Boolean

Is this the Linux operating system family?

isMacOs

open fun isMacOs(): Boolean

Is this the macOS operating system family?

isWindows

open fun isWindows(): Boolean

Is this the Windows operating system family?