summaryrefslogtreecommitdiffstats
path: root/bin/qmake-and-qtpaths-wrapper.in
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/qmake-and-qtpaths-wrapper.in
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/qmake-and-qtpaths-wrapper.in')
-rwxr-xr-xbin/qmake-and-qtpaths-wrapper.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/qmake-and-qtpaths-wrapper.in b/bin/qmake-and-qtpaths-wrapper.in
new file mode 100755
index 0000000000..f26355af8d
--- /dev/null
+++ b/bin/qmake-and-qtpaths-wrapper.in
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
+script_dir_path=`dirname $0`
+script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
+
+@host_qt_bindir@/@tool_name@ -qtconf "$script_dir_path/target_qt.conf" $*