-
Notifications
You must be signed in to change notification settings - Fork 0
Variables
Medha Lódurr edited this page Sep 11, 2018
·
17 revisions
You can define and using varaible inside commands They are always inside bracket '{' '}'
-c src.cpp -o obj/{_sPlatform}/MyProject/
You can set a variable using:
-{YourVar}="Value"
Variables require prefix followed by any uppercase letter
Usual variables prefix:
Prefix | Description | Example |
---|---|---|
s | String | -{sName} = "Bob" |
p | Path | -{pExe} = "C:/Project/" |
n | Number | -{nTotal} = 5 |
b | Boolean | -{bIsBool} = true |
Variable beginning with '_' have internal use by Cwc and have default value. You can also redefine these variables.
Optimisation Level
Current output directory
Current working directory
Current module directory (Lib or Toolchain)