api / org.gradle.language.swift / SwiftPlatform

SwiftPlatform

@Incubating interface SwiftPlatform : NativePlatform

A target platform for building Swift binaries.

Since
4.5

Functions

getOperatingSystemFamily

abstract fun getOperatingSystemFamily(): OperatingSystemFamily

The operating system family being targeted.

Inherited Functions

architecture

abstract fun architecture(name: String): Unit

Sets the cpu architecture being targeted.

The architecture is provided as a string name, which is translated into one of the supported architecture types.

getArchitecture

abstract fun getArchitecture(): Architecture

The cpu architecture being targeted. Defaults to the default architecture produced by the tool chain.

getOperatingSystem

abstract fun getOperatingSystem(): OperatingSystem

The operating system being targeted. Defaults to the default operating system targeted by the tool chain (normally the current operating system).

operatingSystem

abstract fun operatingSystem(name: String): Unit

Sets the operating system being targeted.

The operating system is provided as a string name, which is translated into one of the supported operating system types.