aboutsummaryrefslogtreecommitdiffstats
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix page navigation links for Target PlatformsRichard Weickelt2019-01-291-3/+3
| | | | | | | | The user manual defines a strict navigation flow. The "Target Platforms" document was added only recently, but it wasn't properly integrated. Change-Id: I69edb60fddba0f012d25dce5a91ed746d54abe87 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Introduce module providersChristian Kandeler2019-01-239-13/+281
| | | | | | | | | | | | | | | | | | | | | | If a dependency is not found, we now search for a matching module provider that can generate one for us. We also provide a generic fall-back provider which uses pkg-config to locate the dependency (but could be extended to incorporate other methods in the future). This is the most important part of this change for practical purposes, as it makes hundreds of popular libraries available for use in qbs projects without users having to write any boilerplate code. In a future patch, a module provider could also be used to implement the functionality of the qtprofilesetup library, relieving users of the need to create a profile for building Qt applications. [ChangeLog] The Depends item now falls back to pkg-config to locate dependencies whose names do not correspond to a qbs module. Fixes: QBS-1107 Change-Id: Ifd4f05c237cf58cd9fe707c3da648d3dbb33e82b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* bare-metal: Add IAR EWARM toolchain support on WindowsDenis Shienkov2019-01-192-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a basic support of the IAR Embedded Workbench toolchain for the ARM processors on Windows host. To use it with Qt Creator, it is enough to add there a desired Kit with a custom IAR C/C++ compiler, and then set the following in the Kit's Qbs profile settings: * Key: qbs.toolchainType * Value: iar To specify the target CPU/FPU you need to set the cpp.driverFlags property, like this: cpp.driverFlags: [ "--cpu", "Cortex-M4", "--fpu", "VFPv4_sp" ] Then these flags will be automatically passed to both compiler and assembler. To specify the linker flags you need to set the cpp.driverLinkerFlags property instead of cpp.linkerFlags property, like this: cpp.driverLinkerFlags: ["--vfe"] To add the linker script files you need to set the 'linkerscript' tag, e.g. in the following way: Group { name: "Linker scripts" fileTags: ["linkerscript"] files: ["stm32f407xx_flash.icf"] } Other properties can be used as usual, according to the EWARM compiler documentation. Tested with EWARM v8.20.2, v6.50.3 on Windows using: * STM NUCLEO-F767ZI * STM 32F4DISCOVERY target boards. Change-Id: I3c42eb94051352cb3b7eb5b0768a1dc8bdacabce Reviewed-by: Richard Weickelt <richard@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix outdated documentationChristian Kandeler2019-01-181-6/+6
| | | | | | | Configuration names must be prefixed with "config:" these days. Change-Id: I6e858caacc3e2ddad20fd5ba980848fafeb01928 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Do not ignore file dependencies in the Scanner itemChristian Kandeler2019-01-181-1/+5
| | | | | | | We used to look only at artifacts when scanning recursively. Change-Id: I39f968c05dd3e6af362bf3bb98380814b01de172 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Fix documentation for Scanner itemChristian Kandeler2019-01-081-4/+3
| | | | | | | | The scanned dependencies of a file have nothing to do with Depends items. Change-Id: I0ac600fa2b12f4d14b9d51f5e5e681d914f2d2d8 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* GCC: Make it possible to force the linker variantChristian Kandeler2019-01-071-0/+14
| | | | | | | | | | | | ...via cpp.linkerVariant. [ChangeLog] Added new cpp property linkerVariant to force use of gold, bfd or lld. Task-number: QBS-1421 Change-Id: I98f9d2581515ac8e9c984a2f8d70f4a7a3ab230b Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Add documentation of cpp.toolchainInstallPath propertyRichard Weickelt2019-01-071-0/+12
| | | | | | | | | | The property is undocumented, but plays a central role in most toolchain setups. Therefore it should be documented. Fixes: QBS-1422 Change-Id: I9d1044733e6b99862f137849502e5b1a35a4c192 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Add information about PathProbeIvan Komissarov2019-01-074-4/+179
| | | | | | | | | Also adds new section to the Reference Task-number: QBS-1187 Change-Id: I0798ec1791cdcb2177ee28bb8c180d1bd6375d30 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Add full stops to end of brief commands to fix QDoc warningsLeena Miettinen2019-01-045-5/+5
| | | | | Change-Id: Ic154b4ad03517b527d302be59820c532bcde549a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Add atEnd() function to the Process serviceOla Røer Thorsen2019-01-031-0/+7
| | | | | | | | | | | | This makes it possible to use readLine in a while loop until the complete stream is read, even when reading empty lines. [ChangeLog] Added atEnd() function to the Process service, to make it possible to use readLine() in a while loop until the complete stream is read. Change-Id: Ie5f047651977195d6a93c4575bd7a8796b83ab5d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Add FileInfo.canonicalPathJoerg Bornemann2018-12-201-0/+12
| | | | | | | | | [ChangeLog] Added the canonicalPath() function to the FileInfo extension. Task-number: QBS-742 Change-Id: I8490b1bbdb3ac4ce84b80e82ca9f37bd2816e150 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Merge 1.12 into masterChristian Kandeler2018-12-171-3/+3
|\ | | | | | | Change-Id: I44f8e2c5f3fbe8fc67deada65a4136257572239e
| * Version bumpChristian Kandeler2018-12-101-3/+3
| | | | | | | | | | Change-Id: I53f3af19efe5b2ae026285bb43d88314423a2400 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Doc: Add Qt Quick Test to list of Qt ModulesLeena Miettinen2018-12-121-1/+5
| | | | | | | | | | | | | | Fixes: QBS-1120 Change-Id: I788ee0e1d57db02a105966a9d04381c6092bf527 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Support big Qt resourcesJoerg Bornemann2018-11-301-0/+9
| | | | | | | | | | | | | | | | [ChangeLog] Introduced the property Qt.core.enableBigResources for the creation of "big" Qt resources. Change-Id: Ic87aa70132240e67243c1cbe137583a371558261 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Doc: Edit protobuf module docsLeena Miettinen2018-11-263-13/+17
| | | | | | | | | | | | | | | | | | | | - Add link to protobuf - Fix QDoc errors - Edit for grammar and style. Change-Id: I416d937dce5c51320573065d33ff8bc12b6ed50c Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Add protobuf.cpp and protobuf.objc modulesIvan Komissarov2018-11-222-0/+194
| | | | | | | | | | | | | | | | | | | | | | These modules implement google protobuf support for QBS for c++ and objective-c languages [ChangeLog] Added protobuf support for C++ and Objective-C. Fixes: QBS-563 Change-Id: I4bb7e0bdfc1e09ea26c0cd3d3739a741ff834e5d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Document the dynamiclibrary_import tagJoerg Bornemann2018-11-161-0/+8
| | | | | | | | | | | | Task-number: QBS-807 Change-Id: I91b92418de72b6a725bb7ee559a1d8d6176505d6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Properly support building Qt apps for AndroidChristian Kandeler2018-11-161-0/+86
| | | | | | | | | | | | | | | | ... via the androiddeployqt tool. Fixes: QBS-991 Change-Id: I4a3abe977fee6a9d1657a4fd6c1b43709429da9f Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Qt support: Allow users to pull in plugins by typeChristian Kandeler2018-11-092-11/+78
| | | | | | | | | | | | | | | | | | | | ... and properly set the default values. Fixes: QBS-1409 Change-Id: Ib8f3573fcb48d395d9212ac4b01e5caf910c575f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Add "show progress" support on WindowsAndreas Zieringer2018-10-301-2/+0
| | | | | | | | | | | | | | | | Should work with all console types. Fixes: QBS-1407 Change-Id: I5144469d70d79a263f9960092abda9a3d83462a1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Doc: add section on dynamic and statically-built Qt projectsMitch Curtis2018-10-261-0/+15
| | | | | | | | | | | | | | | | It's currently not documented how to have a library that can be both dynamically and statically linked to an application. Change-Id: Ic9130ccb7f8b476d6d91231e4eacef2caadcf1d1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Documentation: Fix file tag in QML how-toChristian Kandeler2018-10-251-1/+1
| | | | | | | | | | Change-Id: Ib9c62947e79b2e828587e5b7c75a0585caba1273 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Android: Enable building apps with native code and no multiplexingChristian Kandeler2018-10-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | Until now, we needed to either put the native part into its own product or use multiplexing with the "APK product" serving as the aggregate. Now it is also possible to use a single product without multiplexing, which is a more natural approach in the case where there is only one architecture. Change-Id: I976168c99f75ad8e4940ac61f957c64ad29f5f5c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Android: Make sure the manifest file has the right package nameChristian Kandeler2018-10-121-1/+2
| | | | | | | | | | | | | | | | This prevents Android.sdk.packageName to get out of sync with the respective entry in the manifest file. Change-Id: I9cc8af5f74da2515d094b3988104f5037a12574a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* | Merge 1.12 into masterChristian Kandeler2018-10-122-10/+11
|\ \ | |/ | | | | Change-Id: I96c735aeda89e02f1fa9107ecfc10ebf4b554dbc
| * Android support: Adapt to changes in newer revisionsChristian Kandeler2018-10-111-6/+6
| | | | | | | | | | | | | | | | Revision 17 dropped some architectures, revision 18 removed GCC. We also missed some earlier changes to clang-related paths. Change-Id: Ie2fa1891f7f4de28e18ea6caadce9eac964bb523 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
| * Documentation: Mention qmake's OTHER_FILES in the porting guideChristian Kandeler2018-10-091-4/+5
| | | | | | | | | | | | | | Fixes: QBS-1388 Change-Id: I3d4dadcf9e16d839289960252a068e29058255cf Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Document how to add QML files to a projectMitch Curtis2018-10-041-0/+24
| | | | | | | | | | | | Task-number: QBS-1390 Change-Id: Id339d9d2041ca035607ee970e421c21f40424987 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Android: Properly support the aidl toolChristian Kandeler2018-08-271-0/+5
| | | | | | | | | | | | | | | | We now pull in the AIDL framework file and let the user set search paths for imports. Change-Id: I93460a77b064fa87849b93c0b0e4bd3bbfd7459f Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Enable the Application item to create Android appsChristian Kandeler2018-08-106-152/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The formerly required AndroidApk item is no longer needed: We just tag the APK file as an application and let the Application item pull in the Android.sdk module for Android targets. It is also possible to have native code directly in the Application product; in that case, the multiplexed variants become dynamic libraries and the APK file is built for the aggregate. [ChangeLog] The AndroidApk item was deprecated, a normal Application item can be used instead. Change-Id: I04f5f3892f354ca9eb4f2da8055abcd8d072aba0 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Doc: Fix snippet markerLeena Miettinen2018-08-101-1/+1
| | | | | | | | | | | | | | | | This probably worked, because 'jobs' is included right above 'job-limits'. Change-Id: I5d1ca711469f4f39bbd7fa86c78f888792b1a7cf Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Add support for job poolsChristian Kandeler2018-08-088-2/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commands can now be assigned to an arbitrary job pool and a limit for the number of concurrently running jobs in such pools can be provided in a number of ways: - via the build command line: qbs --job-limits linker:1 - via the settings: qbs config preferences.jobLimit.linker 1 - in a project file: JobLimit { jobPool: "linker"; jobCount: 1 } We provide two job pools ourselves with the cpp module: "compiler" and "linker". [ChangeLog] Added the concept of job pools for limiting concurrent execution of commands by type Task-number: QBS-743 Change-Id: Ib3f361dbc73093e342bf0eba0daf2079a2b3a8ce Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Merge 1.12 into masterChristian Kandeler2018-08-031-2/+2
|\ \ | |/ | | | | Change-Id: I0ce6c28f9117f945c9fec0654bd06daf3d13ace0
| * Version bumpChristian Kandeler2018-07-191-2/+2
| | | | | | | | | | Change-Id: I3f2db0a0388c34dde148506b9081dbaaea03de25 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Documentation: Add How-to about "generated sources"Christian Kandeler2018-07-301-0/+37
| | | | | | | | | | | | | | | | We've seen people try to add generated C++ source files to a files property, so let's make clear how it actually works. Change-Id: I8a7dd8b1af71662efbeb72a3780775f5a6ca38d6 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Fix syntax errors in texttemplate documentationChristian Kandeler2018-07-201-2/+2
| | | | | | | | | | Change-Id: I3513101b03686e447bc048a956c70a995aa5252a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Doc: Remove templatesOrgad Shaneh2018-07-1742-3257/+0
| | | | | | | | | | | | | | They're outdated and unused. Change-Id: I4e58eade85fff2ac84655e485d1124d43a7aeb29 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Merge 1.12 into masterChristian Kandeler2018-06-2212-11/+74
|\ \ | |/ | | | | Change-Id: I3b5f14cf38452aaa740ac66cffa1e740f7349823
| * Document the list-products commandChristian Kandeler2018-06-151-0/+63
| | | | | | | | | | Change-Id: I948e6251a97b0af94081255a79c11b18d6c8e9d4 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
| * Fix CLI documentationChristian Kandeler2018-06-1511-11/+11
| | | | | | | | | | | | | | Adapt to the change in how to specify the build configuration name. Change-Id: Ia339d3c991e7b9f82b23ed7f40c5eea19f003dd1 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Get rid of the need for "import qbs"Joerg Bornemann2018-06-228-31/+0
| | | | | | | | | | | | | | | | | | | | | | | | It is difficult to place why the "import qbs" statement is needed. What it does is providing the default imports like CppApplication. There's no advantage in having a project file without this base import, so we always import "qbs" implicitly now. [ChangeLog] Removed the need to add "import qbs" to project files. Change-Id: I5954fbbade361188d1d54815cc3bf806fb461e9d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | 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-083-3/+215
|\ \ | |/ | | | | 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>
| * Update man pageChristian Kandeler2018-06-051-3/+3
| | | | | | | | | | Change-Id: I46d015812d0cb49716123dc5a6748acf48c8bb3f 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>