qt5base-lts/tests/auto/tools
Alexandru Croitor 815f31799c CMake: Fix tst_qmake to work for configs with cross-compiled tools
When cross-building Qt with CMake to target qemu configs in the CI,
we specify the -DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON option to also
cross-build tools (like qmake).

In this case, $prefix/bin/qmake points to the cross-compiled qmake,
and the shell script that wraps the host qmake is called
$prefix/bin/host-qmake instead.

In such a scenario, tst_qmake ends up running the cross-compiled
qmake, which thinks that it's being run on device (via user-space
qemu emulation) and doesn't specify the sysroot when computing include
paths, link paths, etc. This causes the test building to fail in
various ways.

To fix the test, check for the existence of the host-qmake wrapper,
and if it exsists use it instead.

Task-number: QTBUG-86053
Change-Id: Iaa4afdf11b17f23abef873dd15b1ed950126ab8c
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2020-10-24 13:02:54 +02:00
..
moc Fix compile time type normalization code 2020-10-14 21:37:39 +02:00
qdbuscpp2xml Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qdbusxml2cpp CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmake CMake: Fix tst_qmake to work for configs with cross-compiled tools 2020-10-24 13:02:54 +02:00
qmakelib qmake: Fix qHash-related integer conversion warnings 2020-10-17 11:56:59 +02:00
rcc CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
uic CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
.prev_CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
CMakeLists.txt cmake support for tst_moc 2020-08-10 12:59:46 +02:00
tools.pro add test for the qmake library 2015-02-25 13:54:33 +00:00