bakery is part of the bake-toolkit distribution and it is used to build several independent projects at once. It’s very useful for e.g. compiling and running all unit tests. The collections are specified in Collection.meta files.
Call bakery -h to display the command line options. The most important options are the collection name (-b) and the collection directory (-m, default is current directory).
Examples:
Build all unittests:
bakery -b AllUnitTests
It is possible to omit -b:
bakery AllUnitTests
Clean all unittests:
bakery -b AllUnitTests -c
Build all unittests, workspace checked out into two roots, console supports colors, stop on first error, run the unittests after build:
bakery -b AllUnitTests -m w:/root1/mainProj -w w:/root2 -r -a black --do run
Move the mouse cursor over the blue elements to display more information.
Collection <name> { Project <name>, config: <name> Exclude <name>, config: <name> SubCollection <name> } Collection
Mandatory: Yes Quantity: 1..n Default: - Description: This is a collection of builds. The name must be unique within this file. |
Note
Example:
Collection AllUnitTests { Project "*", config: UnitTest } Collection UnitTestLibsWithoutBsp { Project "*", config: "UnitTestLib*" Exclude "bsp*", config: "*" } Collection MySpecialCollection { Project Main1, config: Debug Project Main2, config: Release Project Sub3, config: Debug SubCollection UnitTestLibsWithoutBsp }