summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-03-16 13:36:47 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-03-16 17:57:56 +0100
commit77885f8402ad65e00e01c5e15777edcedf9741b2 (patch)
tree456874ac9ce27cfb1d4c6100056893620b308529
parentdb745fdd2dbd57af54f7da637eef6c892824a6fb (diff)
cmake: Remove APPLE prefix from platform names
None of the other platforms have it. Change-Id: Ib448c2c03ba03f711b507ef391977c0e6aa7c192 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--CMakeLists.txt2
-rw-r--r--cmake/FindGLESv2.cmake4
-rw-r--r--cmake/QtBaseGlobalTargets.cmake8
-rw-r--r--cmake/QtCompilerOptimization.cmake2
-rw-r--r--cmake/QtConfig.cmake.in2
-rw-r--r--cmake/QtFeature.cmake2
-rw-r--r--cmake/QtInternalTargets.cmake6
-rw-r--r--cmake/QtPlatformSupport.cmake10
-rw-r--r--cmake/QtSetup.cmake4
-rw-r--r--configure.cmake12
-rw-r--r--examples/widgets/CMakeLists.txt2
-rw-r--r--examples/widgets/mac/CMakeLists.txt2
-rw-r--r--qmake/.prev_CMakeLists.txt2
-rw-r--r--qmake/CMakeLists.txt2
-rw-r--r--src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt4
-rw-r--r--src/3rdparty/harfbuzz-ng/CMakeLists.txt6
-rw-r--r--src/3rdparty/pcre2/CMakeLists.txt2
-rw-r--r--src/corelib/.prev_CMakeLists.txt20
-rw-r--r--src/corelib/CMakeLists.txt20
-rw-r--r--src/corelib/configure.cmake2
-rw-r--r--src/gui/.prev_CMakeLists.txt8
-rw-r--r--src/gui/CMakeLists.txt16
-rw-r--r--src/gui/configure.cmake6
-rw-r--r--src/network/.prev_CMakeLists.txt16
-rw-r--r--src/network/CMakeLists.txt16
-rw-r--r--src/platformsupport/CMakeLists.txt2
-rw-r--r--src/platformsupport/clipboard/CMakeLists.txt2
-rw-r--r--src/platformsupport/fontdatabases/.prev_CMakeLists.txt4
-rw-r--r--src/platformsupport/fontdatabases/CMakeLists.txt4
-rw-r--r--src/platformsupport/themes/CMakeLists.txt6
-rw-r--r--src/plugins/platforminputcontexts/CMakeLists.txt2
-rw-r--r--src/plugins/platforms/.prev_CMakeLists.txt4
-rw-r--r--src/plugins/platforms/CMakeLists.txt4
-rw-r--r--src/plugins/platforms/ios/.prev_CMakeLists.txt2
-rw-r--r--src/plugins/platforms/ios/CMakeLists.txt2
-rw-r--r--src/plugins/platforms/ios/optional/CMakeLists.txt2
-rw-r--r--src/plugins/printsupport/.prev_CMakeLists.txt2
-rw-r--r--src/plugins/printsupport/CMakeLists.txt2
-rw-r--r--src/printsupport/CMakeLists.txt2
-rw-r--r--src/printsupport/configure.cmake2
-rw-r--r--src/testlib/.prev_CMakeLists.txt2
-rw-r--r--src/testlib/CMakeLists.txt6
-rw-r--r--src/tools/bootstrap/.prev_CMakeLists.txt6
-rw-r--r--src/tools/bootstrap/CMakeLists.txt6
-rw-r--r--src/widgets/.prev_CMakeLists.txt4
-rw-r--r--src/widgets/CMakeLists.txt4
-rw-r--r--src/widgets/configure.cmake2
-rw-r--r--tests/auto/CMakeLists.txt2
-rw-r--r--tests/auto/corelib/.prev_CMakeLists.txt2
-rw-r--r--tests/auto/corelib/CMakeLists.txt2
-rw-r--r--tests/auto/corelib/io/qdir/CMakeLists.txt2
-rw-r--r--tests/auto/corelib/kernel/.prev_CMakeLists.txt6
-rw-r--r--tests/auto/corelib/kernel/CMakeLists.txt6
-rw-r--r--tests/auto/corelib/plugin/qpluginloader/CMakeLists.txt2
-rw-r--r--tests/auto/gui/.prev_CMakeLists.txt6
-rw-r--r--tests/auto/gui/CMakeLists.txt6
-rw-r--r--tests/auto/gui/kernel/CMakeLists.txt2
-rw-r--r--tests/auto/gui/kernel/qclipboard/test/.prev_CMakeLists.txt2
-rw-r--r--tests/auto/gui/kernel/qclipboard/test/CMakeLists.txt2
-rw-r--r--tests/auto/network/kernel/CMakeLists.txt2
-rw-r--r--tests/auto/other/CMakeLists.txt4
-rw-r--r--tests/auto/other/macgui/.prev_CMakeLists.txt2
-rw-r--r--tests/auto/other/macgui/CMakeLists.txt2
-rw-r--r--tests/auto/widgets/dialogs/qfilesystemmodel/CMakeLists.txt2
-rw-r--r--tests/auto/widgets/styles/CMakeLists.txt4
-rw-r--r--tests/auto/widgets/widgets/qlineedit/CMakeLists.txt2
-rw-r--r--tests/auto/widgets/widgets/qmenu/CMakeLists.txt4
-rw-r--r--tests/auto/widgets/widgets/qmenubar/CMakeLists.txt2
-rw-r--r--tests/auto/widgets/widgets/qplaintextedit/CMakeLists.txt2
-rw-r--r--tests/auto/widgets/widgets/qtextedit/CMakeLists.txt2
-rw-r--r--tests/manual/CMakeLists.txt2
-rw-r--r--util/cmake/condition_simplifier.py2
-rwxr-xr-xutil/cmake/configurejson2cmake.py4
-rw-r--r--util/cmake/helper.py16
-rwxr-xr-xutil/cmake/pro2cmake.py2
-rwxr-xr-xutil/cmake/tests/test_logic_mapping.py24
-rwxr-xr-xutil/cmake/tests/test_scope_handling.py10
77 files changed, 188 insertions, 188 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c75d75bcf..2bc704bc73 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,7 +19,7 @@ if(NOT QT_BUILD_STANDALONE_TESTS)
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/3rdparty/kwin"
)
- if(APPLE_MACOS)
+ if(MACOS)
# Add module directory to pick up custom Info.plist template
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos")
endif()
diff --git a/cmake/FindGLESv2.cmake b/cmake/FindGLESv2.cmake
index 49e757ef55..3ba7b85d68 100644
--- a/cmake/FindGLESv2.cmake
+++ b/cmake/FindGLESv2.cmake
@@ -54,9 +54,9 @@ find_package_handle_standard_args(GLESv2 DEFAULT_MSG ${package_args})
mark_as_advanced(${package_args})
if(GLESv2_FOUND AND NOT TARGET GLESv2::GLESv2)
- if(EMSCRIPTEN OR APPLE_UIKIT)
+ if(EMSCRIPTEN OR UIKIT)
add_library(GLESv2::GLESv2 INTERFACE IMPORTED)
- if(APPLE_UIKIT)
+ if(UIKIT)
# For simulator_and_device builds we can't specify the full library path, because
# it's specific to either the device or the simulator. Resort to passing a link
# flag instead.
diff --git a/cmake/QtBaseGlobalTargets.cmake b/cmake/QtBaseGlobalTargets.cmake
index bb937dac05..5b2dd5bfda 100644
--- a/cmake/QtBaseGlobalTargets.cmake
+++ b/cmake/QtBaseGlobalTargets.cmake
@@ -95,7 +95,7 @@ list(APPEND init_platform "set(CMAKE_C_COMPILER \"${CMAKE_C_COMPILER}\" CACHE ST
if(APPLE)
# For simulator_and_device build, we should not explicitly set the sysroot.
list(LENGTH CMAKE_OSX_ARCHITECTURES _qt_osx_architectures_count)
- if(CMAKE_OSX_SYSROOT AND NOT _qt_osx_architectures_count GREATER 1 AND APPLE_UIKIT)
+ if(CMAKE_OSX_SYSROOT AND NOT _qt_osx_architectures_count GREATER 1 AND UIKIT)
list(APPEND init_platform "set(CMAKE_OSX_SYSROOT \"${CMAKE_OSX_SYSROOT}\" CACHE PATH \"\")")
endif()
unset(_qt_osx_architectures_count)
@@ -105,7 +105,7 @@ if(APPLE)
"set(CMAKE_OSX_DEPLOYMENT_TARGET \"${CMAKE_OSX_DEPLOYMENT_TARGET}\" CACHE STRING \"\")")
endif()
- if(APPLE_UIKIT)
+ if(UIKIT)
list(APPEND init_platform
"set(CMAKE_SYSTEM_NAME \"${CMAKE_SYSTEM_NAME}\" CACHE STRING \"\")")
set(_qt_osx_architectures_escaped "${CMAKE_OSX_ARCHITECTURES}")
@@ -177,7 +177,7 @@ include("${CMAKE_CURRENT_SOURCE_DIR}/configure.cmake")
# Do what mkspecs/features/uikit/default_pre.prf does, aka enable sse2 for
# simulator_and_device_builds.
-if(APPLE_UIKIT AND NOT QT_UIKIT_SDK)
+if(UIKIT AND NOT QT_UIKIT_SDK)
set(__QtFeature_custom_enabled_cache_variables
TEST_subarch_sse2
FEATURE_sse2
@@ -267,7 +267,7 @@ qt_copy_or_install(DIRECTORY cmake/
PATTERN "3rdparty" EXCLUDE
)
-if(APPLE_MACOS)
+if(MACOS)
qt_copy_or_install(FILES
cmake/macos/MacOSXBundleInfo.plist.in
DESTINATION "${__GlobalConfig_install_dir}/macos"
diff --git a/cmake/QtCompilerOptimization.cmake b/cmake/QtCompilerOptimization.cmake
index 1f50044a6f..42206368d9 100644
--- a/cmake/QtCompilerOptimization.cmake
+++ b/cmake/QtCompilerOptimization.cmake
@@ -62,7 +62,7 @@ if(GCC OR CLANG)
set(QT_CFLAGS_AVX512VBMI "-mavx512vbmi")
set(QT_CFLAGS_AESNI "-maes")
set(QT_CFLAGS_SHANI "-msha")
- if(NOT APPLE_UIKIT AND NOT QT_64BIT)
+ if(NOT UIKIT AND NOT QT_64BIT)
set(QT_CFLAGS_NEON "-mfpu=neon")
endif()
set(QT_CFLAGS_MIPS_DSP "-mdsp")
diff --git a/cmake/QtConfig.cmake.in b/cmake/QtConfig.cmake.in
index 1d45952502..b63dca8732 100644
--- a/cmake/QtConfig.cmake.in
+++ b/cmake/QtConfig.cmake.in
@@ -34,7 +34,7 @@ list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}")
list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}/3rdparty/extra-cmake-modules/find-modules")
list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}/3rdparty/kwin")
-if(APPLE_MACOS)
+if(MACOS)
# Add module directory to pick up custom Info.plist template
list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}/macos")
endif()
diff --git a/cmake/QtFeature.cmake b/cmake/QtFeature.cmake
index 34ae83b55d..c48e13833e 100644
--- a/cmake/QtFeature.cmake
+++ b/cmake/QtFeature.cmake
@@ -722,7 +722,7 @@ function(qt_get_platform_try_compile_vars out_var)
endforeach()
# Pass darwin specific options.
- if(APPLE_UIKIT)
+ if(UIKIT)
if(CMAKE_OSX_ARCHITECTURES)
list(GET CMAKE_OSX_ARCHITECTURES 0 osx_first_arch)
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake
index 5ef2885720..d1c383d697 100644
--- a/cmake/QtInternalTargets.cmake
+++ b/cmake/QtInternalTargets.cmake
@@ -99,13 +99,13 @@ endif()
target_compile_definitions(PlatformCommonInternal INTERFACE $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>)
-if(APPLE_MACOS)
+if(MACOS)
target_compile_definitions(PlatformCommonInternal INTERFACE GL_SILENCE_DEPRECATION)
-elseif(APPLE_UIKIT)
+elseif(UIKIT)
target_compile_definitions(PlatformCommonInternal INTERFACE GLES_SILENCE_DEPRECATION)
endif()
-if(APPLE_UIKIT)
+if(UIKIT)
# Do what mkspecs/features/uikit/default_pre.prf does, aka enable sse2 for
# simulator_and_device_builds.
if(FEATURE_simulator_and_device)
diff --git a/cmake/QtPlatformSupport.cmake b/cmake/QtPlatformSupport.cmake
index 868433a954..7d057b2ca4 100644
--- a/cmake/QtPlatformSupport.cmake
+++ b/cmake/QtPlatformSupport.cmake
@@ -22,11 +22,11 @@ qt_set01(BSD APPLE OR OPENBSD OR FREEBSD OR NETBSD)
qt_set01(WINRT WIN32 AND CMAKE_VS_PLATFORM_TOOSLET STREQUAL "winrt") # FIXME: How to identify this?
-qt_set01(APPLE_IOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "iOS")
-qt_set01(APPLE_TVOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "tvOS")
-qt_set01(APPLE_WATCHOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "watchOS")
-qt_set01(APPLE_UIKIT APPLE AND (APPLE_IOS OR APPLE_TVOS OR APPLE_WATCHOS))
-qt_set01(APPLE_MACOS APPLE AND NOT APPLE_UIKIT)
+qt_set01(IOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "iOS")
+qt_set01(TVOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "tvOS")
+qt_set01(WATCHOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "watchOS")
+qt_set01(UIKIT APPLE AND (IOS OR TVOS OR WATCHOS))
+qt_set01(MACOS APPLE AND NOT UIKIT)
qt_set01(GCC CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
qt_set01(CLANG CMAKE_CXX_COMPILER_ID MATCHES "Clang")
diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake
index 6e057e4e66..3b43f44bdd 100644
--- a/cmake/QtSetup.cmake
+++ b/cmake/QtSetup.cmake
@@ -93,7 +93,7 @@ if(FEATURE_developer_build)
# Tests are not built by default with qmake for iOS and friends, and thus the overall build
# tends to fail. Disable them by default when targeting uikit.
- if(APPLE_UIKIT OR ANDROID)
+ if(UIKIT OR ANDROID)
set(QT_BUILD_TESTING OFF)
endif()
@@ -129,7 +129,7 @@ enable_testing()
set(QT_BUILD_EXAMPLES ON)
# Examples are not built by default with qmake for iOS and friends, and thus the overall build
# tends to fail. Disable them by default when targeting uikit.
-if(APPLE_UIKIT OR ANDROID)
+if(UIKIT OR ANDROID)
set(QT_BUILD_EXAMPLES OFF)
endif()
diff --git a/configure.cmake b/configure.cmake
index 6458264a61..32f200c609 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -318,7 +318,7 @@ qt_feature("android-style-assets" PRIVATE
)
qt_feature("shared" PUBLIC
LABEL "Building shared libraries"
- AUTODETECT NOT APPLE_UIKIT
+ AUTODETECT NOT UIKIT
CONDITION BUILD_SHARED_LIBS
)
qt_feature_config("shared" QMAKE_PUBLIC_QT_CONFIG)
@@ -380,11 +380,11 @@ qt_feature_config("separate_debug_info" QMAKE_PUBLIC_QT_CONFIG)
qt_feature("appstore-compliant" PUBLIC
LABEL "App store compliance"
PURPOSE "Disables code that is not allowed in platform app stores"
- AUTODETECT APPLE_UIKIT OR ANDROID OR WINRT
+ AUTODETECT UIKIT OR ANDROID OR WINRT
)
qt_feature("simulator_and_device" PUBLIC
LABEL "Build for both simulator and device"
- CONDITION APPLE_UIKIT AND NOT QT_UIKIT_SDK
+ CONDITION UIKIT AND NOT QT_UIKIT_SDK
)
qt_feature_config("simulator_and_device" QMAKE_PUBLIC_QT_CONFIG)
qt_feature("force_asserts" PUBLIC
@@ -685,7 +685,7 @@ qt_feature("concurrent" PUBLIC
qt_feature_definition("concurrent" "QT_NO_CONCURRENT" NEGATE VALUE "1")
qt_feature("dbus" PUBLIC PRIVATE
LABEL "Qt D-Bus"
- AUTODETECT NOT APPLE_UIKIT AND NOT ANDROID AND NOT WINRT
+ AUTODETECT NOT UIKIT AND NOT ANDROID AND NOT WINRT
CONDITION QT_FEATURE_thread
)
qt_feature_definition("dbus" "QT_NO_DBUS" NEGATE VALUE "1")
@@ -712,7 +712,7 @@ qt_feature("testlib" PRIVATE
)
qt_feature("widgets" PRIVATE
LABEL "Qt Widgets"
- AUTODETECT NOT APPLE_TVOS AND NOT APPLE_WATCHOS
+ AUTODETECT NOT TVOS AND NOT WATCHOS
CONDITION QT_FEATURE_gui
)
qt_feature_definition("widgets" "QT_NO_WIDGETS" NEGATE)
@@ -868,7 +868,7 @@ qt_configure_add_report_entry(
qt_configure_add_report_entry(
TYPE ERROR
MESSAGE "Debug build wihtout Release build is not currently supported on ios see QTBUG-71990. Use -debug-and-release."
- CONDITION APPLE_IOS AND QT_FEATURE_debug AND NOT QT_FEATURE_debug_and_release
+ CONDITION IOS AND QT_FEATURE_debug AND NOT QT_FEATURE_debug_and_release
)
qt_configure_add_report_entry(
TYPE WARNING
diff --git a/examples/widgets/CMakeLists.txt b/examples/widgets/CMakeLists.txt
index 811c4f9fb6..a710f75207 100644
--- a/examples/widgets/CMakeLists.txt
+++ b/examples/widgets/CMakeLists.txt
@@ -28,6 +28,6 @@ if(QT_FEATURE_cursor) # special case
add_subdirectory(mainwindows)
endif()
-if(APPLE_MACOS)
+if(MACOS)
add_subdirectory(mac)
endif()
diff --git a/examples/widgets/mac/CMakeLists.txt b/examples/widgets/mac/CMakeLists.txt
index 942ea69475..39003dc4c8 100644
--- a/examples/widgets/mac/CMakeLists.txt
+++ b/examples/widgets/mac/CMakeLists.txt
@@ -1,7 +1,7 @@
# Generated from mac.pro.
-if(APPLE_MACOS)
+if(MACOS)
add_subdirectory(qmaccocoaviewcontainer)
add_subdirectory(qmacnativewidget)
endif()
diff --git a/qmake/.prev_CMakeLists.txt b/qmake/.prev_CMakeLists.txt
index 90dd2a56e2..5d32aa4251 100644
--- a/qmake/.prev_CMakeLists.txt
+++ b/qmake/.prev_CMakeLists.txt
@@ -162,7 +162,7 @@ qt_extend_target(qmake CONDITION UNIX
qlocale_unix.cpp-NOTFOUND
)
-qt_extend_target(qmake CONDITION APPLE_MACOS
+qt_extend_target(qmake CONDITION MACOS
SOURCES
qcore_foundation.mm
qcore_mac.cpp
diff --git a/qmake/CMakeLists.txt b/qmake/CMakeLists.txt
index 205fcebe27..4c8160eda5 100644
--- a/qmake/CMakeLists.txt
+++ b/qmake/CMakeLists.txt
@@ -165,7 +165,7 @@ qt_extend_target(qmake CONDITION UNIX
../src/corelib/text/qlocale_unix.cpp
)
-qt_extend_target(qmake CONDITION APPLE_MACOS
+qt_extend_target(qmake CONDITION MACOS
SOURCES
../src/corelib/kernel/qcore_foundation.mm # special case
../src/corelib/kernel/qcore_mac.cpp # special case
diff --git a/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt b/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt
index 9da792e15a..1cdc8bafc0 100644
--- a/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt
+++ b/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt
@@ -158,13 +158,13 @@ qt_extend_target(BundledHarfbuzz CONDITION SHAPERS___contains___opentype
HAVE_OT
)
-qt_extend_target(BundledHarfbuzz CONDITION APPLE_UIKIT
+qt_extend_target(BundledHarfbuzz CONDITION UIKIT
LIBRARIES
${FWCoreGraphics}
${FWCoreText}
)
-qt_extend_target(BundledHarfbuzz CONDITION APPLE AND NOT APPLE_UIKIT
+qt_extend_target(BundledHarfbuzz CONDITION APPLE AND NOT UIKIT
LIBRARIES
${FWApplicationServices}
)
diff --git a/src/3rdparty/harfbuzz-ng/CMakeLists.txt b/src/3rdparty/harfbuzz-ng/CMakeLists.txt
index 8abff4d076..07e0fdf836 100644
--- a/src/3rdparty/harfbuzz-ng/CMakeLists.txt
+++ b/src/3rdparty/harfbuzz-ng/CMakeLists.txt
@@ -159,13 +159,13 @@ qt_extend_target(BundledHarfbuzz CONDITION TRUE # special case
HAVE_OT
)
-qt_extend_target(BundledHarfbuzz CONDITION APPLE_UIKIT
+qt_extend_target(BundledHarfbuzz CONDITION UIKIT
LIBRARIES
${FWCoreGraphics}
${FWCoreText}
)
-qt_extend_target(BundledHarfbuzz CONDITION APPLE AND NOT APPLE_UIKIT
+qt_extend_target(BundledHarfbuzz CONDITION APPLE AND NOT UIKIT
LIBRARIES
${FWApplicationServices}
)
@@ -175,4 +175,4 @@ qt_extend_target(BundledHarfbuzz CONDITION SHAPERS_ISEMPTY OR SHAPERS___contains
src/hb-fallback-shape.cc
DEFINES
HAVE_FALLBACK
-) \ No newline at end of file
+)
diff --git a/src/3rdparty/pcre2/CMakeLists.txt b/src/3rdparty/pcre2/CMakeLists.txt
index 76cddc83bc..681c8a4e21 100644
--- a/src/3rdparty/pcre2/CMakeLists.txt
+++ b/src/3rdparty/pcre2/CMakeLists.txt
@@ -56,7 +56,7 @@ qt_extend_target(BundledPcre2 CONDITION WIN32
PCRE2_STATIC
)
-qt_extend_target(BundledPcre2 CONDITION APPLE_UIKIT OR QNX OR WINRT
+qt_extend_target(BundledPcre2 CONDITION UIKIT OR QNX OR WINRT
DEFINES
PCRE2_DISABLE_JIT
)
diff --git a/src/corelib/.prev_CMakeLists.txt b/src/corelib/.prev_CMakeLists.txt
index 7b0fe80ce4..a74e3bb48e 100644
--- a/src/corelib/.prev_CMakeLists.txt
+++ b/src/corelib/.prev_CMakeLists.txt
@@ -398,7 +398,7 @@ qt_extend_target(Core CONDITION APPLE
${FWFoundation}
)
-qt_extend_target(Core CONDITION APPLE_MACOS
+qt_extend_target(Core CONDITION MACOS
LIBRARIES
${FWAppKit}
${FWApplicationServices}
@@ -658,7 +658,7 @@ qt_extend_target(Core CONDITION QT_FEATURE_easingcurve
tools/qtimeline.cpp tools/qtimeline.h
)
-qt_extend_target(Core CONDITION UNIX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS AND NOT WASM AND (NOT APPLE_MACOS OR NOT ICC)
+qt_extend_target(Core CONDITION UNIX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS AND NOT WASM AND (NOT MACOS OR NOT ICC)
LIBRARIES
m
)
@@ -692,12 +692,12 @@ qt_extend_target(Core CONDITION WIN32 AND NOT QT_FEATURE_icu
text/qcollator_win.cpp
)
-qt_extend_target(Core CONDITION APPLE_MACOS AND NOT QT_FEATURE_icu
+qt_extend_target(Core CONDITION MACOS AND NOT QT_FEATURE_icu
SOURCES
text/qcollator_macx.cpp
)
-qt_extend_target(Core CONDITION UNIX AND NOT APPLE_MACOS AND NOT QT_FEATURE_icu
+qt_extend_target(Core CONDITION UNIX AND NOT MACOS AND NOT QT_FEATURE_icu
SOURCES
text/qcollator_posix.cpp
)
@@ -784,17 +784,17 @@ qt_extend_target(Core CONDITION QT_FEATURE_filesystemwatcher AND WIN32
io/qfilesystemwatcher_win.cpp io/qfilesystemwatcher_win_p.h
)
-qt_extend_target(Core CONDITION APPLE_MACOS AND QT_FEATURE_filesystemwatcher
+qt_extend_target(Core CONDITION MACOS AND QT_FEATURE_filesystemwatcher
SOURCES
io/qfilesystemwatcher_fsevents.mm io/qfilesystemwatcher_fsevents_p.h
)
-qt_extend_target(Core CONDITION QT_FEATURE_filesystemwatcher AND QT_FEATURE_inotify AND UNIX AND NOT APPLE_MACOS
+qt_extend_target(Core CONDITION QT_FEATURE_filesystemwatcher AND QT_FEATURE_inotify AND UNIX AND NOT MACOS
SOURCES
io/qfilesystemwatcher_inotify.cpp io/qfilesystemwatcher_inotify_p.h
)
-qt_extend_target(Core CONDITION QT_FEATURE_filesystemwatcher AND UNIX AND NOT APPLE_MACOS AND NOT QT_FEATURE_inotify AND (APPLE OR FREEBSD OR NETBSD OR OPENBSD)
+qt_extend_target(Core CONDITION QT_FEATURE_filesystemwatcher AND UNIX AND NOT MACOS AND NOT QT_FEATURE_inotify AND (APPLE OR FREEBSD OR NETBSD OR OPENBSD)
SOURCES
io/qfilesystemwatcher_kqueue.cpp io/qfilesystemwatcher_kqueue_p.h
)
@@ -866,7 +866,7 @@ qt_extend_target(Core CONDITION APPLE AND QT_FEATURE_processenvironment
io/qprocess_darwin.mm
)
-qt_extend_target(Core CONDITION APPLE AND NOT APPLE_MACOS
+qt_extend_target(Core CONDITION APPLE AND NOT MACOS
PUBLIC_LIBRARIES
${FWMobileCoreServices}
)
@@ -946,12 +946,12 @@ qt_extend_target(Core CONDITION QT_FEATURE_dlopen AND QT_FEATURE_library
${CMAKE_DL_LIBS}
)
-qt_extend_target(Core CONDITION APPLE AND (APPLE_IOS OR APPLE_TVOS)
+qt_extend_target(Core CONDITION APPLE AND (IOS OR TVOS)
LIBRARIES
${FWUIKit}
)
-qt_extend_target(Core CONDITION APPLE_WATCHOS
+qt_extend_target(Core CONDITION WATCHOS
LIBRARIES
${FWWatchKit}
)
diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt
index fa3b1a0f05..82fb29b93a 100644
--- a/src/corelib/CMakeLists.txt
+++ b/src/corelib/CMakeLists.txt
@@ -508,7 +508,7 @@ qt_extend_target(Core CONDITION APPLE
${FWFoundation}
)
-qt_extend_target(Core CONDITION APPLE_MACOS
+qt_extend_target(Core CONDITION MACOS
LIBRARIES
${FWAppKit}
${FWApplicationServices}
@@ -761,7 +761,7 @@ qt_extend_target(Core CONDITION QT_FEATURE_easingcurve
tools/qtimeline.cpp tools/qtimeline.h
)
-qt_extend_target(Core CONDITION UNIX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS AND NOT WASM AND (NOT APPLE_MACOS OR NOT ICC)
+qt_extend_target(Core CONDITION UNIX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS AND NOT WASM AND (NOT MACOS OR NOT ICC)
LIBRARIES
m
)
@@ -795,12 +795,12 @@ qt_extend_target(Core CONDITION WIN32 AND NOT QT_FEATURE_icu
text/qcollator_win.cpp
)
-qt_extend_target(Core CONDITION APPLE_MACOS AND NOT QT_FEATURE_icu
+qt_extend_target(Core CONDITION MACOS AND NOT QT_FEATURE_icu
SOURCES
text/qcollator_macx.cpp
)
-qt_extend_target(Core CONDITION UNIX AND NOT APPLE_MACOS AND NOT QT_FEATURE_icu
+qt_extend_target(Core CONDITION UNIX AND NOT MACOS AND NOT QT_FEATURE_icu
SOURCES
text/qcollator_posix.cpp
)
@@ -887,17 +887,17 @@ qt_extend_target(Core CONDITION QT_FEATURE_filesystemwatcher AND WIN32
io/qfilesystemwatcher_win.cpp io/qfilesystemwatcher_win_p.h
)
-qt_extend_target(Core CONDITION APPLE_MACOS AND QT_FEATURE_filesystemwatcher
+qt_extend_target(Core CONDITION MACOS AND QT_FEATURE_filesystemwatcher
SOURCES
io/qfilesystemwatcher_fsevents.mm io/qfilesystemwatcher_fsevents_p.h
)
-qt_extend_target(Core CONDITION QT_FEATURE_filesystemwatcher AND QT_FEATURE_inotify AND UNIX AND NOT APPLE_MACOS
+qt_extend_target(Core CONDITION QT_FEATURE_filesystemwatcher AND QT_FEATURE_inotify AND UNIX AND NOT MACOS
SOURCES
io/qfilesystemwatcher_inotify.cpp io/qfilesystemwatcher_inotify_p.h
)
-qt_extend_target(Core CONDITION QT_FEATURE_filesystemwatcher AND UNIX AND NOT APPLE_MACOS AND NOT QT_FEATURE_inotify AND (APPLE OR FREEBSD OR NETBSD OR OPENBSD)
+qt_extend_target(Core CONDITION QT_FEATURE_filesystemwatcher AND UNIX AND NOT MACOS AND NOT QT_FEATURE_inotify AND (APPLE OR FREEBSD OR NETBSD OR OPENBSD)
SOURCES
io/qfilesystemwatcher_kqueue.cpp io/qfilesystemwatcher_kqueue_p.h
)
@@ -969,7 +969,7 @@ qt_extend_target(Core CONDITION APPLE AND QT_FEATURE_processenvironment
io/qprocess_darwin.mm
)
-qt_extend_target(Core CONDITION APPLE AND NOT APPLE_MACOS
+qt_extend_target(Core CONDITION APPLE AND NOT MACOS
PUBLIC_LIBRARIES
${FWMobileCoreServices}
)
@@ -1049,12 +1049,12 @@ qt_extend_target(Core CONDITION QT_FEATURE_dlopen AND QT_FEATURE_library
${CMAKE_DL_LIBS}
)
-qt_extend_target(Core CONDITION APPLE AND (APPLE_IOS OR APPLE_TVOS)
+qt_extend_target(Core CONDITION APPLE AND (IOS OR TVOS)
LIBRARIES
${FWUIKit}
)
-qt_extend_target(Core CONDITION APPLE_WATCHOS
+qt_extend_target(Core CONDITION WATCHOS
LIBRARIES
${FWWatchKit}
)
diff --git a/src/corelib/configure.cmake b/src/corelib/configure.cmake
index 811030bd38..eaeb7862c4 100644
--- a/src/corelib/configure.cmake
+++ b/src/corelib/configure.cmake
@@ -782,7 +782,7 @@ qt_feature("process" PUBLIC
SECTION "File I/O"
LABEL "QProcess"
PURPOSE "Supports external process invocation."
- CONDITION QT_FEATURE_processenvironment AND ( QT_FEATURE_thread OR NOT UNIX ) AND NOT WINRT AND NOT APPLE_UIKIT AND NOT INTEGRITY AND NOT VXWORKS AND NOT rtems
+ CONDITION QT_FEATURE_processenvironment AND ( QT_FEATURE_thread OR NOT UNIX ) AND NOT WINRT AND NOT UIKIT AND NOT INTEGRITY AND NOT VXWORKS AND NOT rtems
)
qt_feature_definition("process" "QT_NO_PROCESS" NEGATE VALUE "1")
qt_feature("processenvironment" PUBLIC
diff --git a/src/gui/.prev_CMakeLists.txt b/src/gui/.prev_CMakeLists.txt
index b8603f1884..86579a5d0f 100644
--- a/src/gui/.prev_CMakeLists.txt
+++ b/src/gui/.prev_CMakeLists.txt
@@ -273,7 +273,7 @@ qt_extend_target(Gui CONDITION QT_FEATURE_opengl
#### Keys ignored in scope 3:.:.:gui.pro:QT_FEATURE_angle:
# MODULE_AUX_INCLUDES = "\$\$QT_MODULE_INCLUDE_BASE/QtANGLE"
-qt_extend_target(Gui CONDITION APPLE_MACOS
+qt_extend_target(Gui CONDITION MACOS
LIBRARIES
${FWAppKit}
PUBLIC_LIBRARIES
@@ -517,12 +517,12 @@ qt_extend_target(Gui CONDITION QT_FEATURE_cssparser
text/qcssparser.cpp text/qcssparser_p.h
)
-qt_extend_target(Gui CONDITION UNIX AND NOT ANDROID AND NOT APPLE_UIKIT AND NOT INTEGRITY AND NOT (TEST_architecture_arch STREQUAL "arm64")
+qt_extend_target(Gui CONDITION UNIX AND NOT ANDROID AND NOT UIKIT AND NOT INTEGRITY AND NOT (TEST_architecture_arch STREQUAL "arm64")
DEFINES
ENABLE_PIXMAN_DRAWHELPERS
)
-if(UNIX AND NOT ANDROID AND NOT APPLE_UIKIT AND NOT INTEGRITY AND NOT (TEST_architecture_arch STREQUAL "arm64"))
+if(UNIX AND NOT ANDROID AND NOT UIKIT AND NOT INTEGRITY AND NOT (TEST_architecture_arch STREQUAL "arm64"))
qt_add_simd_part(Gui SIMD neon
SOURCES
../3rdparty/pixman/pixman-arm-neon-asm.S
@@ -633,7 +633,7 @@ qt_extend_target(Gui CONDITION WASM
platform/wasm/qwasmlocalfileaccess.cpp platform/wasm/qwasmlocalfileaccess_p.h
)
-qt_extend_target(Gui CONDITION APPLE_IOS OR APPLE_MACOS
+qt_extend_target(Gui CONDITION IOS OR MACOS
SOURCES
rhi/qrhimetal.mm rhi/qrhimetal_p.h
rhi/qrhimetal_p_p.h
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index 922f7aae3a..8b259ad672 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -18,11 +18,11 @@ if (QT_FEATURE_gui)
set(_default_platform "windows")
elseif(ANDROID)
set(_default_platform "android")
- elseif(APPLE_MACOS)
+ elseif(MACOS)
set(_default_platform "cocoa")
- elseif(APPLE_TVOS OR APPLE_IOS)
+ elseif(TVOS OR IOS)
set(_default_platform "ios")
- elseif(APPLE_WATCHOS)
+ elseif(WATCHOS)
set(_default_platform "minimal")
elseif(QNX)
set(_default_platform "qnx")
@@ -359,7 +359,7 @@ qt_extend_target(Gui CONDITION QT_FEATURE_opengl
#### Keys ignored in scope 3:.:.:gui.pro:QT_FEATURE_angle:
# MODULE_AUX_INCLUDES = "\$\$QT_MODULE_INCLUDE_BASE/QtANGLE"
-qt_extend_target(Gui CONDITION APPLE_MACOS
+qt_extend_target(Gui CONDITION MACOS
LIBRARIES
${FWAppKit}
PUBLIC_LIBRARIES
@@ -578,7 +578,7 @@ qt_extend_target(Gui CONDITION QT_FEATURE_harfbuzz
# Replicate what src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro does, which is link CoreText
# when targeting uikit.
-qt_extend_target(Gui CONDITION QT_FEATURE_harfbuzz AND APPLE_UIKIT
+qt_extend_target(Gui CONDITION QT_FEATURE_harfbuzz AND UIKIT
LIBRARIES
${FWCoreText}
)
@@ -622,12 +622,12 @@ qt_extend_target(Gui CONDITION QT_FEATURE_cssparser
text/qcssparser.cpp text/qcssparser_p.h
)
-qt_extend_target(Gui CONDITION UNIX AND NOT ANDROID AND NOT APPLE_UIKIT AND NOT INTEGRITY AND NOT (TEST_architecture_arch STREQUAL "arm64")
+qt_extend_target(Gui CONDITION UNIX AND NOT ANDROID AND NOT UIKIT AND NOT INTEGRITY AND NOT (TEST_architecture_arch STREQUAL "arm64")
DEFINES
ENABLE_PIXMAN_DRAWHELPERS
)
-if(UNIX AND NOT ANDROID AND NOT APPLE_UIKIT AND NOT INTEGRITY AND NOT (TEST_architecture_arch STREQUAL "arm64"))
+if(UNIX AND NOT ANDROID AND NOT UIKIT AND NOT INTEGRITY AND NOT (TEST_architecture_arch STREQUAL "arm64"))
qt_add_simd_part(Gui SIMD neon
SOURCES
../3rdparty/pixman/pixman-arm-neon-asm.S
@@ -778,7 +778,7 @@ qt_extend_target(Gui CONDITION WASM
platform/wasm/qwasmlocalfileaccess.cpp platform/wasm/qwasmlocalfileaccess_p.h
)
-qt_extend_target(Gui CONDITION APPLE_IOS OR APPLE_MACOS
+qt_extend_target(Gui CONDITION IOS OR MACOS
SOURCES
rhi/qrhimetal.mm rhi/qrhimetal_p.h
rhi/qrhimetal_p_p.h
diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
index b338cf7dc8..f17949bc53 100644
--- a/src/gui/configure.cmake
+++ b/src/gui/configure.cmake
@@ -706,7 +706,7 @@ qt_feature("mtdev" PRIVATE
)
qt_feature("opengles2" PUBLIC
LABEL "OpenGL ES 2.0"
- CONDITION NOT WIN32 AND ( NOT APPLE_WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND )
+ CONDITION NOT WIN32 AND ( NOT WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND )
ENABLE INPUT_opengl STREQUAL 'es2' OR INPUT_angle STREQUAL 'yes'
DISABLE INPUT_opengl STREQUAL 'desktop' OR INPUT_opengl STREQUAL 'dynamic' OR INPUT_opengl STREQUAL 'no'
)
@@ -730,7 +730,7 @@ qt_feature("opengles32" PUBLIC
qt_feature_definition("opengles32" "QT_OPENGL_ES_3_2")
qt_feature("opengl-desktop"
LABEL "Desktop OpenGL"
- CONDITION ( WIN32 AND NOT WINRT AND NOT QT_FEATURE_opengles2 AND ( MSVC OR OpenGL_OpenGL_FOUND ) ) OR ( NOT APPLE_WATCHOS AND NOT WIN32 AND NOT WASM AND OpenGL_OpenGL_FOUND )
+ CONDITION ( WIN32 AND NOT WINRT AND NOT QT_FEATURE_opengles2 AND ( MSVC OR OpenGL_OpenGL_FOUND ) ) OR ( NOT WATCHOS AND NOT WIN32 AND NOT WASM AND OpenGL_OpenGL_FOUND )
ENABLE INPUT_opengl STREQUAL 'desktop'
DISABLE INPUT_opengl STREQUAL 'es2' OR INPUT_opengl STREQUAL 'dynamic' OR INPUT_opengl STREQUAL 'no'
)
@@ -1279,7 +1279,7 @@ qt_configure_add_report_entry(
qt_configure_add_report_entry(
TYPE ERROR
MESSAGE "The OpenGL functionality tests failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2], QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform."
- CONDITION QT_FEATURE_gui AND NOT APPLE_WATCHOS AND ( NOT INPUT_opengl STREQUAL 'no' ) AND NOT QT_FEATURE_opengl_desktop AND NOT QT_FEATURE_opengles2 AND NOT QT_FEATURE_opengl_dynamic
+ CONDITION QT_FEATURE_gui AND NOT WATCHOS AND ( NOT INPUT_opengl STREQUAL 'no' ) AND NOT QT_FEATURE_opengl_desktop AND NOT QT_FEATURE_opengles2 AND NOT QT_FEATURE_opengl_dynamic
)
qt_configure_add_report_entry(
TYPE WARNING
diff --git a/src/network/.prev_CMakeLists.txt b/src/network/.prev_CMakeLists.txt
index 141c9f96d6..a1d30b6c83 100644
--- a/src/network/.prev_CMakeLists.txt
+++ b/src/network/.prev_CMakeLists.txt
@@ -231,25 +231,25 @@ qt_extend_target(Network CONDITION QT_FEATURE_dnslookup AND WINRT
kernel/qdnslookup_winrt.cpp
)
-qt_extend_target(Network CONDITION APPLE AND NOT APPLE_UIKIT
+qt_extend_target(Network CONDITION APPLE AND NOT UIKIT
LIBRARIES
${FWCoreServices}
${FWSystemConfiguration}
)
-qt_extend_target(Network CONDITION APPLE_IOS OR APPLE_MACOS
+qt_extend_target(Network CONDITION IOS OR MACOS
SOURCES
kernel/qnetconmonitor_darwin.mm
LIBRARIES
${FWSystemConfiguration}
)
-qt_extend_target(Network CONDITION QT_FEATURE_netlistmgr AND NOT APPLE_IOS AND NOT APPLE_MACOS
+qt_extend_target(Network CONDITION QT_FEATURE_netlistmgr AND NOT IOS AND NOT MACOS
SOURCES
kernel/qnetconmonitor_win.cpp
)
-qt_extend_target(Network CONDITION NOT APPLE_IOS AND NOT APPLE_MACOS AND NOT QT_FEATURE_netlistmgr
+qt_extend_target(Network CONDITION NOT IOS AND NOT MACOS AND NOT QT_FEATURE_netlistmgr
SOURCES
kernel/qnetconmonitor_stub.cpp
)
@@ -259,17 +259,17 @@ qt_extend_target(Network CONDITION QT_FEATURE_gssapi
GSSAPI::GSSAPI
)
-qt_extend_target(Network CONDITION APPLE_UIKIT
+qt_extend_target(Network CONDITION UIKIT
SOURCES
kernel/qnetworkinterface_uikit_p.h
)
-qt_extend_target(Network CONDITION APPLE_MACOS
+qt_extend_target(Network CONDITION MACOS
SOURCES
kernel/qnetworkproxy_mac.cpp
)
-qt_extend_target(Network CONDITION QT_FEATURE_libproxy AND NOT APPLE_MACOS AND (UNIX OR WINRT)
+qt_extend_target(Network CONDITION QT_FEATURE_libproxy AND NOT MACOS AND (UNIX OR WINRT)
SOURCES
kernel/qnetworkproxy_libproxy.cpp
LIBRARIES
@@ -277,7 +277,7 @@ qt_extend_target(Network CONDITION QT_FEATURE_libproxy AND NOT APPLE_MACOS AND (
PkgConfig::Libproxy
)
-qt_extend_target(Network CONDITION NOT APPLE_MACOS AND NOT QT_FEATURE_libproxy AND (UNIX OR WINRT)
+qt_extend_target(Network CONDITION NOT MACOS AND NOT QT_FEATURE_libproxy AND (UNIX OR WINRT)
SOURCES
kernel/qnetworkproxy_generic.cpp
)
diff --git a/src/network/CMakeLists.txt b/src/network/CMakeLists.txt
index 5735c1551f..86eadf653c 100644
--- a/src/network/CMakeLists.txt
+++ b/src/network/CMakeLists.txt
@@ -231,25 +231,25 @@ qt_extend_target(Network CONDITION QT_FEATURE_dnslookup AND WINRT
kernel/qdnslookup_winrt.cpp
)
-qt_extend_target(Network CONDITION APPLE AND NOT APPLE_UIKIT
+qt_extend_target(Network CONDITION APPLE AND NOT UIKIT
LIBRARIES
${FWCoreServices}
${FWSystemConfiguration}
)
-qt_extend_target(Network CONDITION APPLE_IOS OR APPLE_MACOS
+qt_extend_target(Network CONDITION IOS OR MACOS
SOURCES
kernel/qnetconmonitor_darwin.mm
LIBRARIES
${FWSystemConfiguration}
)
-qt_extend_target(Network CONDITION QT_FEATURE_netlistmgr AND NOT APPLE_IOS AND NOT APPLE_MACOS
+qt_extend_target(Network CONDITION QT_FEATURE_netlistmgr AND NOT IOS AND NOT MACOS
SOURCES
kernel/qnetconmonitor_win.cpp
)
-qt_extend_target(Network CONDITION NOT APPLE_IOS AND NOT APPLE_MACOS AND NOT QT_FEATURE_netlistmgr
+qt_extend_target(Network CONDITION NOT IOS AND NOT MACOS AND NOT QT_FEATURE_netlistmgr
SOURCES
kernel/qnetconmonitor_stub.cpp
)
@@ -259,17 +259,17 @@ qt_extend_target(Network CONDITION QT_FEATURE_gssapi
GSSAPI::GSSAPI
)
-qt_extend_target(Network CONDITION APPLE_UIKIT
+qt_extend_target(Network CONDITION UIKIT
SOURCES
kernel/qnetworkinterface_uikit_p.h
)
-qt_extend_target(Network CONDITION APPLE_MACOS
+qt_extend_target(Network CONDITION MACOS
SOURCES
kernel/qnetworkproxy_mac.cpp
)
-qt_extend_target(Network CONDITION QT_FEATURE_libproxy AND NOT APPLE_MACOS AND (UNIX OR WINRT)
+qt_extend_target(Network CONDITION QT_FEATURE_libproxy AND NOT MACOS AND (UNIX OR WINRT)
SOURCES
kernel/qnetworkproxy_libproxy.cpp
LIBRARIES
@@ -277,7 +277,7 @@ qt_extend_target(Network CONDITION QT_FEATURE_libproxy AND NOT APPLE_MACOS AND (
PkgConfig::Libproxy
)
-qt_extend_target(Network CONDITION NOT APPLE_MACOS AND NOT QT_FEATURE_libproxy AND (UNIX OR WINRT)
+qt_extend_target(Network CONDITION NOT MACOS AND NOT QT_FEATURE_libproxy AND (UNIX OR WINRT)
SOURCES
kernel/qnetworkproxy_generic.cpp
)
diff --git a/src/platformsupport/CMakeLists.txt b/src/platformsupport/CMakeLists.txt
index fc980f3707..9e91754ac8 100644
--- a/src/platformsupport/CMakeLists.txt
+++ b/src/platformsupport/CMakeLists.txt
@@ -16,7 +16,7 @@ endif()
if(QT_FEATURE_evdev OR QT_FEATURE_integrityhid OR QT_FEATURE_libinput OR QT_FEATURE_tslib)
add_subdirectory(input)
endif()
-if(QT_FEATURE_xcb OR (UNIX AND NOT APPLE_UIKIT))
+if(QT_FEATURE_xcb OR (UNIX AND NOT UIKIT))
add_subdirectory(services)
endif()
if(QT_FEATURE_opengl)
diff --git a/src/platformsupport/clipboard/CMakeLists.txt b/src/platformsupport/clipboard/CMakeLists.txt
index 5a54d67d28..d5b6835a54 100644
--- a/src/platformsupport/clipboard/CMakeLists.txt
+++ b/src/platformsupport/clipboard/CMakeLists.txt
@@ -23,7 +23,7 @@ qt_add_module(ClipboardSupport
## Scopes:
#####################################################################
-qt_extend_target(ClipboardSupport CONDITION APPLE_MACOS
+qt_extend_target(ClipboardSupport CONDITION MACOS
LIBRARIES
${FWAppKit}
)
diff --git a/src/platformsupport/fontdatabases/.prev_CMakeLists.txt b/src/platformsupport/fontdatabases/.prev_CMakeLists.txt
index 5559b7de5e..b30b04824a 100644
--- a/src/platformsupport/fontdatabases/.prev_CMakeLists.txt
+++ b/src/platformsupport/fontdatabases/.prev_CMakeLists.txt
@@ -33,12 +33,12 @@ qt_extend_target(FontDatabaseSupport CONDITION APPLE
${FWFoundation}
)
-qt_extend_target(FontDatabaseSupport CONDITION APPLE_MACOS
+qt_extend_target(FontDatabaseSupport CONDITION MACOS
LIBRARIES
${FWAppKit}
)
-qt_extend_target(FontDatabaseSupport CONDITION APPLE AND NOT APPLE_MACOS
+qt_extend_target(FontDatabaseSupport CONDITION APPLE AND NOT MACOS
LIBRARIES
${FWUIKit}
)
diff --git a/src/platformsupport/fontdatabases/CMakeLists.txt b/src/platformsupport/fontdatabases/CMakeLists.txt
index a7824d7275..46919116da 100644
--- a/src/platformsupport/fontdatabases/CMakeLists.txt
+++ b/src/platformsupport/fontdatabases/CMakeLists.txt
@@ -36,12 +36,12 @@ qt_extend_target(FontDatabaseSupport CONDITION APPLE
${FWFoundation}
)
-qt_extend_target(FontDatabaseSupport CONDITION APPLE_MACOS
+qt_extend_target(FontDatabaseSupport CONDITION MACOS
LIBRARIES
${FWAppKit}
)
-qt_extend_target(FontDatabaseSupport CONDITION APPLE AND NOT APPLE_MACOS
+qt_extend_target(FontDatabaseSupport CONDITION APPLE AND NOT MACOS
LIBRARIES
${FWUIKit}
)
diff --git a/src/platformsupport/themes/CMakeLists.txt b/src/platformsupport/themes/CMakeLists.txt
index a7be78d0e0..3b1ad022b8 100644
--- a/src/platformsupport/themes/CMakeLists.txt
+++ b/src/platformsupport/themes/CMakeLists.txt
@@ -22,12 +22,12 @@ qt_add_module(ThemeSupport
## Scopes:
#####################################################################
-qt_extend_target(ThemeSupport CONDITION QT_FEATURE_xcb OR (UNIX AND NOT APPLE_UIKIT)
+qt_extend_target(ThemeSupport CONDITION QT_FEATURE_xcb OR (UNIX AND NOT UIKIT)
SOURCES
genericunix/qgenericunixthemes.cpp genericunix/qgenericunixthemes_p.h
)
-qt_extend_target(ThemeSupport CONDITION QT_FEATURE_dbus AND (QT_FEATURE_xcb OR UNIX) AND (QT_FEATURE_xcb OR NOT APPLE_UIKIT)
+qt_extend_target(ThemeSupport CONDITION QT_FEATURE_dbus AND (QT_FEATURE_xcb OR UNIX) AND (QT_FEATURE_xcb OR NOT UIKIT)
SOURCES
genericunix/dbusmenu/qdbusmenuadaptor.cpp genericunix/dbusmenu/qdbusmenuadaptor_p.h
genericunix/dbusmenu/qdbusmenubar.cpp genericunix/dbusmenu/qdbusmenubar_p.h
@@ -41,7 +41,7 @@ qt_extend_target(ThemeSupport CONDITION QT_FEATURE_dbus AND (QT_FEATURE_xcb OR U
Qt::DBus
)
-qt_extend_target(ThemeSupport CONDITION QT_FEATURE_dbus AND QT_FEATURE_systemtrayicon AND (QT_FEATURE_xcb OR UNIX) AND (QT_FEATURE_xcb OR NOT APPLE_UIKIT)
+qt_extend_target(ThemeSupport CONDITION QT_FEATURE_dbus AND QT_FEATURE_systemtrayicon AND (QT_FEATURE_xcb OR UNIX) AND (QT_FEATURE_xcb OR NOT UIKIT)
SOURCES
genericunix/dbustray/qdbustrayicon.cpp genericunix/dbustray/qdbustrayicon_p.h
genericunix/dbustray/qdbustraytypes.cpp genericunix/dbustray/qdbustraytypes_p.h
diff --git a/src/plugins/platforminputcontexts/CMakeLists.txt b/src/plugins/platforminputcontexts/CMakeLists.txt
index 77dbe2f567..b5150df4f3 100644
--- a/src/plugins/platforminputcontexts/CMakeLists.txt
+++ b/src/plugins/platforminputcontexts/CMakeLists.txt
@@ -3,6 +3,6 @@
if(QT_FEATURE_xkbcommon)
add_subdirectory(compose)
endif()
-if(QT_FEATURE_xkbcommon AND TARGET Qt::DBus AND UNIX AND NOT APPLE_MACOS)
+if(QT_FEATURE_xkbcommon AND TARGET Qt::DBus AND UNIX AND NOT MACOS)
add_subdirectory(ibus)
endif()
diff --git a/src/plugins/platforms/.prev_CMakeLists.txt b/src/plugins/platforms/.prev_CMakeLists.txt
index ce9c870454..c58fb31aea 100644
--- a/src/plugins/platforms/.prev_CMakeLists.txt
+++ b/src/plugins/platforms/.prev_CMakeLists.txt
@@ -12,10 +12,10 @@ endif()
if(QT_FEATURE_xcb)
add_subdirectory(xcb)
endif()
-if(APPLE_UIKIT AND NOT APPLE_WATCHOS)
+if(UIKIT AND NOT WATCHOS)
add_subdirectory(ios)
endif()
-if(APPLE_MACOS)
+if(MACOS)
add_subdirectory(cocoa)
endif()
if(QT_FEATURE_direct3d9 AND WIN32 AND NOT WINRT)
diff --git a/src/plugins/platforms/CMakeLists.txt b/src/plugins/platforms/CMakeLists.txt
index c4796fb7e1..442596286a 100644
--- a/src/plugins/platforms/CMakeLists.txt
+++ b/src/plugins/platforms/CMakeLists.txt
@@ -12,10 +12,10 @@ endif()
if(QT_FEATURE_xcb)
add_subdirectory(xcb)
endif()
-if(APPLE_UIKIT AND NOT APPLE_WATCHOS)
+if(UIKIT AND NOT WATCHOS)
add_subdirectory(ios)
endif()
-if(APPLE_MACOS)
+if(MACOS)
add_subdirectory(cocoa)
endif()
if(WIN32 AND NOT WINRT) # special case TODO fix direct3d9 test
diff --git a/src/plugins/platforms/ios/.prev_CMakeLists.txt b/src/plugins/platforms/ios/.prev_CMakeLists.txt
index d7ff160ee0..3a330e2b7b 100644
--- a/src/plugins/platforms/ios/.prev_CMakeLists.txt
+++ b/src/plugins/platforms/ios/.prev_CMakeLists.txt
@@ -49,7 +49,7 @@ extend_target(QIOSIntegrationPlugin CONDITION TARGET Qt::PlatformCompositorSuppo
Qt::PlatformCompositorSupportPrivate
)
-extend_target(QIOSIntegrationPlugin CONDITION NOT APPLE_TVOS
+extend_target(QIOSIntegrationPlugin CONDITION NOT TVOS
SOURCES
qiosclipboard.h qiosclipboard.mm
qiosfiledialog.h qiosfiledialog.mm
diff --git a/src/plugins/platforms/ios/CMakeLists.txt b/src/plugins/platforms/ios/CMakeLists.txt
index d7ff160ee0..3a330e2b7b 100644
--- a/src/plugins/platforms/ios/CMakeLists.txt
+++ b/src/plugins/platforms/ios/CMakeLists.txt
@@ -49,7 +49,7 @@ extend_target(QIOSIntegrationPlugin CONDITION TARGET Qt::PlatformCompositorSuppo
Qt::PlatformCompositorSupportPrivate
)
-extend_target(QIOSIntegrationPlugin CONDITION NOT APPLE_TVOS
+extend_target(QIOSIntegrationPlugin CONDITION NOT TVOS
SOURCES
qiosclipboard.h qiosclipboard.mm
qiosfiledialog.h qiosfiledialog.mm
diff --git a/src/plugins/platforms/ios/optional/CMakeLists.txt b/src/plugins/platforms/ios/optional/CMakeLists.txt
index 3c84e61f26..6f5d754d4a 100644
--- a/src/plugins/platforms/ios/optional/CMakeLists.txt
+++ b/src/plugins/platforms/ios/optional/CMakeLists.txt
@@ -1,5 +1,5 @@
# Generated from optional.pro.
-if(APPLE_IOS)
+if(IOS)
add_subdirectory(nsphotolibrarysupport)
endif()
diff --git a/src/plugins/printsupport/.prev_CMakeLists.txt b/src/plugins/printsupport/.prev_CMakeLists.txt
index 59b1e8b32a..a1f39cb843 100644
--- a/src/plugins/printsupport/.prev_CMakeLists.txt
+++ b/src/plugins/printsupport/.prev_CMakeLists.txt
@@ -1,6 +1,6 @@
# Generated from printsupport.pro.
-if(APPLE_MACOS)
+if(MACOS)
add_subdirectory(cocoa)
endif()
if(WIN32)
diff --git a/src/plugins/printsupport/CMakeLists.txt b/src/plugins/printsupport/CMakeLists.txt
index ae6dae1998..1e7013bc1c 100644
--- a/src/plugins/printsupport/CMakeLists.txt
+++ b/src/plugins/printsupport/CMakeLists.txt
@@ -1,6 +1,6 @@
# Generated from printsupport.pro.
-if(APPLE_MACOS)
+if(MACOS)
add_subdirectory(cocoa)
endif()
if(WIN32)
diff --git a/src/printsupport/CMakeLists.txt b/src/printsupport/CMakeLists.txt
index 6222cbf52f..9c73d78267 100644
--- a/src/printsupport/CMakeLists.txt
+++ b/src/printsupport/CMakeLists.txt
@@ -143,7 +143,7 @@ if(QT_FEATURE_printdialog)
)
endif()
-qt_extend_target(PrintSupport CONDITION APPLE_MACOS AND QT_FEATURE_printdialog
+qt_extend_target(PrintSupport CONDITION MACOS AND QT_FEATURE_printdialog
SOURCES
dialogs/qpagesetupdialog_mac.mm
dialogs/qprintdialog_mac.mm
diff --git a/src/printsupport/configure.cmake b/src/printsupport/configure.cmake
index 145a4b05d7..d9f63140af 100644
--- a/src/printsupport/configure.cmake
+++ b/src/printsupport/configure.cmake
@@ -32,7 +32,7 @@ qt_feature("printer" PUBLIC
SECTION "Painting"
LABEL "QPrinter"
PURPOSE "Provides a printer backend of QPainter."
- CONDITION NOT APPLE_UIKIT AND NOT WINRT AND QT_FEATURE_picture AND QT_FEATURE_temporaryfile AND QT_FEATURE_pdf
+ CONDITION NOT UIKIT AND NOT WINRT AND QT_FEATURE_picture AND QT_FEATURE_temporaryfile AND QT_FEATURE_pdf
)
qt_feature_definition("printer" "QT_NO_PRINTER" NEGATE VALUE "1")
qt_feature("printpreviewwidget" PUBLIC
diff --git a/src/testlib/.prev_CMakeLists.txt b/src/testlib/.prev_CMakeLists.txt
index 4a8a52f0f0..a56048240a 100644
--- a/src/testlib/.prev_CMakeLists.txt
+++ b/src/testlib/.prev_CMakeLists.txt
@@ -101,7 +101,7 @@ qt_extend_target(Test CONDITION APPLE
${FWSecurity}
)
-qt_extend_target(Test CONDITION APPLE_MACOS
+qt_extend_target(Test CONDITION MACOS
SOURCES
qtestutil_macos.mm qtestutil_macos_p.h
PUBLIC_LIBRARIES
diff --git a/src/testlib/CMakeLists.txt b/src/testlib/CMakeLists.txt
index bfc2871f16..0f80af42c9 100644
--- a/src/testlib/CMakeLists.txt
+++ b/src/testlib/CMakeLists.txt
@@ -99,7 +99,7 @@ qt_extend_target(Test CONDITION APPLE
${FWSecurity}
)
-qt_extend_target(Test CONDITION APPLE_MACOS
+qt_extend_target(Test CONDITION MACOS
SOURCES
qtestutil_macos.mm qtestutil_macos_p.h
PUBLIC_LIBRARIES
@@ -111,8 +111,8 @@ qt_extend_target(Test CONDITION APPLE_MACOS
# special case begin
# Do not bother with disabled stuff:
-# extend_target(Test CONDITION (APPLE_MACOS) AND (OFF AND NOT lessThan(QMAKE_XCODE_VERSION, "6.0")) ...
-# extend_target(Test CONDITION ((APPLE_MACOS) AND (OFF AND NOT lessThan(QMAKE_XCODE_VERSION, "6.0"))) AND (NOT QMAKE_MAC_SDK_PLATFORM_PATH_ISEMPTY) ...
+# extend_target(Test CONDITION (MACOS) AND (OFF AND NOT lessThan(QMAKE_XCODE_VERSION, "6.0")) ...
+# extend_target(Test CONDITION ((MACOS) AND (OFF AND NOT lessThan(QMAKE_XCODE_VERSION, "6.0"))) AND (NOT QMAKE_MAC_SDK_PLATFORM_PATH_ISEMPTY) ...
# special case end
#### Keys ignored in scope 9:.:.:testlib.pro:NOT QMAKE_MAC_SDK_PLATFORM_PATH_ISEMPTY:
diff --git a/src/tools/bootstrap/.prev_CMakeLists.txt b/src/tools/bootstrap/.prev_CMakeLists.txt
index ae413b696c..d4df972715 100644
--- a/src/tools/bootstrap/.prev_CMakeLists.txt
+++ b/src/tools/bootstrap/.prev_CMakeLists.txt
@@ -174,19 +174,19 @@ qt_extend_target(Bootstrap CONDITION APPLE
${FWFoundation}
)
-qt_extend_target(Bootstrap CONDITION APPLE_MACOS
+qt_extend_target(Bootstrap CONDITION MACOS
SOURCES
../../corelib/io/qstandardpaths_mac.mm
LIBRARIES
${FWCoreServices}
)
-qt_extend_target(Bootstrap CONDITION APPLE_UIKIT
+qt_extend_target(Bootstrap CONDITION UIKIT
LIBRARIES
${FWUIKit}
)
-qt_extend_target(Bootstrap CONDITION UNIX AND NOT APPLE_MACOS
+qt_extend_target(Bootstrap CONDITION UNIX AND NOT MACOS
SOURCES
../../corelib/io/qstandardpaths_unix.cpp
)
diff --git a/src/tools/bootstrap/CMakeLists.txt b/src/tools/bootstrap/CMakeLists.txt
index 23b6c8641c..627847bd7f 100644
--- a/src/tools/bootstrap/CMakeLists.txt
+++ b/src/tools/bootstrap/CMakeLists.txt
@@ -174,19 +174,19 @@ qt_extend_target(Bootstrap CONDITION APPLE
${FWFoundation}
)
-qt_extend_target(Bootstrap CONDITION APPLE_MACOS
+qt_extend_target(Bootstrap CONDITION MACOS
SOURCES
../../corelib/io/qstandardpaths_mac.mm
LIBRARIES
${FWCoreServices}
)
-qt_extend_target(Bootstrap CONDITION APPLE_UIKIT
+qt_extend_target(Bootstrap CONDITION UIKIT
LIBRARIES
${FWUIKit}
)
-qt_extend_target(Bootstrap CONDITION UNIX AND NOT APPLE_MACOS
+qt_extend_target(Bootstrap CONDITION UNIX AND NOT MACOS
SOURCES
../../corelib/io/qstandardpaths_unix.cpp
)
diff --git a/src/widgets/.prev_CMakeLists.txt b/src/widgets/.prev_CMakeLists.txt
index 0f63b32506..df76fe30c2 100644
--- a/src/widgets/.prev_CMakeLists.txt
+++ b/src/widgets/.prev_CMakeLists.txt
@@ -296,7 +296,7 @@ qt_extend_target(Widgets CONDITION MSVC AND (TEST_architecture_arch STREQUAL "i3
"/BASE:0x65000000"
)
-qt_extend_target(Widgets CONDITION APPLE_MACOS
+qt_extend_target(Widgets CONDITION MACOS
SOURCES
kernel/qmacgesturerecognizer.cpp kernel/qmacgesturerecognizer_p.h
widgets/qmaccocoaviewcontainer_mac.h widgets/qmaccocoaviewcontainer_mac.mm
@@ -594,7 +594,7 @@ qt_extend_target(Widgets CONDITION QT_FEATURE_widgettextcontrol
widgets/qwidgettextcontrol_p_p.h
)
-qt_extend_target(Widgets CONDITION APPLE_MACOS AND (QT_FEATURE_menu OR QT_FEATURE_menubar)
+qt_extend_target(Widgets CONDITION MACOS AND (QT_FEATURE_menu OR QT_FEATURE_menubar)
SOURCES
widgets/qmenu_mac.mm
)
diff --git a/src/widgets/CMakeLists.txt b/src/widgets/CMakeLists.txt
index 8486336fab..f3c04ac4c7 100644
--- a/src/widgets/CMakeLists.txt
+++ b/src/widgets/CMakeLists.txt
@@ -298,7 +298,7 @@ qt_extend_target(Widgets CONDITION MSVC AND (TEST_architecture_arch STREQUAL "i3
"/BASE:0x65000000"
)
-qt_extend_target(Widgets CONDITION APPLE_MACOS
+qt_extend_target(Widgets CONDITION MACOS
SOURCES
kernel/qmacgesturerecognizer.cpp kernel/qmacgesturerecognizer_p.h
widgets/qmaccocoaviewcontainer_mac.h widgets/qmaccocoaviewcontainer_mac.mm
@@ -596,7 +596,7 @@ qt_extend_target(Widgets CONDITION QT_FEATURE_widgettextcontrol
widgets/qwidgettextcontrol_p_p.h
)
-qt_extend_target(Widgets CONDITION APPLE_MACOS AND (QT_FEATURE_menu OR QT_FEATURE_menubar)
+qt_extend_target(Widgets CONDITION MACOS AND (QT_FEATURE_menu OR QT_FEATURE_menubar)
SOURCES
widgets/qmenu_mac.mm
)
diff --git a/src/widgets/configure.cmake b/src/widgets/configure.cmake
index 7235ac9883..9d79ddb788 100644
--- a/src/widgets/configure.cmake
+++ b/src/widgets/configure.cmake
@@ -25,7 +25,7 @@ qt_feature("style-fusion" PRIVATE
)
qt_feature("style-mac" PRIVATE
LABEL "macOS"
- CONDITION APPLE_MACOS AND QT_FEATURE_animation
+ CONDITION MACOS AND QT_FEATURE_animation
)
qt_feature("style-windows" PRIVATE
LABEL "Windows"
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
index 64996503eb..480f986830 100644
--- a/tests/auto/CMakeLists.txt
+++ b/tests/auto/CMakeLists.txt
@@ -31,7 +31,7 @@ endif()
# special case begin
# Build only corelib and gui tests when targeting uikit (iOS),
# because the script can't handle the SUBDIRS assignment well.
-if (APPLE_UIKIT)
+if (UIKIT)
return()
endif()
# special case end
diff --git a/tests/auto/corelib/.prev_CMakeLists.txt b/tests/auto/corelib/.prev_CMakeLists.txt
index 1029b14654..2019a771c0 100644
--- a/tests/auto/corelib/.prev_CMakeLists.txt
+++ b/tests/auto/corelib/.prev_CMakeLists.txt
@@ -1,7 +1,7 @@
# Generated from corelib.pro.
add_subdirectory(kernel)
-if(NOT APPLE_UIKIT)
+if(NOT UIKIT)
add_subdirectory(animation)
add_subdirectory(codecs)
add_subdirectory(global)
diff --git a/tests/auto/corelib/CMakeLists.txt b/tests/auto/corelib/CMakeLists.txt
index 1029b14654..2019a771c0 100644
--- a/tests/auto/corelib/CMakeLists.txt
+++ b/tests/auto/corelib/CMakeLists.txt
@@ -1,7 +1,7 @@
# Generated from corelib.pro.
add_subdirectory(kernel)
-if(NOT APPLE_UIKIT)
+if(NOT UIKIT)
add_subdirectory(animation)
add_subdirectory(codecs)
add_subdirectory(global)
diff --git a/tests/auto/corelib/io/qdir/CMakeLists.txt b/tests/auto/corelib/io/qdir/CMakeLists.txt
index 84136283c1..f77185bc2b 100644
--- a/tests/auto/corelib/io/qdir/CMakeLists.txt
+++ b/tests/auto/corelib/io/qdir/CMakeLists.txt
@@ -37,7 +37,7 @@ add_qt_resource(tst_qdir "qdir"
## Scopes:
#####################################################################
-#### Keys ignored in scope 2:.:.:qdir.pro:APPLE_IOS:
+#### Keys ignored in scope 2:.:.:qdir.pro:IOS:
# QMAKE_INFO_PLIST = "Info.plist"
extend_target(tst_qdir CONDITION CONFIG___contains___builtin_testdata
diff --git a/tests/auto/corelib/kernel/.prev_CMakeLists.txt b/tests/auto/corelib/kernel/.prev_CMakeLists.txt
index 5415a23a98..515720e282 100644
--- a/tests/auto/corelib/kernel/.prev_CMakeLists.txt
+++ b/tests/auto/corelib/kernel/.prev_CMakeLists.txt
@@ -17,11 +17,11 @@ add_subdirectory(qmetaenum)
if(TARGET Qt::Gui)
add_subdirectory(qmimedata)
endif()
-if(TARGET Qt::Network AND NOT ANDROID AND NOT APPLE_UIKIT)
+if(TARGET Qt::Network AND NOT ANDROID AND NOT UIKIT)
add_subdirectory(qobject)
endif()
add_subdirectory(qpointer)
-if(QT_FEATURE_private_tests AND NOT ANDROID AND NOT APPLE_UIKIT)
+if(QT_FEATURE_private_tests AND NOT ANDROID AND NOT UIKIT)
add_subdirectory(qsharedmemory)
endif()
add_subdirectory(qsignalblocker)
@@ -29,7 +29,7 @@ add_subdirectory(qsignalmapper)
if(QT_FEATURE_private_tests AND TARGET Qt::Network)
add_subdirectory(qsocketnotifier)
endif()
-if(QT_FEATURE_systemsemaphore AND NOT ANDROID AND NOT APPLE_UIKIT)
+if(QT_FEATURE_systemsemaphore AND NOT ANDROID AND NOT UIKIT)
add_subdirectory(qsystemsemaphore)
endif()
add_subdirectory(qtimer)
diff --git a/tests/auto/corelib/kernel/CMakeLists.txt b/tests/auto/corelib/kernel/CMakeLists.txt
index 9fbe2b8b7a..c72018db6c 100644
--- a/tests/auto/corelib/kernel/CMakeLists.txt
+++ b/tests/auto/corelib/kernel/CMakeLists.txt
@@ -17,11 +17,11 @@ add_subdirectory(qmetaenum)
if(TARGET Qt::Gui)
add_subdirectory(qmimedata)
endif()
-if(TARGET Qt::Network AND NOT ANDROID AND NOT APPLE_UIKIT)
+if(TARGET Qt::Network AND NOT ANDROID AND NOT UIKIT)
# add_subdirectory(qobject) # special case
endif()
add_subdirectory(qpointer)
-if(QT_FEATURE_private_tests AND NOT ANDROID AND NOT APPLE_UIKIT)
+if(QT_FEATURE_private_tests AND NOT ANDROID AND NOT UIKIT)
add_subdirectory(qsharedmemory)
endif()
add_subdirectory(qsignalblocker)
@@ -29,7 +29,7 @@ add_subdirectory(qsignalmapper)
if(QT_FEATURE_private_tests AND TARGET Qt::Network)
add_subdirectory(qsocketnotifier)
endif()
-if(QT_FEATURE_systemsemaphore AND NOT ANDROID AND NOT APPLE_UIKIT)
+if(QT_FEATURE_systemsemaphore AND NOT ANDROID AND NOT UIKIT)
add_subdirectory(qsystemsemaphore)
endif()
# add_subdirectory(qtimer) # special case
diff --git a/tests/auto/corelib/plugin/qpluginloader/CMakeLists.txt b/tests/auto/corelib/plugin/qpluginloader/CMakeLists.txt
index bdee0f0f6c..a051bb3ea6 100644
--- a/tests/auto/corelib/plugin/qpluginloader/CMakeLists.txt
+++ b/tests/auto/corelib/plugin/qpluginloader/CMakeLists.txt
@@ -7,6 +7,6 @@ add_subdirectory(tst)
if(UNIX AND NOT ANDROID AND NOT APPLE)
add_subdirectory(almostplugin)
endif()
-if(APPLE_MACOS AND QT_FEATURE_private_tests AND TARGET Qt::Gui)
+if(MACOS AND QT_FEATURE_private_tests AND TARGET Qt::Gui)
add_subdirectory(machtest)
endif()
diff --git a/tests/auto/gui/.prev_CMakeLists.txt b/tests/auto/gui/.prev_CMakeLists.txt
index 8cbfa78aad..e7317e932c 100644
--- a/tests/auto/gui/.prev_CMakeLists.txt
+++ b/tests/auto/gui/.prev_CMakeLists.txt
@@ -1,7 +1,7 @@
# Generated from gui.pro.
add_subdirectory(kernel)
-if(NOT APPLE_UIKIT)
+if(NOT UIKIT)
add_subdirectory(image)
add_subdirectory(math3d)
add_subdirectory(painting)
@@ -10,10 +10,10 @@ if(NOT APPLE_UIKIT)
add_subdirectory(itemmodels)
add_subdirectory(rhi)
endif()
-if(QT_FEATURE_opengl AND NOT APPLE_UIKIT AND NOT WINRT)
+if(QT_FEATURE_opengl AND NOT UIKIT AND NOT WINRT)
add_subdirectory(qopenglconfig)
add_subdirectory(qopengl)
endif()
-if(QT_FEATURE_vulkan AND NOT APPLE_UIKIT)
+if(QT_FEATURE_vulkan AND NOT UIKIT)
add_subdirectory(qvulkan)
endif()
diff --git a/tests/auto/gui/CMakeLists.txt b/tests/auto/gui/CMakeLists.txt
index 9a1312bd48..e9c9ffe9fe 100644
--- a/tests/auto/gui/CMakeLists.txt
+++ b/tests/auto/gui/CMakeLists.txt
@@ -1,7 +1,7 @@
# Generated from gui.pro.
add_subdirectory(kernel)
-if(NOT APPLE_UIKIT)
+if(NOT UIKIT)
add_subdirectory(image)
add_subdirectory(math3d)
add_subdirectory(painting)
@@ -10,10 +10,10 @@ if(NOT APPLE_UIKIT)
add_subdirectory(itemmodels)
add_subdirectory(rhi)
endif()
-if(QT_FEATURE_opengl AND NOT APPLE_UIKIT AND NOT WINRT)
+if(QT_FEATURE_opengl AND NOT UIKIT AND NOT WINRT)
add_subdirectory(qopenglconfig)
add_subdirectory(qopengl)
endif()
-if(QT_FEATURE_vulkan AND NOT APPLE_UIKIT)
+if(QT_FEATURE_vulkan AND NOT UIKIT)
add_subdirectory(qvulkan)
endif()
diff --git a/tests/auto/gui/kernel/CMakeLists.txt b/tests/auto/gui/kernel/CMakeLists.txt
index b2397bed19..ecac48d1c1 100644
--- a/tests/auto/gui/kernel/CMakeLists.txt
+++ b/tests/auto/gui/kernel/CMakeLists.txt
@@ -20,7 +20,7 @@ add_subdirectory(qwindow)
add_subdirectory(qguiapplication)
add_subdirectory(qpixelformat)
add_subdirectory(qrasterwindow)
-if(NOT ANDROID AND NOT APPLE_UIKIT)
+if(NOT ANDROID AND NOT UIKIT)
add_subdirectory(qclipboard)
endif()
if(TARGET Qt::Network)
diff --git a/tests/auto/gui/kernel/qclipboard/test/.prev_CMakeLists.txt b/tests/auto/gui/kernel/qclipboard/test/.prev_CMakeLists.txt
index d75f39da58..36d9f7b00c 100644
--- a/tests/auto/gui/kernel/qclipboard/test/.prev_CMakeLists.txt
+++ b/tests/auto/gui/kernel/qclipboard/test/.prev_CMakeLists.txt
@@ -15,7 +15,7 @@ add_qt_test(tst_qclipboard
## Scopes:
#####################################################################
-extend_target(tst_qclipboard CONDITION APPLE_MACOS
+extend_target(tst_qclipboard CONDITION MACOS
PUBLIC_LIBRARIES
${FWAppKit}
)
diff --git a/tests/auto/gui/kernel/qclipboard/test/CMakeLists.txt b/tests/auto/gui/kernel/qclipboard/test/CMakeLists.txt
index d75f39da58..36d9f7b00c 100644
--- a/tests/auto/gui/kernel/qclipboard/test/CMakeLists.txt
+++ b/tests/auto/gui/kernel/qclipboard/test/CMakeLists.txt
@@ -15,7 +15,7 @@ add_qt_test(tst_qclipboard
## Scopes:
#####################################################################
-extend_target(tst_qclipboard CONDITION APPLE_MACOS
+extend_target(tst_qclipboard CONDITION MACOS
PUBLIC_LIBRARIES
${FWAppKit}
)
diff --git a/tests/auto/network/kernel/CMakeLists.txt b/tests/auto/network/kernel/CMakeLists.txt
index 49270d11cb..6ce3fcdf32 100644
--- a/tests/auto/network/kernel/CMakeLists.txt
+++ b/tests/auto/network/kernel/CMakeLists.txt
@@ -13,7 +13,7 @@ endif()
if(QT_FEATURE_private_tests)
add_subdirectory(qauthenticator)
- if(NOT APPLE_MACOS)
+ if(NOT MACOS)
add_subdirectory(qhostinfo)
endif()
endif()
diff --git a/tests/auto/other/CMakeLists.txt b/tests/auto/other/CMakeLists.txt
index 2ce438985f..88a29b479b 100644
--- a/tests/auto/other/CMakeLists.txt
+++ b/tests/auto/other/CMakeLists.txt
@@ -15,7 +15,7 @@ if(TARGET Qt::Network AND TARGET Qt::Widgets AND NOT WINRT)
add_subdirectory(lancelot)
add_subdirectory(qnetworkaccessmanager_and_qprogressdialog)
endif()
-if(APPLE_MACOS AND TARGET Qt::Gui AND TARGET Qt::Widgets)
+if(MACOS AND TARGET Qt::Gui AND TARGET Qt::Widgets)
add_subdirectory(macgui)
add_subdirectory(macplist)
add_subdirectory(qaccessibilitymac)
@@ -35,7 +35,7 @@ endif()
if(TARGET Qt::Network AND NOT WINRT)
add_subdirectory(networkselftest)
endif()
-if(APPLE_MACOS AND TARGET Qt::Gui)
+if(MACOS AND TARGET Qt::Gui)
add_subdirectory(macnativeevents)
endif()
if(embedded)
diff --git a/tests/auto/other/macgui/.prev_CMakeLists.txt b/tests/auto/other/macgui/.prev_CMakeLists.txt
index f0374b644e..1ae468c40e 100644
--- a/tests/auto/other/macgui/.prev_CMakeLists.txt
+++ b/tests/auto/other/macgui/.prev_CMakeLists.txt
@@ -26,7 +26,7 @@ add_qt_test(tst_macgui
## Scopes:
#####################################################################
-extend_target(tst_macgui CONDITION APPLE_MACOS
+extend_target(tst_macgui CONDITION MACOS
PUBLIC_LIBRARIES
${FWApplicationServices}
)
diff --git a/tests/auto/other/macgui/CMakeLists.txt b/tests/auto/other/macgui/CMakeLists.txt
index a85b845536..4a5aa0aaef 100644
--- a/tests/auto/other/macgui/CMakeLists.txt
+++ b/tests/auto/other/macgui/CMakeLists.txt
@@ -26,7 +26,7 @@ add_qt_test(tst_macgui
## Scopes:
#####################################################################
-extend_target(tst_macgui CONDITION APPLE_MACOS
+extend_target(tst_macgui CONDITION MACOS
PUBLIC_LIBRARIES
${FWApplicationServices}
)
diff --git a/tests/auto/widgets/dialogs/qfilesystemmodel/CMakeLists.txt b/tests/auto/widgets/dialogs/qfilesystemmodel/CMakeLists.txt
index 09dbc428ec..346e2a7d5a 100644
--- a/tests/auto/widgets/dialogs/qfilesystemmodel/CMakeLists.txt
+++ b/tests/auto/widgets/dialogs/qfilesystemmodel/CMakeLists.txt
@@ -23,5 +23,5 @@ add_qt_test(tst_qfilesystemmodel
#### Keys ignored in scope 2:.:.:qfilesystemmodel.pro:WIN32:
# testcase.timeout = "900"
-#### Keys ignored in scope 3:.:.:qfilesystemmodel.pro:APPLE_MACOS:
+#### Keys ignored in scope 3:.:.:qfilesystemmodel.pro:MACOS:
# testcase.timeout = "900"
diff --git a/tests/auto/widgets/styles/CMakeLists.txt b/tests/auto/widgets/styles/CMakeLists.txt
index 73bbbeb4ee..4ded7b9d80 100644
--- a/tests/auto/widgets/styles/CMakeLists.txt
+++ b/tests/auto/widgets/styles/CMakeLists.txt
@@ -1,10 +1,10 @@
# Generated from styles.pro.
-if (APPLE_MACOS)
+if (MACOS)
add_subdirectory(qmacstyle)
endif()
add_subdirectory(qstyle)
-if (NOT APPLE_UIKIT AND NOT ANDROID AND NOT QNX)
+if (NOT UIKIT AND NOT ANDROID AND NOT QNX)
add_subdirectory(qstyleoption)
endif()
if (QT_FEATURE_private_tests)
diff --git a/tests/auto/widgets/widgets/qlineedit/CMakeLists.txt b/tests/auto/widgets/widgets/qlineedit/CMakeLists.txt
index 7be44863c6..615a5a98cb 100644
--- a/tests/auto/widgets/widgets/qlineedit/CMakeLists.txt
+++ b/tests/auto/widgets/widgets/qlineedit/CMakeLists.txt
@@ -19,7 +19,7 @@ add_qt_test(tst_qlineedit
## Scopes:
#####################################################################
-extend_target(tst_qlineedit CONDITION APPLE_MACOS
+extend_target(tst_qlineedit CONDITION MACOS
PUBLIC_LIBRARIES
${FWAppKit}
)
diff --git a/tests/auto/widgets/widgets/qmenu/CMakeLists.txt b/tests/auto/widgets/widgets/qmenu/CMakeLists.txt
index 711d360993..63037b7eaa 100644
--- a/tests/auto/widgets/widgets/qmenu/CMakeLists.txt
+++ b/tests/auto/widgets/widgets/qmenu/CMakeLists.txt
@@ -17,14 +17,14 @@ add_qt_test(tst_qmenu
## Scopes:
#####################################################################
-extend_target(tst_qmenu CONDITION APPLE_MACOS
+extend_target(tst_qmenu CONDITION MACOS
SOURCES
tst_qmenu_mac.mm
PUBLIC_LIBRARIES
objc
)
-extend_target(tst_qmenu CONDITION NOT APPLE_MACOS
+extend_target(tst_qmenu CONDITION NOT MACOS
DEFINES
QTEST_QPA_MOUSE_HANDLING
)
diff --git a/tests/auto/widgets/widgets/qmenubar/CMakeLists.txt b/tests/auto/widgets/widgets/qmenubar/CMakeLists.txt
index 0bfb6ac12d..415f2aa79f 100644
--- a/tests/auto/widgets/widgets/qmenubar/CMakeLists.txt
+++ b/tests/auto/widgets/widgets/qmenubar/CMakeLists.txt
@@ -16,7 +16,7 @@ add_qt_test(tst_qmenubar
## Scopes:
#####################################################################
-extend_target(tst_qmenubar CONDITION APPLE_MACOS
+extend_target(tst_qmenubar CONDITION MACOS
SOURCES
tst_qmenubar_mac.mm
PUBLIC_LIBRARIES
diff --git a/tests/auto/widgets/widgets/qplaintextedit/CMakeLists.txt b/tests/auto/widgets/widgets/qplaintextedit/CMakeLists.txt
index 6e3ffec498..cb00d5dd93 100644
--- a/tests/auto/widgets/widgets/qplaintextedit/CMakeLists.txt
+++ b/tests/auto/widgets/widgets/qplaintextedit/CMakeLists.txt
@@ -19,7 +19,7 @@ add_qt_test(tst_qplaintextedit
## Scopes:
#####################################################################
-extend_target(tst_qplaintextedit CONDITION APPLE_MACOS
+extend_target(tst_qplaintextedit CONDITION MACOS
PUBLIC_LIBRARIES
${FWAppKit}
)
diff --git a/tests/auto/widgets/widgets/qtextedit/CMakeLists.txt b/tests/auto/widgets/widgets/qtextedit/CMakeLists.txt
index 4a67320a31..719acd8dbc 100644
--- a/tests/auto/widgets/widgets/qtextedit/CMakeLists.txt
+++ b/tests/auto/widgets/widgets/qtextedit/CMakeLists.txt
@@ -22,7 +22,7 @@ add_qt_test(tst_qtextedit
## Scopes:
#####################################################################
-extend_target(tst_qtextedit CONDITION APPLE_MACOS
+extend_target(tst_qtextedit CONDITION MACOS
PUBLIC_LIBRARIES
${FWAppKit}
)
diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt
index d7b45a1d22..20a810a8c1 100644
--- a/tests/manual/CMakeLists.txt
+++ b/tests/manual/CMakeLists.txt
@@ -2,7 +2,7 @@
# special case begn
# Don't build manual tests when targeting iOS.
-if(APPLE_UIKIT)
+if(UIKIT)
return()
endif()
# special case end
diff --git a/util/cmake/condition_simplifier.py b/util/cmake/condition_simplifier.py
index 13686df1eb..e6588a7cc7 100644
--- a/util/cmake/condition_simplifier.py
+++ b/util/cmake/condition_simplifier.py
@@ -106,7 +106,7 @@ def _recursive_simplify(expr):
# Simplify even further, based on domain knowledge:
# windowses = ('WIN32', 'WINRT')
- apples = ("APPLE_MACOS", "APPLE_UIKIT", "APPLE_IOS", "APPLE_TVOS", "APPLE_WATCHOS")
+ apples = ("MACOS", "UIKIT", "IOS", "TVOS", "WATCHOS")
bsds = ("FREEBSD", "OPENBSD", "NETBSD")
androids = ("ANDROID", "ANDROID_EMBEDDED")
unixes = (
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index cabf1e41e0..64ab5b749c 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -807,9 +807,9 @@ def get_feature_mapping():
# special case to disable implicit feature on WIN32, until ANGLE is ported
"opengl-dynamic": {"autoDetect": "OFF"},
"opengles2": { # special case to disable implicit feature on WIN32, until ANGLE is ported
- "condition": "NOT WIN32 AND ( NOT APPLE_WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND )"
+ "condition": "NOT WIN32 AND ( NOT WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND )"
},
- "simulator_and_device": {"condition": "APPLE_UIKIT AND NOT QT_UIKIT_SDK"},
+ "simulator_and_device": {"condition": "UIKIT AND NOT QT_UIKIT_SDK"},
"pkg-config": None,
"posix_fallocate": None, # Only needed for sqlite, which we do not want to build
"posix-libiconv": {
diff --git a/util/cmake/helper.py b/util/cmake/helper.py
index 606aa337e9..00adc940f1 100644
--- a/util/cmake/helper.py
+++ b/util/cmake/helper.py
@@ -657,9 +657,9 @@ platform_mapping = {
"nacl": "NACL",
"android": "ANDROID",
"android-embedded": "ANDROID_EMBEDDED",
- "uikit": "APPLE_UIKIT",
- "tvos": "APPLE_TVOS",
- "watchos": "APPLE_WATCHOS",
+ "uikit": "UIKIT",
+ "tvos": "TVOS",
+ "watchos": "WATCHOS",
"winrt": "WINRT",
"wasm": "WASM",
"emscripten": "EMSCRIPTEN",
@@ -668,17 +668,17 @@ platform_mapping = {
"gcc": "GCC",
"icc": "ICC",
"intel_icc": "ICC",
- "osx": "APPLE_MACOS",
- "ios": "APPLE_IOS",
+ "osx": "MACOS",
+ "ios": "IOS",
"freebsd": "FREEBSD",
"openbsd": "OPENBSD",
"netbsd": "NETBSD",
"haiku": "HAIKU",
"netbsd": "NETBSD",
"mac": "APPLE",
- "macx": "APPLE_MACOS",
- "macos": "APPLE_MACOS",
- "macx-icc": "(APPLE_MACOS AND ICC)",
+ "macx": "MACOS",
+ "macos": "MACOS",
+ "macx-icc": "(MACOS AND ICC)",
}
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index ac6008f7dc..a50c7fe2bd 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1444,7 +1444,7 @@ def map_condition(condition: str) -> str:
condition = re.sub(r"^no-png$", r"NOT QT_FEATURE_png", condition)
condition = re.sub(r"contains\(CONFIG, static\)", r"NOT QT_BUILD_SHARED_LIBS", condition)
condition = re.sub(r"contains\(QT_CONFIG,\w*shared\)", r"QT_BUILD_SHARED_LIBS", condition)
- condition = re.sub(r"CONFIG\(osx\)", r"APPLE_MACOS", condition)
+ condition = re.sub(r"CONFIG\(osx\)", r"MACOS", condition)
def gcc_version_handler(match_obj: Match):
operator = match_obj.group(1)
diff --git a/util/cmake/tests/test_logic_mapping.py b/util/cmake/tests/test_logic_mapping.py
index 96feb3e615..6e4fd20590 100755
--- a/util/cmake/tests/test_logic_mapping.py
+++ b/util/cmake/tests/test_logic_mapping.py
@@ -116,42 +116,42 @@ def test_simplify_unix_and_win32_or_foobar_or_barfoo():
def test_simplify_watchos_and_win32():
- validate_simplify('APPLE_WATCHOS AND WIN32', 'OFF')
+ validate_simplify('WATCHOS AND WIN32', 'OFF')
def test_simplify_win32_and_watchos():
- validate_simplify('WIN32 AND APPLE_WATCHOS', 'OFF')
+ validate_simplify('WIN32 AND WATCHOS', 'OFF')
def test_simplify_apple_and_appleosx():
- validate_simplify('APPLE AND APPLE_MACOS', 'APPLE_MACOS')
+ validate_simplify('APPLE AND MACOS', 'MACOS')
def test_simplify_apple_or_appleosx():
- validate_simplify('APPLE OR APPLE_MACOS', 'APPLE')
+ validate_simplify('APPLE OR MACOS', 'APPLE')
def test_simplify_apple_or_appleosx_level1():
- validate_simplify('foobar AND (APPLE OR APPLE_MACOS )', 'APPLE AND foobar')
+ validate_simplify('foobar AND (APPLE OR MACOS )', 'APPLE AND foobar')
def test_simplify_apple_or_appleosx_level1_double():
- validate_simplify('foobar AND (APPLE OR APPLE_MACOS )', 'APPLE AND foobar')
+ validate_simplify('foobar AND (APPLE OR MACOS )', 'APPLE AND foobar')
def test_simplify_apple_or_appleosx_level1_double_with_extra_spaces():
- validate_simplify('foobar AND (APPLE OR APPLE_MACOS ) '
- 'AND ( APPLE_MACOS OR APPLE )', 'APPLE AND foobar')
+ validate_simplify('foobar AND (APPLE OR MACOS ) '
+ 'AND ( MACOS OR APPLE )', 'APPLE AND foobar')
def test_simplify_apple_or_appleosx_level2():
- validate_simplify('foobar AND ( ( APPLE OR APPLE_WATCHOS ) '
- 'OR APPLE_MACOS ) AND ( APPLE_MACOS OR APPLE ) '
+ validate_simplify('foobar AND ( ( APPLE OR WATCHOS ) '
+ 'OR MACOS ) AND ( MACOS OR APPLE ) '
'AND ( (WIN32 OR WINRT) OR UNIX) ', 'APPLE AND foobar')
def test_simplify_not_apple_and_appleosx():
- validate_simplify('NOT APPLE AND APPLE_MACOS', 'OFF')
+ validate_simplify('NOT APPLE AND MACOS', 'OFF')
def test_simplify_unix_and_bar_or_win32():
@@ -182,5 +182,5 @@ def test_simplify_complex_false():
def test_simplify_android_not_apple():
- validate_simplify('ANDROID AND NOT ANDROID_EMBEDDED AND NOT APPLE_MACOS',
+ validate_simplify('ANDROID AND NOT ANDROID_EMBEDDED AND NOT MACOS',
'ANDROID AND NOT ANDROID_EMBEDDED')
diff --git a/util/cmake/tests/test_scope_handling.py b/util/cmake/tests/test_scope_handling.py
index ecb0ae06cf..51e569fb09 100755
--- a/util/cmake/tests/test_scope_handling.py
+++ b/util/cmake/tests/test_scope_handling.py
@@ -305,7 +305,7 @@ def test_qstandardpaths_scopes():
scope6 = _new_scope(parent_scope=scope5, condition='UNIX')
# mac {
# OBJECTIVE_SOURCES += io/qstandardpaths_mac.mm
- scope7 = _new_scope(parent_scope=scope6, condition='APPLE_MACOS', SOURCES='qsp_mac.mm')
+ scope7 = _new_scope(parent_scope=scope6, condition='MACOS', SOURCES='qsp_mac.mm')
# } else:android:!android-embedded {
# SOURCES += io/qstandardpaths_android.cpp
scope8 = _new_scope(parent_scope=scope6, condition='else')
@@ -330,12 +330,12 @@ def test_qstandardpaths_scopes():
assert scope4.total_condition == 'WINRT'
assert scope5.total_condition == 'UNIX'
assert scope6.total_condition == 'UNIX'
- assert scope7.total_condition == 'APPLE_MACOS'
- assert scope8.total_condition == 'UNIX AND NOT APPLE_MACOS'
+ assert scope7.total_condition == 'MACOS'
+ assert scope8.total_condition == 'UNIX AND NOT MACOS'
assert scope9.total_condition == 'ANDROID AND NOT ANDROID_EMBEDDED'
- assert scope10.total_condition == 'UNIX AND NOT APPLE_MACOS AND (ANDROID_EMBEDDED OR NOT ANDROID)'
+ assert scope10.total_condition == 'UNIX AND NOT MACOS AND (ANDROID_EMBEDDED OR NOT ANDROID)'
assert scope11.total_condition == 'HAIKU AND (ANDROID_EMBEDDED OR NOT ANDROID)'
- assert scope12.total_condition == 'UNIX AND NOT APPLE_MACOS AND NOT HAIKU AND (ANDROID_EMBEDDED OR NOT ANDROID)'
+ assert scope12.total_condition == 'UNIX AND NOT MACOS AND NOT HAIKU AND (ANDROID_EMBEDDED OR NOT ANDROID)'
def test_recursive_expansion():
scope = _new_scope(A='Foo',B='$$A/Bar')