Qbs

Blog Documentation Get Qbs Community
  • Qbs Manual
  • QbsLanguageItems
  • Parameters
  • Qbs 2.4.0
  • Parameters

    Defines default values for dependency parameters within Module and Export items. More...

    Detailed Description

    The Parameters item defines default values for dependency parameters within Module and Export items.

    Example:

    DynamicLibrary {
       name: "foo"
       ...
       Export {
           ...
           Parameters {
               cpp.link: false
           }
       }
    }

    Every dependency on foo has the parameter cpp.link set to false by default.

    This can be overridden explicitly:

    Depends { name: "foo"; cpp.link: true }

    The Parameters item contains a number of property bindings where each property must be a properly declared dependency parameter. For more information, see Parameter and Module - Dependency Parameters.