Skip to content

filename

Jason Perkins edited this page May 29, 2015 · 6 revisions

Sets the name of a generated solution, project, or rules file. Use it in conjunction with location to completely control the generated file destination.

filename ("name")

By default, generated solution, project, and rule files use their name the as the name of the generated file. The filename function allows you to change this.

Parameters

name is the desired file name for the generated solution or project file.

Applies To

Project configurations.

Examples

Change the solution name to "Master".

solution "MySolution"
  filename "Master"

If you plan to build with multiple tools from the same source tree you might want to split up the project files by toolset. The _ACTION global variable contains the current toolset identifier, as specified on the command line.

solution "MySolution"
   filename "MySolution_%{_ACTION or ''}"

See Also

Clone this wiki locally