Made sure syncqt gets called correctly even if it is not in the PATH.
authoraxis <qt-info@nokia.com>
Fri, 28 Jan 2011 14:17:00 +0000 (15:17 +0100)
committeraxis <qt-info@nokia.com>
Wed, 27 Apr 2011 10:05:57 +0000 (12:05 +0200)
bin/syncqt.bat
mkspecs/features/default_pre.prf

index dd0da87..5167f3b 100755 (executable)
@@ -38,5 +38,7 @@
 :: $QT_END_LICENSE$
 ::
 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-@rem ***** This assumes PERL is in the PATH *****
-@perl.exe -S syncqt %*
+@echo off
+rem ***** This assumes PERL is in the PATH *****
+set scriptpath=%~dp0
+perl.exe %scriptpath%syncqt %*
index b8779c8..adcdbb7 100644 (file)
@@ -25,7 +25,8 @@ exists($$_PRO_FILE_PWD_/sync.profile) {
     else:QTFWD="-qtdir $$QTDIR"
 
     message("Running syncqt for $$PRO_BASENAME in $$OUT_PWD")
-    system("$$QTDIR/bin/syncqt $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_")
+    qtPrepareTool(QMAKE_SYNCQT, syncqt)
+    system("$$QMAKE_SYNCQT $$QTFWD -outdir $$OUT_PWD $$_PRO_FILE_PWD_")
     unset(QTFWD)
     unset(PRO_BASENAME)
 }