Premake
Cross-platform build tool for configuring platform-specific builds From Wikipedia, the free encyclopedia
Premake is a software development tool for generating build configuration files for platform specific build tools based on configuration files that are platform agnostic. The tool is open-source.
Original author(s) | Jason Perkins |
---|---|
Stable release | 4.3[1]
/ 16 November 2010 |
Preview release | 5.0.0-beta4[2]
/ 30 December 2024 |
Repository | |
Written in | C, Lua |
Type | build automation tool |
License | 3-clause BSD License[3] |
Website | premake |
Features
Notable features include:[4]
- Supports building a codebase written in C, C++, and C#
- Support for generating build configuration files for Visual Studio, GNU Make, Xcode, Code::Blocks, CodeLite, and MonoDevelop
- Can build on different environments using the same premake configuration files[clarification needed]
Examples
The following is an example premake configuration file.
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
Projects that use Premake include: 0 A.D., Bullet, Open Dynamics Engine, VDrift, and wxFormBuilder,[5]
References
External links
Wikiwand - on
Seamless Wikipedia browsing. On steroids.