Skip to content
Jason Perkins edited this page Apr 15, 2015 · 6 revisions

The system function 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 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

Any configuration.

Availability

Premake 5.0 or later.

Examples

solution "MySolution"
   configurations { "Debug", "Release" }
   platforms { "Windows", "Unix", "Mac" }

   filter "platforms:Windows"
      system "windows"

   filter "platforms:Unix"
      system "linux"

   filter "platforms:Mac"
      system "macosx"

See Also

Clone this wiki locally