Skip to content
Jason Perkins edited this page Apr 1, 2015 · 2 revisions

Home > [Scripting With Premake](Scripting With Premake) > Build Settings


Build Settings

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 function. As you can see, the flags function provides most of the features, and is a good place to start if you aren't sure how to make something go.

Specify source code files files, excludes
Define compiler or preprocessor symbols defines
Locate include files includedirs
Link against libraries, frameworks, or sibling projects links, libdirs
Enable debugging information flags
Optimize for size or speed flags
Turn compiler or linker features on or off flags, buildoptions, linkoptions
Set the name or location of the compiled target file targetname, targetextension, targetprefix, targetdir

For a comprehensive list of available settings and functions, see the Scripting Reference page.

If you think something should be possible and you can't figure out how to do it, feel free to post a question in the forums and someone will help you out.

Clone this wiki locally