aboutsummaryrefslogtreecommitdiffstats
path: root/qbs-resources/imports/QbsProduct.qbs
Commit message (Collapse)AuthorAgeFilesLines
* Increase minimum required Qt versionChristian Kandeler2019-04-261-1/+1
| | | | | | | | | We recently merged a patch that used Qt 5.10 functionality. Let's use this opportunity to increase the minimum required Qt version. We choose 5.11, since that is also Qt Creator's requirement. Change-Id: I729a7e840ab9cdafb8f9fba604e413cd4b822bed Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Bump required Qt versionChristian Kandeler2018-04-031-1/+1
| | | | | | | ... and remove the workarounds that are no longer needed. Change-Id: Ie0ae19279633784f8cea3bdbe4a9eeaa308689aa Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Build qbs with C++14Christian Kandeler2018-02-151-1/+1
| | | | | | | | | This will enable us to simplify some of our templates. Qt Creator requires C++14 as well, so we won't break it. Change-Id: I577347ef12c53ff2ec59e88344ff181b27a0d50c Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* qbs build: Set cpp.cxxLanguageVersion in QbsProductChristian Kandeler2018-02-141-0/+1
| | | | | | | ... rather than separately in the derived items. Change-Id: I3f036ad45269daaa44aabfcd017c524083c84399 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Rewrite rpath handling for binaries that are a part of Qbs itselfJake Petroules2017-12-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | Exporting a list of rpaths from a target is completely bogus as-is, because a target cannot know a dependee's install location relative to itself. This patch instead has each target category (executables in bin, libraries in lib, libexec binaries in libexec/qbs, and plugins in lib/qbs/plugins) set its relative installation directory at the product level, and then an appropriate rpath is created for the target by calculating a relative path from the target to the lib directory in the context of an installed build. This also has the advantage that rpaths are now calculated dynamically at build time rather than hardcoded, so if a user changes the directory depth of pluginsInstallDir, for example, everything will be adjusted automatically. Each target also therefore now has an rpath pointing exactly to its immediate dependencies, instead of relying on the parent process to inherit the rpath entries. Among simply being correct, this also has the advantage that any target can now be loaded correctly by another process which itself sets no rpath happening to point to the qbs lib directory. Change-Id: I8fdf24b74ef60426cea0930b7941479919226fd2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Introduce the qbsversion module for building QbsJake Petroules2017-06-021-0/+1
| | | | | | | | | | Use that instead of QbsFunctions.qbsVersion() and read it in qbs_version.pri; this has the advantage that simple text processing tools can retrieve the project version without having to parse JavaScript. It's also set from only one place now. Change-Id: Icfd2a6bf12b794b55c9ba31934a96b4483224eae Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* qbs build: Make use of version check capabilities in Depends itemChristian Kandeler2017-05-311-3/+1
| | | | | | | | This makes for much better feedback to the user in case of an outdated Qt version. Change-Id: I2223ea35f618ed06a6eb2f01916c1a85cec009cc Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Replace QbsFunctions.versionIsAtLeast with Utilities.versionCompareJake Petroules2017-05-311-2/+2
| | | | | | | | This more general function was introduced in Qbs 1.6.0, which happens to be the self-hosted build's minimum Qbs version requirement. Change-Id: I3b9c2cf7c1cf7c30a966df9011959d89cac05950 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Bump required Qt version to 5.6Christian Kandeler2017-02-271-1/+1
| | | | | | | | | | | It seems natural to use the LTS release as the minimum required version, and we get rid of a number of #ifdefs. [ChangeLog] Building qbs now requires Qt 5.6 Change-Id: I327ebb179a20e6372fa5ae765e0f3753fb9e9efa Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Enable QT_STRICT_ITERATORS in debug modeChristian Kandeler2017-01-161-0/+2
| | | | | | | This can help us find subtle problems in that area. Change-Id: Ie36faeeb11c2faca16809bce12a643edd8658008 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Don't install static library productsJake Petroules2016-09-081-0/+1
| | | | | Change-Id: I09e87843b5df2d7f1f1a7f8fc0558f40ec97fe9a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* qbs build: Move build config properties into a dedicated module.Christian Kandeler2016-06-071-0/+1
| | | | | | | | | | Qt Creator will do the same in order to be able to build plugins that are not part of the main source tree. This means the qbs build and install settings can no longer be controlled by properties in a higher- level project file, but need to come from a module. Change-Id: I20c0a4538395c8ee838b33f35be84ee59f601f90 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Bump required Qt version to 5.4.0Orgad Shaneh2016-06-061-1/+1
| | | | | | | | | | | Required for using new functions of QTimer. Get rid of workarounds and helper functions that support previous versions. Change-Id: I13bec075ce3014083120834a402bdc213df10be9 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Enable exceptions in qbs projectOrgad Shaneh2016-05-031-0/+1
| | | | | Change-Id: I754280c0b8b02c4693be6936b67f458f1a57ba2b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Disable "insecure" warnings on qbs build with MSVCOrgad Shaneh2016-04-191-1/+6
| | | | | | Task-number: QBS-957 Change-Id: I2b5c8391e9dac90dd513e506548f356abfe9059e Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Define QT_NO_PROCESS_COMBINED_ARGUMENT_START.Jake Petroules2015-07-221-1/+1
| | | | | | | | This will be present in Qt 5.6, and prevents use of dangerous overloads of QProcess::start. Change-Id: Ibd58091bcae1f326ab62ad14deef7a99138cdc6b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Prevent automatic casting from char* to QString.Christian Kandeler2015-04-231-0/+1
| | | | | | | | | | Reason 1: Internationalization. Reason 2: Performance issues due to inadvertant QString instantiations in hot code paths. Task-number: QBS-780 Change-Id: I37c740dd828e11c5b0000a0dd472a519d032d71c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* qbs build: Set minimum Qt version.Christian Kandeler2014-10-311-0/+3
| | | | | Change-Id: I4cd893b63d58b22001a1728a9adca78db005f8c7 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* qbs build: Introduce convenience item QbsProduct.Christian Kandeler2014-10-301-0/+5
As base product for QbsApp, QbsLibrary etc. Has little functionality at the moment, but will get more soon. Change-Id: I29ac78db2ff1ba109dd09a55e7593b2beeaba741 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>