aboutsummaryrefslogtreecommitdiffstats
path: root/doc/reference
Commit message (Collapse)AuthorAgeFilesLines
* Merge 1.12 into masterChristian Kandeler2018-06-151-1/+1
|\ | | | | | | Change-Id: I72bbda4537a65bc525afc38a3d280f3c23940c12
| * Doc: Fix typoJesus Fernandez2018-06-131-1/+1
| | | | | | | | | | Change-Id: Ifdcf21c004bae0a2e20a7b5c529466b4a7da8efe Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Merge 1.12 into masterChristian Kandeler2018-06-082-0/+212
|\| | | | | | | Change-Id: I0c914674c0728a7f7bc70fd9608914b95ef55a30
| * Exporter.pkgconfig: Add support for custom variablesChristian Kandeler2018-06-061-0/+12
| | | | | | | | | | Change-Id: I42a01e549c15c91428d0f8bd9be03ea59c773032 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| * Add module Exporter.pkgconfigChristian Kandeler2018-06-042-0/+200
| | | | | | | | | | | | | | | | | | | | | | | | This module generates .pc files for products, optionally attempting to derive some of the entries from the contents of the Export item. [ChangeLog] Added new module "Exporter.pkgconfig" for creating pkg- config metadata files. Task-number: QBS-1232 Change-Id: Ic41e645e4462e8f85ad6c2025fb967e88d3438f9 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Make the texttemplate module publicJoerg Bornemann2018-06-011-0/+118
| | | | | | | | | | | | | | | | | | | | | | Also, adjust the syntax to be closer to ES2015's template literals. [ChangeLog] Introduced the texttemplate module, a facility similar to qmake's SUBSTITUTES feature. Task-number: QBS-1050 Change-Id: Id4d45ac962d68f44a060aefafb20263d7f21ba9f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Merge "Merge 1.12 into master"Christian Kandeler2018-06-019-14/+72
|\ \
| * | Merge 1.12 into masterChristian Kandeler2018-06-019-14/+72
| |\| | | | | | | | | | Change-Id: I95f9b29df55c0baac20791bbe17f615c1ce060bb
| | * Add support for system-level settingsChristian Kandeler2018-06-015-8/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to the traditional per-user settings, there is now also a system-wide settings file affecting all users. The file's platform- specific default location can be overridden at build time. The qbs-config tool can write these settings via the new --system option. [ChangeLog] Introduced the concept of system-level qbs settings Change-Id: Ie6f675a74e96ce1fa7b2dd0712f6106071e848a6 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| | * Fix copy/paste artifact in AutotestRunner documentationChristian Kandeler2018-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | The workingDir property is of course a string. Change-Id: If0c5dbccb4debe20640cb4add0d0d13d0dc85d8e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
| | * Documentation: Work around qdoc quirkChristian Kandeler2018-05-254-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Apparently, the name of a snippet identifier cannot have the name of another snippet identifier as a substring. Change-Id: Ic82a26f3e05daa627f2de36d330e31216cf0a76e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | | Simplify installation of applications and librariesChristian Kandeler2018-06-013-9/+93
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "install" and "installDir" convenience properties to our Application, DynamicLibrary and StaticLibrary items, so users are no longer required to write groups with file tag filters for the normal installation case. The installDir property has a suitable default value for the respective target platform, as does qbs.installPrefix. [ChangeLog] The Application, DynamicLibrary and StaticLibrary items now have properties for more convenient installation of target binaries. Task-number: QBS-229 Change-Id: I9cfa4c02a7c555b0af637257da63967cd62cc119 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* / Introduce the autotest moduleChristian Kandeler2018-05-302-0/+73
|/ | | | | | | | | | | This module allows different autotests to run in different ways, for instance with a custom working directory. [ChangeLog] Introduced the autotest module Change-Id: I8e0438f0a9fb1d9103bbd3cc0d2b6d46c244def6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Make cpp.cxxLanguageVersion a listChristian Kandeler2018-05-141-2/+4
| | | | | | | | | | | ... and choose the highest entry. This enables different modules to specify their requirements without introducing conflicts. Same for cpp.cLanguageVersion. Task-number: QBS-1225 Change-Id: I96ed6c370eb190023fdb69274dcb080d967f512d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Add new property explicitlyDependsOnFromDependenciesAlexandru Croitor2018-05-091-2/+12
| | | | | | | | | | | | | | | | This change adds new Rule item property called explicitlyDependsOnFromDependencies. It allows specifying a list of file tags to consider in dependent target artifacts which should be used as dependencies. [ChangeLog] The Rule item property explicitlyDependsOn no longer considers target artifacts of products that the processed product depends on. The new property explicitlyDependsOnFromDependencies can be used for that purpose. Change-Id: I47a80699fe881d4075b292ad164dd6e776049a83 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ModuleLoader: Do dependency resolving in two stagesChristian Kandeler2018-05-071-1/+1
| | | | | | | | | ... if needed. This is required to lift the restriction that products cannot be matched by Depends.productTypes if their type depends on a module property, which turned out to be too limiting in practice. Change-Id: Ibc51f035209e583d335719560a69d5bb42cb6df9 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Add AutotestRunner.auxiliaryInputsChristian Kandeler2018-05-071-0/+12
| | | | | | | | | | | This is a set of file tags representing run-time dependencies of the test executables. [ChangeLog] Added the AutotestRunner.auxiliaryInputs property for specifying run-time dependencies of test executables Change-Id: If1ac6256d83f535b8be859a096062f07b0070729 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Add support for prefix/output in lex_yacc moduleJoerg Bornemann2018-05-041-0/+24
| | | | | | | | | | | | | | | | | | | | The user can specify the outputs of lex/yacc via %option prefix="foo" in the .l file and %output "parser.cpp" in the .y file. Also, introduce the following properties to specify the outputs: lexOutputFilePath, yaccOutputFilePath. Scan the lex/yacc inputs for those specifications and adjust the output artifacts accordingly. [ChangeLog] Added support for %option outfile and %output to the lex_yacc module. Change-Id: I5437c737ae8da54dc7eda81ac7384727f00f9d1f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Add FileInfo.suffix and FileInfo.completeSuffixJoerg Bornemann2018-05-021-0/+14
| | | | | | | | [ChangeLog] Added FileInfo.suffix and FileInfo.completeSuffix. Change-Id: Ic74a2fcff2f3f1271fa60ac33b96a4c5a4d0e93d Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Handle Depends.productTypes entirely in the ModuleLoaderChristian Kandeler2018-05-021-0/+2
| | | | | | | The old approach was not compatible with product multiplexing. Change-Id: Iac5947665c41c284fa9e177920fd4f225d353973 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* AutotestRunner: Set the working dir when invoking a test executableChristian Kandeler2018-05-021-0/+10
| | | | | | | | | | | | This helps with converting projects, as "make check" is also run from the executable's location and the executable may depend on that. The user can override the working directory. [ChangeLog] The AutotestRunner item now has a workingDirectory property. By default, the test executable's location is used. Change-Id: I7349a41960f7b637c3b1dd4c3bc10252d136526a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Merge 1.11 into masterChristian Kandeler2018-04-271-1/+1
|\ | | | | | | Change-Id: Ib21dd21c6bbcd99a44884e796c12422e66288c28
| * Documentation: Fix use of outdated command-line syntaxChristian Kandeler2018-04-231-1/+1
| | | | | | | | | | | | | | | | | | This was overlooked when we introduced the "config" key. Task-number: QBS-1332 Change-Id: I4b12c2a03995613f6c6956545c6ba2fd7c9feadd Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Merge 1.11 into masterChristian Kandeler2018-04-201-37/+37
|\| | | | | | | Change-Id: Iebe7584bd2978a8f8be093c6b366033076f83e74
| * Doc: Fix documentation for the Xml serviceJoerg Bornemann2018-04-181-37/+37
| | | | | | | | | | | | | | | | | | | | Document the Xml service instead of the deprecated XmlDom* imports which were not working with the require() syntax. This amends commit 9f6ee4c3. Change-Id: Ib7e85dea7e0d1bdc77170e95a2a79e9a1a294284 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Fix and rename the excludedAuxiliaryInputs propertyChristian Kandeler2018-04-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This property did not only exclude auxiliary inputs, but all kinds of inputs ("inputs", "auxiliaryInputs", "explicitlyDependsOn"), which happens to be what we want, as it does not appear to make any sense to exclude only tags from one of the relevant "input-like" properties. But the behavior was inconsistent: When building the (product-local) rule graph, the property was considered, but not when collecting artifacts from other products during rule application. This is now fixed. [ChangeLog] The excludedAuxiliaryInputs property of the Rule item has been renamed to excludedInputs. The old name is deprecated. Change-Id: Id7eae3461a6e85f53b3d47750d296c3e47a18a95 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Merge 1.11 into masterChristian Kandeler2018-03-151-25/+4
|\| | | | | | | Change-Id: I15cdc5c73a13c36cf073d01aff0406e539bb507b
| * De-duplicate documentation for the use*PrecompiledHeader propertiesChristian Kandeler2018-03-131-25/+4
| | | | | | | | | | | | Change-Id: I91a0fb6d2c203adf39c8c469d96c3b832854f9ca Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Add module Exporter.qbsChristian Kandeler2018-03-141-0/+130
| | | | | | | | | | | | | | | | | | | | | | | | This module generates qbs modules from products, providing an interface to them for use by external projects. [ChangeLog] Added new module "Exporter.qbs" for creating qbs modules from products. Task-number: QBS-1231 Change-Id: I9f0cf04b441aaf279cf19a84fd94d97a8cea9de8 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Provide rules with information about the content of Export itemsChristian Kandeler2018-03-141-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The product variable gets a new property "exports" that provides a "dependencies" array as well as property values the same way that the product variable itself does, but for exported dependencies and properties, respectively. In addition, meta data about these properties is provided via a "properties" array, and structural information can be retrieved via "childItems". This data is intended to be used by modules creating interface files from products. Task-number: QBS-268 Change-Id: I2bb106e1ca1b18abbd6fe60411bc81bda9ee35e7 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Merge 1.11 into masterChristian Kandeler2018-03-091-1/+11
|\| | | | | | | Change-Id: Ie416a83940654e21b8872a8c7dc9f56b677ebabd
| * Qt templates: Fix detection of QtQuick compilerChristian Kandeler2018-03-051-1/+11
| | | | | | | | | | | | | | | | | | In Qt 5.11, the features/qtquickcompiler.prf file is always present, even if the QtQuick compiler is not. Task-number: QBS-1299 Change-Id: Ibc7f925f1b1753d870ddad939fd510637c3b7642 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Fix handling of rules whose outputs all have "alwaysUpdated == false"Christian Kandeler2018-02-261-4/+3
|/ | | | | | | | | It is wrong to always run the transformer in that case. If any of these outputs are up to date, then it must not be re-run. Change-Id: Ia79fba235d8829aad1d41c2c4288cc57d89434cc Reviewed-by: Ola Røer Thorsen <ola@silentwings.no> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Only use fallback values for the -std= command line option when neededJake Petroules2018-02-211-0/+43
| | | | | | | | | | | | | | | Instead of always using the fallback value, we instead always use the standard value unless we know we're running an older toolchain which does not support it. This alleviates the potential for differing behavior in newer versions of compilers which may attempt to remain compatible with earlier drafts of corresponding standards. [ChangeLog] Always use standard values for -std= when possible Change-Id: I61ff3ecd863caa24cb8fb54500e62dc310a2af02 Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix race conditions in innosetup, wix and nsis modulesChristian Kandeler2018-02-163-18/+0
| | | | | | | As first attempted in 7f6ec1cc27. Change-Id: Ib76dbdfc0a60b27d38d93a22c9556d54f07a3dac Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Doc: Add information about disabling precompiled headersLeena Miettinen2018-02-151-0/+16
| | | | | | | | | ...for a group of source files by setting the cpp.useCPrecompiledHeader property (or its variants) to false. Change-Id: Ie35039825a881c07d11e5c74c03959ac0be3c200 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Doc: Add docs for the DomXml JavaScript extensionLeena Miettinen2018-02-131-0/+342
| | | | | | Task-number: QBS-1281 Change-Id: I56f2fb8e75dd0eb8e1da7a8478dcacc53cbbda5a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Qt.scxml: Add support for the --statemethods optionChristian Kandeler2018-02-121-0/+10
| | | | | | | | | | | | | Also add an undocumented property to add arbitrary options. This one acts as an emergency fallback in case we miss a new option in the future. Task-number: QBS-1295 Change-Id: I0ba81325d6975d8bb25cbd397c9daaaa12f685c2 Reviewed-by: Andy Shaw <andy.shaw@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Andreas Bacher <andreas.bacher@meon-medical.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Add documentation for FileInfo.{to,from}NativeSeparatorsChristian Kandeler2018-02-121-0/+14
| | | | | | | Task-number: QBS-1279 Change-Id: I9465777e9fa70394ed0ae6721f6fd368d2e49dfe Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Add docs for Utilities.cStringQuote and Utilities.versionCompareLeena Miettinen2018-02-091-3/+29
| | | | | | Task-number: QBS-1289 Change-Id: I303edb0c0dabde6c78791a943faaaa325e613171 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Doc: Fix keywordLeena Miettinen2018-02-071-1/+1
| | | | | | | | | It was causing the wrong F1 help to be opened for Profile items. Task-number: QBS-1298 Change-Id: I4df20ed4d2bf6c99e79fb68b820e2e47b605e220 Reviewed-by: Ola Røer Thorsen <ola@silentwings.no> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Officially provide "c++17" as possible value for cpp.cxxLanguageVersionChristian Kandeler2018-02-071-1/+1
| | | | | | | | The standard is out now. Task-number: QBS-1020 Change-Id: Ie8249e1c860d5ebc2f9dadf02551544ddaaf2868 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Doc: Extend the SubProject item documentationJoerg Bornemann2018-02-011-8/+45
| | | | | Change-Id: I6916342f46f4457164f7a10d11b592a3f37626ce Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Fix a broken link to the qbs moduleLeena Miettinen2018-02-011-1/+1
| | | | | | | | The commit to remove this file is in master, so this link needs to be fixed in 1.11. Change-Id: Ieb2dc1a6800f271783cd8f39e48dfbe7eb3bcc65 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Improve the documentation for cpp.separateDebugInformationJake Petroules2018-01-031-1/+21
| | | | | | | | | | | | | This adds information about what types of files this property causes Qbs to generate, in order to help user discovery of the property, for example by searching for "pdb" or "dSYM". This change also corrects the default value listed for cpp.separateDebugInformation, by mentioning that it also defaults to true on Apple platforms. Change-Id: Ida51a55a236e823b56cc05e2d8d528614d2a5dda Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Doc: Describe constructing the path to the installation target dirLeena Miettinen2018-01-031-2/+44
| | | | | | | | Add an example that specifies values for the properties. Task-number: QBS-1237 Change-Id: I645a1b0bca099411035fae98acdbf27e7a942d3d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Doc: Add links to CLI command optionsLeena Miettinen2018-01-034-4/+9
| | | | | | | | | Added targets to the file where the options are documented, to avoid having to use the weird URLs automatically generated by QDoc. Change-Id: I3bffa79b564ffb9582f814124881dcd0cc60aa7d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Doc: Add some more links to Item docsLeena Miettinen2017-12-228-20/+27
| | | | | | | Mostly replacing the \c command with the \l command. Change-Id: Ifbda6488cff7a249c554c5213054b627bfc687d5 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Doc: Delete obsolete information about StaticLibrary itemLeena Miettinen2017-12-221-10/+0
| | | | | | | | There are no additional dependencies or properties for Android targets. Change-Id: I4e790976b54c02c54ba5b6fde070b80340687306 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Doc: Add some links to commands and propertiesLeena Miettinen2017-12-222-8/+16
| | | | | | | Usually, replace the \c command with the \l command. Change-Id: I062e9a3f34874e832c972773b88d58225e1621b0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>