-
-
Notifications
You must be signed in to change notification settings - Fork 616
platforms
This wiki is no longer being maintained.
Specifies a set of build platforms, which act as another configuration axis when building.
platforms { "names" }
The platforms listed here are just names to be displayed in the IDE, with no intrinsic meaning. A platform named "x86_64" will not create a 64-bit build; the appropriate architecture still must be specified. For more information, see Configurations and Platforms.
names
is a list of platform names. Spaces are allowed, but may make using certain Premake features, such as command-line configuration selection, more difficult.
Workspaces and projects.
Premake 5.0 or later.
Specify debug and release configurations for a workspace, with static and shared library "platforms" in 32- and 64-bit variations.
workspace "MyWorkspace"
configurations { "Debug", "Release" }
platforms { "Static32", "Shared32", "Static64", "Shared64" }
filter "platforms:Static32"
kind "StaticLib"
architecture "x32"
filter "platforms:Static64"
kind "StaticLib"
architecture "x64"
filter "platforms:Shared32"
kind "SharedLib"
architecture "x32"
filter "platforms:Shared64"
kind "SharedLib"
architecture "x64"