-
Notifications
You must be signed in to change notification settings - Fork 20
buildaction
Manu Evans edited this page Mar 30, 2015
·
5 revisions
Home > [Scripting Reference](Scripting Reference) > buildaction
The buildaction function specifies how a file or set of files should be treated during the compilation process. It is usually paired with a configuration filter to select a file set. If no build action is specified for a file a default action will be used, based on the file's extension.
#!lua
buildaction ("action")
Build actions are currently only supported for .NET projects, and not for C or C++.
Updated information is available on the new Premake wiki.
Solutions, projects, and configurations.
action is one of:
Compile | Treat the file as source code; compile and link it. |
Embed | Embed the file into the target binary as a resource. |
Copy | Copy the file to the target directory. |
None | Do nothing with this file. |
Embed all PNG image files into the target binary.
#!lua
configuration "**.png"
buildaction "Embed"