-
-
Notifications
You must be signed in to change notification settings - Fork 621
platforms
starkos edited this page Mar 17, 2014
·
10 revisions
The platforms function specifies a set of build platforms, which act as another configuration axis when building.
#!lua
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.
Solutions and projects.
Premake 5.0 or later.
Specify debug and release configurations for a solution, with static and shared library "platforms" in 32- and 64-bit variations.
#!lua
solution "MySolution"
configurations { "Debug", "Release" }
platforms { "Static32", "Shared32", "Static64", "Shared64" }
configuration "Static32"
kind "StaticLib"
architecture "x32"
configuration "Static64"
kind "StaticLib"
architecture "x64"
configuration "Shared32"
kind "SharedLib"
architecture "x32"
configuration "Shared64"
kind "SharedLib"
architecture "x64"