summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/command.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix meaning of "Command.silent".Christian Kandeler2013-11-061-3/+3
| | | | | | | | | | | The new, saner meaning is: If this property is set to true, then qbs will not print the status message (containing the command description). Accordingly, the default is changed to false. Also, there is now a check that prints a warning if a non-silent command has an empty description. Change-Id: I5a8fd4e2f8901f6e2858946901e8081a6929d43f Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* fix calling of *Command c'tors from JSJoerg Bornemann2013-07-021-0/+6
| | | | | | | | Calling Command or JavaScriptCommand without the new keyword yields an error. Change-Id: Ic28dc9a4483e59841bdbde02f541074f9bc88308 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* fix default value of ProcessCommand::m_responseFileThresholdJoerg Bornemann2013-05-221-2/+3
| | | | | | | | | On Windows it should be around 32000 and everywhere else negative. A value of 0 means to always use a response file regardless how long the command line is. Change-Id: I7c90bb536ca9cb9f5b41fe5dbdb50b27d7057136 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Help compiler with branch prediction.Christian Kandeler2013-04-121-2/+2
| | | | | | | | | Mark error checks in potentially performance-sensitive contexts with Q_UNLIKELY. Actual benefits unknown, but it cannot hurt. Change-Id: If3d2375965e6342b5d7a0b46ad2c8a41fd3567d0 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* react smarter on changed properties and added productsJoerg Bornemann2013-04-081-0/+33
| | | | | | | | | | | | Instead of throwing away the whole build graph, we detect changed properties in products and invalidate only those. Also, adding products does not cause a full rebuild anymore. Task-number: QBS-6 Task-number: QBS-235 Change-Id: I3ab1ca84eaeaf28bb083da4e6926e7b1ebbd7694 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Make a process' environment configurable in a prepare script.Christian Kandeler2013-04-031-1/+21
| | | | | | | | This is needed for applications that are configured via environment variables rather than command-line arguments. Change-Id: I114f2bcd65d8551175b35ffbd4912bd37699dc89 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* replace Q_ASSERT with QBS_ASSERT / QBS_CHECKJoerg Bornemann2013-02-141-2/+3
| | | | | Change-Id: I9f4d43b9b7be7e4ce814963d1feee81605a9d2eb Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* update copyright yearJoerg Bornemann2013-01-091-1/+1
| | | | | Change-Id: Ic2962e57ede037b910d7e77b01b0163f0a22cb7d Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Introduce namespace Internal.Christian Kandeler2012-11-081-0/+2
| | | | | | | | | This makes it obvious at first glance which facilities are for public use and which are not, which should be useful especially for clients of the library. Change-Id: I7f74f13b5c8a4c63a1de57bf607084a3a3852653 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Remove some redundant namespace usages.Christian Kandeler2012-10-231-2/+2
| | | | | Change-Id: Ie00bea24eb95dbd16f987373138899825c228ce5 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* pass targetObject to setup functions of *Command classesJoerg Bornemann2012-10-121-6/+8
| | | | | | | | Make it possible to initialize the *Command classes in a different object than the global object. Change-Id: I604b53cba565e824dce961b79414a3f09d68c0ef Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Get rid of more irregular console output.Christian Kandeler2012-10-111-1/+1
| | | | | | | | | - Remove some fprintf(stderr) calls from library code. - Use the qbs logging facilities in all tools and introduce the convenience class ConsoleLogger to help with that. Change-Id: I3da567b618edafc8755db5e072af5d89bfa17307 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Get rid of some calls to qDebug() and qWarning().Christian Kandeler2012-10-101-7/+7
| | | | | | | | | Along the way: - Prevent instantiation of AbstractCommand. - Put streaming operators into the right namespace. Change-Id: I6b914f3497d52e0a9496875f1be2709fd72e56b4 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* license and copyright updatedJoerg Bornemann2012-10-081-28/+21
| | | | | | Change-Id: I0c0b3035514ee6b735e85c098029fa2f41edb6ff Reviewed-by: Christian Kandeler <christian.kandeler@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Rework #includes.Christian Kandeler2012-10-021-1/+1
| | | | | | | | | | | | | - Do not use the Qt module as a prefix. This serves no purpose and potentially introduces incompatibilities between different Qt versions. - While we're at it, also - sort #includes by file name - use the official file name instead of the internal one (e.g. QtGlobal instead of qglobal.h). - remove some excessive whitespace Change-Id: I9358b2571622ca661936382305d7f159b9770008 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* save the code's location in JavaScriptCommand objectsJoerg Bornemann2012-02-281-7/+14
| | | | | | Change-Id: Iee440fbe4ba4530cbb5f296b3bd50fcd78ca0cbd Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Long live qbs!Joerg Bornemann2012-02-151-0/+231
Change-Id: I412793e868919a9ac99611616f292e7047f1ebcf