Module Item

A Module item is a collection of properties and language items that are used for building a product if the product depends on (or loads) the module.

A Module can be loaded by adding a dependency to it in a product. For example, the following product will load the cpp module:

Product {
    Depends { name: "cpp" }
    ...
}
PropertyTypeDefaultDescription
setupBuildEnvironmentscriptundefinedScript for setting up the environment in which the project is built. Use the putenv and getenv functions to alter the environment. The return value of this script is ignored.
setupRunEnvironmentscriptsetupBuildEnvironmentScript for setting up the environment in which the project is run.
validatescriptundefinedScript that is run after the module is loaded. It can be used to check property values and throw errors in unexpected cases. The return value is ignored.