-
-
Notifications
You must be signed in to change notification settings - Fork 621
Build Settings
starkos edited this page Apr 10, 2021
·
5 revisions
This wiki is no longer being maintained.
Premake provides an ever-growing list of build settings that you can tweak; the following table lists some of the most common configuration tasks with a link to the corresponding functions. For a comprehensive list of available settings and functions, see the Project API and Lua Library Additions.
If you think something should be possible and you can't figure out how to do it, see Getting Help.
Specify the type of binary output (library, executable) | kind |
Specify source code files | files, removefiles |
Define compiler or preprocessor symbols | defines |
Locate include files | includedirs |
Set up precompiled headers | pchheader, pchsource |
Link libraries, frameworks, or sibling projects | links, libdirs |
Enable debugging information | flags |
Optimize for size or speed | optimize |
Add arbitrary build flags | buildoptions, linkoptions |
Set the name or location of compiled targets | targetname, targetdir |