Variables
Maeiky edited this page Apr 30, 2019
·
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 |
a | Array | -{aObj} = [obj1.cpp, obj2.cpp, ...] |
w | Wide ('/' separator) | -{wLib_GZE} = VLiance/GZE/v1.0 |
Note: There is no real check behind this, this is just for a conventional way
Variable beginning with '_' have internal use by Cwc and have default value. You can also redefine these variables.
Download & Set current Toolchain
- Default Server: Github[/releases]
-#Run Build.cwc -{_wToolchain}= VLianceTool/WebRT
Plateform name
Optimisation Level
Current output directory
Current output binary directory
Current working directory
Current module directory (Lib or Toolchain)