Fix preprocessor defines list in Qt profile setup.

For example, now gives the correct QT_GUI_LIB instead of QT_QTGUI_LIB.

Change-Id: I8f77d5f32ed613b6a4b0dfac845e3f582c1db90d
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Project::targetExecutable: return path to the executable within an app bundle

Certain applications rely on the full path to the executable in an app
bundle and cannot use the path of the bundle itself (e.g. lldb).
The qbs run command could use just the bundle path, because QProcess
contains magic to run app bundles.

Task-number: QTCREATORBUG-12833
Change-Id: I270acc141d0482f569e8d983e2d1382c7eb8994a
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Fix toJsLiteral(QVariant).

For QVariants of QString type, toJsLiteral(QString) must be called
instead of the simplistic conversion that currently takes place. This
fixes handling of backslashes and double quotes.

Change-Id: I70c1ee4bc2c6b913c6f71fa644671bf33525966f
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Link Qt libraries as full file paths.

That is, give the full file path to the linker instead of using the
-L/-l combination that can pull in the wrong version of a library
if one is installed e.g. in /usr/lib.
For this purpose, the patch does two things:
    1) In each Qt module file, add the file path of the respective
       library to cpp.{static,dynamic}Libraries instead of the base
       name.
    2) When reading Qt's prl files, check in all occurrences of
       "-l<lib name>" whether <lib name> matches a Qt library and
       if so, replace <lib name> with the full file path to the library.

Change-Id: Ic02633ae7f820bd2365f8e510f7c16f73d93e584
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
libqtprofilesetup: Complain only once per missing prl file.

The message currently appears up to four times per file, which is
annoying.

Change-Id: I96b7192d81fd0fc9a70903d695b7c000cfef1807
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
libqtprofilesetup: Read prl files also for Qt 4.

If we don't do that, nothing will work, because the qbs modules'
libFilePath property won't be set. Independent of that, it's the right
thing to do.

Change-Id: Ifa946281fd0e7b045bbd30bd166e661cabce7c1d
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Apply file tags filter also to Transformer outputs.

This is currently done only for Rule artifacts.

Task-number: QBS-668
Change-Id: Iddeda8a9d567cc8122f3aca2c1c1e3ea878e687c
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Merge remote-tracking branch 'origin/1.3'

Change-Id: I1a98b360957e0c8caa6b97bc32e6bc51745f1a10