# NativePlatform

interface NativePlatform : Platform, Describable(source)

A target platform for building native binaries. Each target platform is given a name, and may optionally be given a specific Architecture and/or OperatingSystem to target.

        model {
            platforms {
                windows_x86 {
                    architecture "i386"
                    operatingSystem "windows"
                }
            }
        }

Content copied to clipboard

## Functions

architecture
Link copied to clipboard
abstract fun architecture(name: String)
Sets the cpu architecture being targeted.
getArchitecture
Link copied to clipboard
abstract fun getArchitecture(): Architecture
The cpu architecture being targeted.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
getName
Link copied to clipboard
abstract fun getName(): String
getOperatingSystem
Link copied to clipboard
abstract fun getOperatingSystem(): OperatingSystem
The operating system being targeted.
operatingSystem
Link copied to clipboard
abstract fun operatingSystem(name: String)
Sets the operating system being targeted.