# 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

#### Since

2.2

## 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
@Internal
abstract fun getDisplayName(): String
Returns a human consumable name for this platform.
getName
Link copied to clipboard
@Input
abstract fun getName(): String
The object's name.
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.