From e7e360f046e03455210320319d9e89838328cc3c Mon Sep 17 00:00:00 2001
From: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Date: Tue, 14 May 2013 10:44:57 +0200
Subject: [PATCH] always create qt_tool_syncqt.pri when shadow-building

the fallback is to look in the install dir (which is the build dir when
no -prefix is used), which doesn't work for a script in the source dir.

amends 6b38524b

Task-number: QTBUG-31131
Change-Id: If615ab4e3a2839b6b5be9bf6ef79d3f894b1748d
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
---
 qtbase.pro | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qtbase.pro b/qtbase.pro
index 60497a80d1f..02dc11eac2d 100644
--- a/qtbase.pro
+++ b/qtbase.pro
@@ -82,7 +82,7 @@ INSTALLS += syncqt
 
 # If we are doing a prefix build, create a "module" pri which enables
 # qtPrepareTool() to find the non-installed syncqt.
-prefix_build {
+prefix_build|!equals(PWD, $$OUT_PWD) {
 
     cmd = perl -w $$shell_path($$PWD/bin/syncqt.pl)
 
-- 
GitLab