premake/website/docs/system.md
KyrietS 19f8561bd8 Upgrade docusaurus version to beta.6
- some files had to be renamed as files prefixed with an underscore are ignored now
- docusaurus reserves /docs/tags path so we can't have a page there
2021-09-08 21:42:18 +02:00

852 B

Specifies the target operating system.

system ("value")

If no system is specified, Premake will identify and target the current operating system. This can be overridden with the --os command line argument, providing one of the system identifiers below.

Parameters

value is one of:

  • aix
  • bsd
  • haiku
  • linux
  • macosx
  • solaris
  • wii
  • windows
  • xbox360

Applies To

Project configurations.

Availability

Premake 5.0 or later.

Examples

workspace "MyWorkspace"
   configurations { "Debug", "Release" }
   system { "Windows", "Unix", "Mac" }

   filter "system:Windows"
      system "windows"

   filter "system:Unix"
      system "linux"

   filter "system:Mac"
      system "macosx"

See Also