qbs module is implicitly loaded in every product. It contains properties of the current build environment, independent of the used programming languages and toolchains.
|configurationName||1.6||Contains the name of the current build configuration.|
|buildVariant||1.0||Contains the name of the build variant for the current build.|
|debugInformation||1.0||Specifies whether to generate debug information.|
|enableDebugCode||1.0||Specifies whether to compile debug code in the product. This is typically enabled for debug builds and disabled for release builds.|
|optimization||1.0||Specifies the general type of optimization that should be performed by all toolchains. Allowed values: |
|targetOS||1.0||Specifies the OS you want to build the project for. This is typically set in a profile. Possible values include one or more of the following: |
|architecture||1.0||Specifies the target platform's processor architecture. |
|toolchain||1.0||Specifies the attributes of the toolchain that is going to be used for this build. Typical values include: |
|sysroot||1.0||Specifies the sysroot of the target platform. This property is typically set in a profile for cross-compiling.|
|pathListSeparator||1.0||Holds the platform-specific separator for path list that is used in environment variables or other contexts.|
|nullDevice||1.4.2||Holds the platform-specific file path corresponding to the null device.|
|shellPath||1.5||Holds the platform-specific file path corresponding to the command line interpreter. On Windows this is the path to |
This section lists constant, read-only properties set by Qbs internally. These properties should not be overridden.
|hostOS||1.0||This property is set by Qbs internally and specifies the OS Qbs is running on. The possible values for this property are the values of |
|hostOSVersion||1.2||The host operating system version. Currently only defined for Windows and Apple platforms. Consists of two or three numbers separated by dots, for instance "10.9" or "6.3.9600".|
|hostOSBuildVersion||1.2||The host operating system's build version. Currently only defined for Windows and Apple platforms. On Windows, this is the 4 or 5 digit Windows build number and is equivalent to |
|hostOSVersionMajor||1.2||The host operating system major version.|
|hostOSVersionMinor||1.2||The host operating system minor version.|
|hostOSVersionParts||1.2||The host operating system version as a list. For instance, Windows 8.1 (version 6.3.9600) would correspond to a value of |
|hostOSVersionPatch||1.2||The host operating system patch level.|
|version||1.4.1||Version number of Qbs as a string, i.e. "1.4.1".|
|versionMajor||1.4.1||Major version number of Qbs.|
|versionMinor||1.4.1||Minor version number of Qbs.|
|versionPatch||1.4.1||Patch version number of Qbs.|
This section lists properties specific to the Qbs installation mechanism. See Installing Files for more information.
|install||1.0||Specifies whether to install a certain set of files. This is typically set in a |
Note: Artifacts for which this property is enabled automatically receive the file tag "installable". This is useful for writing packaging-related rules.
|installSourceBase||1.4||see below||Specifies the base directory of the local files that are going to be installed. The source base directory is omitted from the target directory path specified in |
|installDir||1.0||Specifies the installation directory for the files of a product or a |
|installPrefix||1.1||Specifies the global installation prefix. It is implicitly prepended to all values of |
|installRoot||1.4||Specifies the global installation root. It is implicitly prepended to all values of |
Note: This property is fundamentally different from
This section lists properties specific to product multiplexing.
|architectures||1.9||Specifies the architectures the product will be built for.|
|buildVariants||1.9||equivalent to ||Specifies the build variants the product will be built for.|
|profiles||1.9||The profiles for which the product should be built. For each profile listed here, one instance of the product will be built according to the properties set in the respective profile. This property is the same as |
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.