premake
Original author(s) | Jason Perkins |
---|---|
Stable release | 4.3 / November 16, 2010 |
Preview release | 5.0-alpha1[1] / February 23, 2015 |
Written in | C, Lua |
Operating system | Cross-platform |
Type | build automation tool |
License | New BSD License |
Website | industriousone.com/premake |
In software development, premake is an open source utility for automatically building configuration from source code.
Features
Some of the features of the system are:[2]
- 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" flags { "Symbols" } defines { "_DEBUG" } configuration "Release" flags { "Optimize" } defines { "NDEBUG" }
Notable applications
- Bullet (software) [3]
- GpuCV [4]
- Open Dynamics Engine [5]
- OpenJAUS [6]