summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2022-04-20 08:48:02 +0200
committerMichal Klocek <michal.klocek@qt.io>2022-04-30 18:08:52 +0000
commitba74eaba11b2df9d6c2b23f7595e7bb1a03e911e (patch)
treee5dba781d76a41e4c8340e6813383aaa1d0f4dab /configure.cmake
parent692e2295b5676652ff0d405fd9b916cbd428dad3 (diff)
downloadqtwebengine-ba74eaba11b2df9d6c2b23f7595e7bb1a03e911e.tar.gz
Support cross-compilation on macOS
So far we only supported a cross-compiling with universal builds, however qmake also supports 'regular' cross compilation (by setting '-device-option'). This is semi-supported with qt-cmake as we need to provide additional configure defines like: * CMAKE_OSX_ARCHITECTURES=arm64 * CMAKE_SYSTEM_NAME=Darwin * CMAKE_OSX_DEPLOYMENT_TARGET=10.14 It might seem to be a far fetched issue, however in case of webengine doing the cross compilation for only one architecture allows to save compile times when testing only arm64 builds. Note we do not need to create gn toolchains for that case, however unlike universal builds it requires host qt build for tools. Pick-to: 6.3 6.2 Change-Id: Ica8470fdd4cad4866c1470e0403ffd019eaf39a6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.cmake b/configure.cmake
index aa2e2d0cf..64d3d4270 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -441,12 +441,12 @@ assertTargets(
)
add_check_for_support(
MODULES QtWebEngine
- CONDITION LINUX OR (WIN32 AND NOT WIN_ARM_64) OR (MACOS AND NOT CMAKE_CROSSCOMPILING)
+ CONDITION LINUX OR (WIN32 AND NOT WIN_ARM_64) OR MACOS
MESSAGE "Build can be done only on Linux, Windows or macOS."
)
add_check_for_support(
MODULES QtPdf
- CONDITION LINUX OR (WIN32 AND NOT WIN_ARM_64) OR (MACOS AND NOT CMAKE_CROSSCOMPILING) OR IOS
+ CONDITION LINUX OR (WIN32 AND NOT WIN_ARM_64) OR MACOS OR IOS
MESSAGE "Build can be done only on Linux, Windows, macOS or iOS."
)
if(LINUX AND CMAKE_CROSSCOMPILING)