Fix over-eager artifact rescuing.

If a child artifact has gone away, then we must not rescue the parent
artifact.

Change-Id: I2e8509f458193c0238e53c450faee2e1a0e27b14
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Fix rule comparison.

We used to just compare the source code of the prepare script, but that
was too much of an optimization. Simply use the ScriptFunction's
operator== (which was also missing a member comparison), everything
else is a maintenance nightmare.

Change-Id: I625263e8dea42cbf42624c00434032d7b7146dc9
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Fix profile setup for mingw-qt4.

When extracting the mkspec name, we must not capture the trailing
"/qmake.conf" in our regular expression.

Change-Id: I0bca572ca173e1300ced6d5753d4140a12e33a6e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Add Q_NORETURN to function that always throws.

To help compilers and analyzing tools.

Change-Id: Icd2e25e8fec7ea2962ed8366ea5b9cf43c07c247
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Fix compilation with Qt < 5.3.

Change-Id: Ie8a430539e3952eb97bc18fc17b1413677e6d900
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Fix compilation on Windows.

Q_NORETURN belongs *before* the rest of the function declaration...

Change-Id: Ib91cc7902f35acdb42d0039998b02b8f26f96eea
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Throw a proper error when encountering invalid outputArtifact values.

A user can easily trigger this condition, so we can't assert on it.

Change-Id: Id26ee13dbcea6207da316f454ecf357a284be2da
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
qtprofilesetup: Fix detection for DataVisualization module.

This one also uses a different naming scheme for some reason.

Change-Id: I47a419e85f8f8eba5559da2c896e2660b80284c2
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
Catch exceptions by const reference.

Change-Id: Ib155b1b6f4e5d618d6e3143f43a2e7f9e7e1d410
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Merge branch '1.3'

Change-Id: I46fcee5b64869dd768563757e2d84dfa5dfcfecc