From d7fd6848612760124871f0f3b55917250d078dd5 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Thu, 18 Jun 2020 10:07:22 +0200 Subject: CMake: Support cross-compilation with qmake When cross-compiling, we now create a target_qt.conf file that's to be used with the host Qt's qmake. With "qmake -qtconf .../target_qt.conf" projects can be cross-built against the cross-built Qt. We also create wrapper scripts for the host qmake to save the user from passing the -qtconf argument. Fixes: QTBUG-82581 Change-Id: Ib5866e7e820369efea9eb3171e3e3e3ca5c0c3c1 Reviewed-by: Alexandru Croitor --- bin/qmake-wrapper-for-target.in | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bin/qmake-wrapper-for-target.in (limited to 'bin/qmake-wrapper-for-target.in') diff --git a/bin/qmake-wrapper-for-target.in b/bin/qmake-wrapper-for-target.in new file mode 100644 index 0000000000..0c81b7c62f --- /dev/null +++ b/bin/qmake-wrapper-for-target.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@/qmake $* -qtconf "$script_dir_path/target_qt.conf" -- cgit v1.2.3