Reference articles on history, science, culture and more
Encyclopedia

Premake

Cross-platform build tool for configuring platform-specific builds

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.

01Features

Notable features include:

  • 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

02Examples

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" }

03Notable uses

Projects that use Premake include: 0 A.D., Bullet, Open Dynamics Engine, VDrift, and wxFormBuilder,

Watch videos about PremakeExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Premake, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.