User@Host:~$ bake -h
-b the build configuration name
-m the main project directory (default is current directory)
-p the project to build (if not specified, the main project will be built with all dependencies)
Note
All configs of the project will be built, which is usually just one config, but if you have more than one config of the project in the workspace, use a comma separator.
User@Host:~$ bake -b Debug
Note
It is possible to omit -b:
User@Host:~$ bake Debug
User@Host:~$ bake Debug -m w:/root/mainProj
Assuming the project name to build s myProj.
User@Host:~$ bake Debug -m w:/root1/myProj -p myProj
Assuming mainProj has several configs really included in the build (which is uncommon), you can choose one of the configs.
User@Host:~$ bake Debug -m w:/root1/myProj -p myProj,abc
Assuming code has been checked out into two roots, the console supports ansi colors, you want to stop on first error and build only the project bspAbc.
User@Host:~$ bake Debug -m w:/root1/myProj -w w:/root1 -w w:/root2 -r -a black -p bspAbc
User@Host:~$ bake Debug -m w:/root1/myProj -w w:/root1 -w w:/root2 -r -a black -p bspAbc -c
User@Host:~$ bake Debug -p bspAbc -f main.cpp User@Host:~$ bake Debug -f .asmNote
All files matching the pattern will be compiled (no wildcards allowed)
Workspace roots can be defined in a file called “roots.bake”, which will be searched from main project directory to root folder. Example:
../.. C:/another/root # comments written like this something/else
If -w and roots.bake are not specified, the default workspace root is the parent directory of the main project.