detly
detly

Reputation: 30342

What tokens or variables can be substituted in expressions in Premake 5?

In the Your First Script guide to Premake 5, there's a line:

targetdir "bin/%{cfg.buildcfg}"

It's clear from context that %{cfg.buildcfg} substitutes in the build configuration eg. Debug. But is this documented anywhere? Is there a list of other namespaces and names I can use eg. the workspace build directory?

Upvotes: 1

Views: 1292

Answers (1)

dlp_dev
dlp_dev

Reputation: 148

Those are called value tokens. In the wiki you can find a list of the ones available https://github.com/premake/premake-core/wiki/Tokens

Upvotes: 1

Related Questions