This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/system.md
2021-03-12 22:10:24 +01:00

904 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

More values may be added by add-on modules.

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