diff options
author | Janne Juntunen <janne.juntunen@qt.io> | 2022-03-21 15:29:27 +0200 |
---|---|---|
committer | Janne Juntunen <janne.juntunen@qt.io> | 2022-03-21 21:36:23 +0200 |
commit | 64847af6e6cf953626f673eeaced4bcb0b919c88 (patch) | |
tree | 4644508a9ca9301d6737577cd63ede3521a4b32f /cmake/QtPlatformSupport.cmake | |
parent | 5428c06958ee9dc867c96c7d47e567b5f1831845 (diff) | |
download | qtbase-64847af6e6cf953626f673eeaced4bcb0b919c88.tar.gz |
QtPlatformSupport: add support for detecting webOS
Some autotest CMakeLists.txts need to know whether the target is webOS.
This change enables that.
Task-number: QTBUG-101933
Pick-to: 6.3
Change-Id: I7b4ebe89622a4ad8bc313e807d9fa50152c96d14
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtPlatformSupport.cmake')
-rw-r--r-- | cmake/QtPlatformSupport.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtPlatformSupport.cmake b/cmake/QtPlatformSupport.cmake index a10e7226eb..22c6b9e056 100644 --- a/cmake/QtPlatformSupport.cmake +++ b/cmake/QtPlatformSupport.cmake @@ -20,6 +20,10 @@ qt_set01(WASM CMAKE_SYSTEM_NAME STREQUAL "Emscripten" OR EMSCRIPTEN) qt_set01(SOLARIS CMAKE_SYSTEM_NAME STREQUAL "SunOS") qt_set01(HURD CMAKE_SYSTEM_NAME STREQUAL "GNU") +# This is the only reliable way we can determine the webOS platform as the yocto recipe adds this +# compile definition into its generated toolchain.cmake file +qt_set01(WEBOS CMAKE_CXX_FLAGS MATCHES "-D__WEBOS__") + qt_set01(BSD APPLE OR OPENBSD OR FREEBSD OR NETBSD) qt_set01(IOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "iOS") |