summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-11-05 13:31:35 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-11-08 13:41:03 +0100
commit71e490f0baee0d27a45a17886c48f5defbbaea42 (patch)
tree3705e0ce5ff3c2488b9e2f0a6d89c77b6865892a /bin
parentc0bc4c7638d8b7d46f8cb3175ddde2a59ca63983 (diff)
Provide a qtpaths wrapper script when cross-building Qt
The qtpaths tool is supposed to replace "qmake -query", and it must be available for cross-builds as a wrapper script like qmake. Re-use the existing facility for creating the qmake wrapper script for creating the qtpaths wrapper script. Pick-to: 6.2 Fixes: QTBUG-97821 Change-Id: I460bae61a531994422e1c0fba09c79e4aa65713f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'bin')
-rw-r--r--bin/qmake-and-qtpaths-wrapper.bat.in2
-rwxr-xr-x[-rw-r--r--]bin/qmake-and-qtpaths-wrapper.in (renamed from bin/qmake-wrapper-for-target.in)2
-rw-r--r--bin/qmake-wrapper-for-target.bat.in2
3 files changed, 3 insertions, 3 deletions
diff --git a/bin/qmake-and-qtpaths-wrapper.bat.in b/bin/qmake-and-qtpaths-wrapper.bat.in
new file mode 100644
index 0000000000..8225170fc9
--- /dev/null
+++ b/bin/qmake-and-qtpaths-wrapper.bat.in
@@ -0,0 +1,2 @@
+@echo off
+@host_qt_bindir@\@tool_name@.exe -qtconf "%~dp0\target_qt.conf" %*
diff --git a/bin/qmake-wrapper-for-target.in b/bin/qmake-and-qtpaths-wrapper.in
index 265ce760de..f26355af8d 100644..100755
--- a/bin/qmake-wrapper-for-target.in
+++ b/bin/qmake-and-qtpaths-wrapper.in
@@ -4,4 +4,4 @@
script_dir_path=`dirname $0`
script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
-@host_qt_bindir@/qmake -qtconf "$script_dir_path/target_qt.conf" $*
+@host_qt_bindir@/@tool_name@ -qtconf "$script_dir_path/target_qt.conf" $*
diff --git a/bin/qmake-wrapper-for-target.bat.in b/bin/qmake-wrapper-for-target.bat.in
deleted file mode 100644
index 8df27eaa44..0000000000
--- a/bin/qmake-wrapper-for-target.bat.in
+++ /dev/null
@@ -1,2 +0,0 @@
-@echo off
-@host_qt_bindir@\qmake.exe -qtconf "%~dp0\target_qt.conf" %*