Skip to content

filename

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

The filename function sets the name of the generated solution or project file. Use it in conjunction with the location function 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

Solutions, projects, and rules.

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 ''}"
Clone this wiki locally