qt5base-lts/qmake
Leander Beernaert 5a779a4ad3 CMake: Make it possible to build tools when cross-compiling
This patch allows tools to be built for the target platform when the
QT_BUILD_TOOLS_WHEN_CROSSCOMPILING parameter is set at configuration
time.

To avoid naming conflicts, the target tools are suffixed with "_native".
The qt_get_tool_target_name() function can be used to get the tool name
for both scenarios (cross and non-cross compilation).

Extend pro2cmake to refer to the right target name for tools.
The relevant write_XXX functions have a new target_ref parameter that
will be "${target_name}" for tools and literally the target name for
everything else.

Fixes: QTBUG-81901
Change-Id: If4efbc1fae07a4a3a044dd09c9c06be6d517825e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2020-06-02 22:42:15 +02:00
..
doc Remove last remainings of Qt Quick 1 imports 2020-05-25 11:48:12 +02:00
generators qmake: Remove the DISCARDABLE flag for icon resources 2020-05-11 23:36:27 +00:00
library qmake: fix a few deprecated QChar(non-char-type) warnings 2020-05-12 07:43:48 +02:00
.prev_CMakeLists.txt CMake: Make it possible to build tools when cross-compiling 2020-06-02 22:42:15 +02:00
cachekeys.h qmake: fix a few deprecated QChar(non-char-type) warnings 2020-05-12 07:43:48 +02:00
CMakeLists.txt CMake: Make it possible to build tools when cross-compiling 2020-06-02 22:42:15 +02:00
main.cpp Port qmake over to user QRegularExpression 2020-05-05 18:41:27 +02:00
Makefile.unix Remove qxmlstream from qmake compile 2020-05-25 10:28:35 +02:00
Makefile.unix.macos macOS: Merge qcore_mac cpp and mm files 2020-03-12 06:07:35 +01:00
Makefile.unix.mingw Compile QRegularExpression into qmake 2020-05-05 18:41:20 +02:00
Makefile.unix.unix Move the readlink(2) wrapper to qcore_unix.cpp 2017-07-08 02:18:16 +00:00
Makefile.unix.win32 Compile QRegularExpression into qmake 2020-05-05 18:41:20 +02:00
Makefile.win32 Remove qxmlstream from qmake compile 2020-05-25 10:28:35 +02:00
meta.cpp qmake: Remove dead code 2019-04-05 07:48:34 +00:00
meta.h qmake: Remove dead code 2019-04-05 07:48:34 +00:00
option.cpp Port qmake over to user QRegularExpression 2020-05-05 18:41:27 +02:00
option.h Remove QMake's -createstub option 2019-08-03 14:48:10 +02:00
project.cpp qmake: use std names on a linked list 2019-05-13 16:39:22 +00:00
project.h qmake: use std names on a linked list 2019-05-13 16:39:22 +00:00
property.cpp Remove leftovers from QML1 2019-10-10 11:28:19 +02:00
property.h move generation of qconfig.cpp (and qt.conf) to qmake-based configure 2016-12-13 18:56:12 +00:00
qmake_pch.h qmake: move QT_BEGIN_NAMESPACE to correct place 2018-12-19 19:21:35 +00:00
qmake-aux.pro revert to building qmake with qconfig.cpp 2017-01-06 20:09:08 +00:00
qmake.pro Mark qmake as Qt tool in qmake/qmake.pro 2020-05-29 20:45:09 +02:00