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>
This commit is contained in:
parent
5428c06958
commit
64847af6e6
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user