Make qmake slightly more verbose with its syncqt output.
authoraxis <qt-info@nokia.com>
Mon, 30 May 2011 12:14:28 +0000 (14:14 +0200)
committerQt Continuous Integration System <qt-info@nokia.com>
Mon, 6 Jun 2011 08:42:13 +0000 (10:42 +0200)
It can be hidden with -silent, however.

Change-Id: I6dbd3c743779b8d2070e41f007df26b530987429
Reviewed-on: http://codereview.qt.nokia.com/235
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Liang Qi <liang.qi@nokia.com>
mkspecs/features/default_pre.prf

index 86ad9eb..c91d543 100644 (file)
@@ -21,12 +21,14 @@ exists($$_PRO_FILE_PWD_/sync.profile) {
         QTFWD += -qtdir $$QTDIR -module-fwd $$QTDIR/mkspecs/modules -developer-build
     }
 
-    message("Running syncqt for $$PRO_BASENAME in $$OUT_PWD")
     qtPrepareTool(QMAKE_SYNCQT, syncqt)
-    system("$$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_") {
+
+    MSG = $$quote($$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_)
+    !silent:message($$MSG)
+    system($$MSG) {
         # success! Nothing to do
     } else {
-        error("Failed to run: $$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_")
+        error("Failed to run: $$MSG")
     }
     unset(QTFWD)
     unset(PRO_BASENAME)