Premake

Premake is an open-source software development utility for automatically building configuration from source code.

Premake
Original author(s)Jason Perkins
Stable release
4.3[1] / November 16, 2010 (2010-11-16)
Preview release
5.0-alpha14[2] / May 5, 2019 (2019-05-05)
Repository
Written inC, Lua
Typebuild automation tool
LicenseNew BSD License
Websitepremake.github.io

Features

Some of the features of the system are:[3]

  • It supports C, C++, and C# languages source code.
  • It has a simple syntax.
  • It can generate automatic build files for Visual Studio, GNU Make, Xcode, Code::Blocks, CodeLite, SharpDevelop, and MonoDevelop.
  • Using just one configuration set of files, different systems can be built.

Sample script

The following is an example Premake script for a simple software project.

solution "MySolution"
  configurations { "Debug", "Release" }

project "MyProject"
  kind "ConsoleApp"
  language "C++"
  includedirs { "include" }
  files { "src/**.h", "src/**.cpp" }

  configuration "Debug"
    symbols "On"
    defines { "_DEBUG" }

  configuration "Release"
    flags { "Optimize" }
    defines { "NDEBUG" }

Notable uses

There are a number of notable uses including:[4]

gollark: If I particularly wanted to I could just download multiple ISOs and select which one to use when necessary.
gollark: I can just use my phone for that, there are a bunch of apps to allow your (rooted, Android) phone to act as a USB mass storage device.
gollark: Alternatively, it's a test to see whether they'll be able to get away with using it to push advertising.
gollark: My guess: some developer wanted to test their push notification server or something, but accidentally used the *production* one and not the development one.
gollark: ECB mode or something.

See also

References


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.