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>
This commit is contained in:
Tor Arne Vestbø 2020-03-16 13:36:47 +01:00
parent db745fdd2d
commit 77885f8402
77 changed files with 188 additions and 188 deletions

View File

@ -19,7 +19,7 @@ if(NOT QT_BUILD_STANDALONE_TESTS)
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/3rdparty/kwin" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/3rdparty/kwin"
) )
if(APPLE_MACOS) if(MACOS)
# Add module directory to pick up custom Info.plist template # Add module directory to pick up custom Info.plist template
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos")
endif() endif()

View File

@ -54,9 +54,9 @@ find_package_handle_standard_args(GLESv2 DEFAULT_MSG ${package_args})
mark_as_advanced(${package_args}) mark_as_advanced(${package_args})
if(GLESv2_FOUND AND NOT TARGET GLESv2::GLESv2) if(GLESv2_FOUND AND NOT TARGET GLESv2::GLESv2)
if(EMSCRIPTEN OR APPLE_UIKIT) if(EMSCRIPTEN OR UIKIT)
add_library(GLESv2::GLESv2 INTERFACE IMPORTED) 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 # 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 # it's specific to either the device or the simulator. Resort to passing a link
# flag instead. # flag instead.

View File

@ -95,7 +95,7 @@ list(APPEND init_platform "set(CMAKE_C_COMPILER \"${CMAKE_C_COMPILER}\" CACHE ST
if(APPLE) if(APPLE)
# For simulator_and_device build, we should not explicitly set the sysroot. # For simulator_and_device build, we should not explicitly set the sysroot.
list(LENGTH CMAKE_OSX_ARCHITECTURES _qt_osx_architectures_count) 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 \"\")") list(APPEND init_platform "set(CMAKE_OSX_SYSROOT \"${CMAKE_OSX_SYSROOT}\" CACHE PATH \"\")")
endif() endif()
unset(_qt_osx_architectures_count) unset(_qt_osx_architectures_count)
@ -105,7 +105,7 @@ if(APPLE)
"set(CMAKE_OSX_DEPLOYMENT_TARGET \"${CMAKE_OSX_DEPLOYMENT_TARGET}\" CACHE STRING \"\")") "set(CMAKE_OSX_DEPLOYMENT_TARGET \"${CMAKE_OSX_DEPLOYMENT_TARGET}\" CACHE STRING \"\")")
endif() endif()
if(APPLE_UIKIT) if(UIKIT)
list(APPEND init_platform list(APPEND init_platform
"set(CMAKE_SYSTEM_NAME \"${CMAKE_SYSTEM_NAME}\" CACHE STRING \"\")") "set(CMAKE_SYSTEM_NAME \"${CMAKE_SYSTEM_NAME}\" CACHE STRING \"\")")
set(_qt_osx_architectures_escaped "${CMAKE_OSX_ARCHITECTURES}") 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 # Do what mkspecs/features/uikit/default_pre.prf does, aka enable sse2 for
# simulator_and_device_builds. # 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 set(__QtFeature_custom_enabled_cache_variables
TEST_subarch_sse2 TEST_subarch_sse2
FEATURE_sse2 FEATURE_sse2
@ -267,7 +267,7 @@ qt_copy_or_install(DIRECTORY cmake/
PATTERN "3rdparty" EXCLUDE PATTERN "3rdparty" EXCLUDE
) )
if(APPLE_MACOS) if(MACOS)
qt_copy_or_install(FILES qt_copy_or_install(FILES
cmake/macos/MacOSXBundleInfo.plist.in cmake/macos/MacOSXBundleInfo.plist.in
DESTINATION "${__GlobalConfig_install_dir}/macos" DESTINATION "${__GlobalConfig_install_dir}/macos"

View File

@ -62,7 +62,7 @@ if(GCC OR CLANG)
set(QT_CFLAGS_AVX512VBMI "-mavx512vbmi") set(QT_CFLAGS_AVX512VBMI "-mavx512vbmi")
set(QT_CFLAGS_AESNI "-maes") set(QT_CFLAGS_AESNI "-maes")
set(QT_CFLAGS_SHANI "-msha") 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") set(QT_CFLAGS_NEON "-mfpu=neon")
endif() endif()
set(QT_CFLAGS_MIPS_DSP "-mdsp") set(QT_CFLAGS_MIPS_DSP "-mdsp")

View File

@ -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/extra-cmake-modules/find-modules")
list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}/3rdparty/kwin") 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 # Add module directory to pick up custom Info.plist template
list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}/macos") list(APPEND CMAKE_MODULE_PATH "${_qt_import_prefix}/macos")
endif() endif()

View File

@ -722,7 +722,7 @@ function(qt_get_platform_try_compile_vars out_var)
endforeach() endforeach()
# Pass darwin specific options. # Pass darwin specific options.
if(APPLE_UIKIT) if(UIKIT)
if(CMAKE_OSX_ARCHITECTURES) if(CMAKE_OSX_ARCHITECTURES)
list(GET CMAKE_OSX_ARCHITECTURES 0 osx_first_arch) list(GET CMAKE_OSX_ARCHITECTURES 0 osx_first_arch)

View File

@ -99,13 +99,13 @@ endif()
target_compile_definitions(PlatformCommonInternal INTERFACE $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>) target_compile_definitions(PlatformCommonInternal INTERFACE $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>)
if(APPLE_MACOS) if(MACOS)
target_compile_definitions(PlatformCommonInternal INTERFACE GL_SILENCE_DEPRECATION) target_compile_definitions(PlatformCommonInternal INTERFACE GL_SILENCE_DEPRECATION)
elseif(APPLE_UIKIT) elseif(UIKIT)
target_compile_definitions(PlatformCommonInternal INTERFACE GLES_SILENCE_DEPRECATION) target_compile_definitions(PlatformCommonInternal INTERFACE GLES_SILENCE_DEPRECATION)
endif() endif()
if(APPLE_UIKIT) if(UIKIT)
# Do what mkspecs/features/uikit/default_pre.prf does, aka enable sse2 for # Do what mkspecs/features/uikit/default_pre.prf does, aka enable sse2 for
# simulator_and_device_builds. # simulator_and_device_builds.
if(FEATURE_simulator_and_device) if(FEATURE_simulator_and_device)

View File

@ -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(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(IOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "iOS")
qt_set01(APPLE_TVOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "tvOS") qt_set01(TVOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "tvOS")
qt_set01(APPLE_WATCHOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "watchOS") qt_set01(WATCHOS APPLE AND CMAKE_SYSTEM_NAME STREQUAL "watchOS")
qt_set01(APPLE_UIKIT APPLE AND (APPLE_IOS OR APPLE_TVOS OR APPLE_WATCHOS)) qt_set01(UIKIT APPLE AND (IOS OR TVOS OR WATCHOS))
qt_set01(APPLE_MACOS APPLE AND NOT APPLE_UIKIT) qt_set01(MACOS APPLE AND NOT UIKIT)
qt_set01(GCC CMAKE_CXX_COMPILER_ID STREQUAL "GNU") qt_set01(GCC CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
qt_set01(CLANG CMAKE_CXX_COMPILER_ID MATCHES "Clang") qt_set01(CLANG CMAKE_CXX_COMPILER_ID MATCHES "Clang")

View File

@ -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 # 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. # tends to fail. Disable them by default when targeting uikit.
if(APPLE_UIKIT OR ANDROID) if(UIKIT OR ANDROID)
set(QT_BUILD_TESTING OFF) set(QT_BUILD_TESTING OFF)
endif() endif()
@ -129,7 +129,7 @@ enable_testing()
set(QT_BUILD_EXAMPLES ON) set(QT_BUILD_EXAMPLES ON)
# Examples are not built by default with qmake for iOS and friends, and thus the overall build # 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. # tends to fail. Disable them by default when targeting uikit.
if(APPLE_UIKIT OR ANDROID) if(UIKIT OR ANDROID)
set(QT_BUILD_EXAMPLES OFF) set(QT_BUILD_EXAMPLES OFF)
endif() endif()

View File

@ -318,7 +318,7 @@ qt_feature("android-style-assets" PRIVATE
) )
qt_feature("shared" PUBLIC qt_feature("shared" PUBLIC
LABEL "Building shared libraries" LABEL "Building shared libraries"
AUTODETECT NOT APPLE_UIKIT AUTODETECT NOT UIKIT
CONDITION BUILD_SHARED_LIBS CONDITION BUILD_SHARED_LIBS
) )
qt_feature_config("shared" QMAKE_PUBLIC_QT_CONFIG) 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 qt_feature("appstore-compliant" PUBLIC
LABEL "App store compliance" LABEL "App store compliance"
PURPOSE "Disables code that is not allowed in platform app stores" 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 qt_feature("simulator_and_device" PUBLIC
LABEL "Build for both simulator and device" 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_config("simulator_and_device" QMAKE_PUBLIC_QT_CONFIG)
qt_feature("force_asserts" PUBLIC 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_definition("concurrent" "QT_NO_CONCURRENT" NEGATE VALUE "1")
qt_feature("dbus" PUBLIC PRIVATE qt_feature("dbus" PUBLIC PRIVATE
LABEL "Qt D-Bus" 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 CONDITION QT_FEATURE_thread
) )
qt_feature_definition("dbus" "QT_NO_DBUS" NEGATE VALUE "1") qt_feature_definition("dbus" "QT_NO_DBUS" NEGATE VALUE "1")
@ -712,7 +712,7 @@ qt_feature("testlib" PRIVATE
) )
qt_feature("widgets" PRIVATE qt_feature("widgets" PRIVATE
LABEL "Qt Widgets" LABEL "Qt Widgets"
AUTODETECT NOT APPLE_TVOS AND NOT APPLE_WATCHOS AUTODETECT NOT TVOS AND NOT WATCHOS
CONDITION QT_FEATURE_gui CONDITION QT_FEATURE_gui
) )
qt_feature_definition("widgets" "QT_NO_WIDGETS" NEGATE) qt_feature_definition("widgets" "QT_NO_WIDGETS" NEGATE)
@ -868,7 +868,7 @@ qt_configure_add_report_entry(
qt_configure_add_report_entry( qt_configure_add_report_entry(
TYPE ERROR TYPE ERROR
MESSAGE "Debug build wihtout Release build is not currently supported on ios see QTBUG-71990. Use -debug-and-release." 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( qt_configure_add_report_entry(
TYPE WARNING TYPE WARNING

View File

@ -28,6 +28,6 @@ if(QT_FEATURE_cursor) # special case
add_subdirectory(mainwindows) add_subdirectory(mainwindows)
endif() endif()
if(APPLE_MACOS) if(MACOS)
add_subdirectory(mac) add_subdirectory(mac)
endif() endif()

View File

@ -1,7 +1,7 @@
# Generated from mac.pro. # Generated from mac.pro.
if(APPLE_MACOS) if(MACOS)
add_subdirectory(qmaccocoaviewcontainer) add_subdirectory(qmaccocoaviewcontainer)
add_subdirectory(qmacnativewidget) add_subdirectory(qmacnativewidget)
endif() endif()

View File

@ -162,7 +162,7 @@ qt_extend_target(qmake CONDITION UNIX
qlocale_unix.cpp-NOTFOUND qlocale_unix.cpp-NOTFOUND
) )
qt_extend_target(qmake CONDITION APPLE_MACOS qt_extend_target(qmake CONDITION MACOS
SOURCES SOURCES
qcore_foundation.mm qcore_foundation.mm
qcore_mac.cpp qcore_mac.cpp

View File

@ -165,7 +165,7 @@ qt_extend_target(qmake CONDITION UNIX
../src/corelib/text/qlocale_unix.cpp ../src/corelib/text/qlocale_unix.cpp
) )
qt_extend_target(qmake CONDITION APPLE_MACOS qt_extend_target(qmake CONDITION MACOS
SOURCES SOURCES
../src/corelib/kernel/qcore_foundation.mm # special case ../src/corelib/kernel/qcore_foundation.mm # special case
../src/corelib/kernel/qcore_mac.cpp # special case ../src/corelib/kernel/qcore_mac.cpp # special case

View File

@ -158,13 +158,13 @@ qt_extend_target(BundledHarfbuzz CONDITION SHAPERS___contains___opentype
HAVE_OT HAVE_OT
) )
qt_extend_target(BundledHarfbuzz CONDITION APPLE_UIKIT qt_extend_target(BundledHarfbuzz CONDITION UIKIT
LIBRARIES LIBRARIES
${FWCoreGraphics} ${FWCoreGraphics}
${FWCoreText} ${FWCoreText}
) )
qt_extend_target(BundledHarfbuzz CONDITION APPLE AND NOT APPLE_UIKIT qt_extend_target(BundledHarfbuzz CONDITION APPLE AND NOT UIKIT
LIBRARIES LIBRARIES
${FWApplicationServices} ${FWApplicationServices}
) )

View File

@ -159,13 +159,13 @@ qt_extend_target(BundledHarfbuzz CONDITION TRUE # special case
HAVE_OT HAVE_OT
) )
qt_extend_target(BundledHarfbuzz CONDITION APPLE_UIKIT qt_extend_target(BundledHarfbuzz CONDITION UIKIT
LIBRARIES LIBRARIES
${FWCoreGraphics} ${FWCoreGraphics}
${FWCoreText} ${FWCoreText}
) )
qt_extend_target(BundledHarfbuzz CONDITION APPLE AND NOT APPLE_UIKIT qt_extend_target(BundledHarfbuzz CONDITION APPLE AND NOT UIKIT
LIBRARIES LIBRARIES
${FWApplicationServices} ${FWApplicationServices}
) )
@ -175,4 +175,4 @@ qt_extend_target(BundledHarfbuzz CONDITION SHAPERS_ISEMPTY OR SHAPERS___contains
src/hb-fallback-shape.cc src/hb-fallback-shape.cc
DEFINES DEFINES
HAVE_FALLBACK HAVE_FALLBACK
) )

View File

@ -56,7 +56,7 @@ qt_extend_target(BundledPcre2 CONDITION WIN32
PCRE2_STATIC PCRE2_STATIC
) )
qt_extend_target(BundledPcre2 CONDITION APPLE_UIKIT OR QNX OR WINRT qt_extend_target(BundledPcre2 CONDITION UIKIT OR QNX OR WINRT
DEFINES DEFINES
PCRE2_DISABLE_JIT PCRE2_DISABLE_JIT
) )

View File

@ -398,7 +398,7 @@ qt_extend_target(Core CONDITION APPLE
${FWFoundation} ${FWFoundation}
) )
qt_extend_target(Core CONDITION APPLE_MACOS qt_extend_target(Core CONDITION MACOS
LIBRARIES LIBRARIES
${FWAppKit} ${FWAppKit}
${FWApplicationServices} ${FWApplicationServices}
@ -658,7 +658,7 @@ qt_extend_target(Core CONDITION QT_FEATURE_easingcurve
tools/qtimeline.cpp tools/qtimeline.h 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 LIBRARIES
m m
) )
@ -692,12 +692,12 @@ qt_extend_target(Core CONDITION WIN32 AND NOT QT_FEATURE_icu
text/qcollator_win.cpp 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 SOURCES
text/qcollator_macx.cpp 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 SOURCES
text/qcollator_posix.cpp 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 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 SOURCES
io/qfilesystemwatcher_fsevents.mm io/qfilesystemwatcher_fsevents_p.h 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 SOURCES
io/qfilesystemwatcher_inotify.cpp io/qfilesystemwatcher_inotify_p.h 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 SOURCES
io/qfilesystemwatcher_kqueue.cpp io/qfilesystemwatcher_kqueue_p.h 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 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 PUBLIC_LIBRARIES
${FWMobileCoreServices} ${FWMobileCoreServices}
) )
@ -946,12 +946,12 @@ qt_extend_target(Core CONDITION QT_FEATURE_dlopen AND QT_FEATURE_library
${CMAKE_DL_LIBS} ${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 LIBRARIES
${FWUIKit} ${FWUIKit}
) )
qt_extend_target(Core CONDITION APPLE_WATCHOS qt_extend_target(Core CONDITION WATCHOS
LIBRARIES LIBRARIES
${FWWatchKit} ${FWWatchKit}
) )

View File

@ -508,7 +508,7 @@ qt_extend_target(Core CONDITION APPLE
${FWFoundation} ${FWFoundation}
) )
qt_extend_target(Core CONDITION APPLE_MACOS qt_extend_target(Core CONDITION MACOS
LIBRARIES LIBRARIES
${FWAppKit} ${FWAppKit}
${FWApplicationServices} ${FWApplicationServices}
@ -761,7 +761,7 @@ qt_extend_target(Core CONDITION QT_FEATURE_easingcurve
tools/qtimeline.cpp tools/qtimeline.h 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 LIBRARIES
m m
) )
@ -795,12 +795,12 @@ qt_extend_target(Core CONDITION WIN32 AND NOT QT_FEATURE_icu
text/qcollator_win.cpp 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 SOURCES
text/qcollator_macx.cpp 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 SOURCES
text/qcollator_posix.cpp 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 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 SOURCES
io/qfilesystemwatcher_fsevents.mm io/qfilesystemwatcher_fsevents_p.h 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 SOURCES
io/qfilesystemwatcher_inotify.cpp io/qfilesystemwatcher_inotify_p.h 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 SOURCES
io/qfilesystemwatcher_kqueue.cpp io/qfilesystemwatcher_kqueue_p.h 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 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 PUBLIC_LIBRARIES
${FWMobileCoreServices} ${FWMobileCoreServices}
) )
@ -1049,12 +1049,12 @@ qt_extend_target(Core CONDITION QT_FEATURE_dlopen AND QT_FEATURE_library
${CMAKE_DL_LIBS} ${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 LIBRARIES
${FWUIKit} ${FWUIKit}
) )
qt_extend_target(Core CONDITION APPLE_WATCHOS qt_extend_target(Core CONDITION WATCHOS
LIBRARIES LIBRARIES
${FWWatchKit} ${FWWatchKit}
) )

View File

@ -782,7 +782,7 @@ qt_feature("process" PUBLIC
SECTION "File I/O" SECTION "File I/O"
LABEL "QProcess" LABEL "QProcess"
PURPOSE "Supports external process invocation." 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_definition("process" "QT_NO_PROCESS" NEGATE VALUE "1")
qt_feature("processenvironment" PUBLIC qt_feature("processenvironment" PUBLIC

View File

@ -273,7 +273,7 @@ qt_extend_target(Gui CONDITION QT_FEATURE_opengl
#### Keys ignored in scope 3:.:.:gui.pro:QT_FEATURE_angle: #### Keys ignored in scope 3:.:.:gui.pro:QT_FEATURE_angle:
# MODULE_AUX_INCLUDES = "\$\$QT_MODULE_INCLUDE_BASE/QtANGLE" # MODULE_AUX_INCLUDES = "\$\$QT_MODULE_INCLUDE_BASE/QtANGLE"
qt_extend_target(Gui CONDITION APPLE_MACOS qt_extend_target(Gui CONDITION MACOS
LIBRARIES LIBRARIES
${FWAppKit} ${FWAppKit}
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
@ -517,12 +517,12 @@ qt_extend_target(Gui CONDITION QT_FEATURE_cssparser
text/qcssparser.cpp text/qcssparser_p.h 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 DEFINES
ENABLE_PIXMAN_DRAWHELPERS 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 qt_add_simd_part(Gui SIMD neon
SOURCES SOURCES
../3rdparty/pixman/pixman-arm-neon-asm.S ../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 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 SOURCES
rhi/qrhimetal.mm rhi/qrhimetal_p.h rhi/qrhimetal.mm rhi/qrhimetal_p.h
rhi/qrhimetal_p_p.h rhi/qrhimetal_p_p.h

View File

@ -18,11 +18,11 @@ if (QT_FEATURE_gui)
set(_default_platform "windows") set(_default_platform "windows")
elseif(ANDROID) elseif(ANDROID)
set(_default_platform "android") set(_default_platform "android")
elseif(APPLE_MACOS) elseif(MACOS)
set(_default_platform "cocoa") set(_default_platform "cocoa")
elseif(APPLE_TVOS OR APPLE_IOS) elseif(TVOS OR IOS)
set(_default_platform "ios") set(_default_platform "ios")
elseif(APPLE_WATCHOS) elseif(WATCHOS)
set(_default_platform "minimal") set(_default_platform "minimal")
elseif(QNX) elseif(QNX)
set(_default_platform "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: #### Keys ignored in scope 3:.:.:gui.pro:QT_FEATURE_angle:
# MODULE_AUX_INCLUDES = "\$\$QT_MODULE_INCLUDE_BASE/QtANGLE" # MODULE_AUX_INCLUDES = "\$\$QT_MODULE_INCLUDE_BASE/QtANGLE"
qt_extend_target(Gui CONDITION APPLE_MACOS qt_extend_target(Gui CONDITION MACOS
LIBRARIES LIBRARIES
${FWAppKit} ${FWAppKit}
PUBLIC_LIBRARIES 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 # Replicate what src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro does, which is link CoreText
# when targeting uikit. # 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 LIBRARIES
${FWCoreText} ${FWCoreText}
) )
@ -622,12 +622,12 @@ qt_extend_target(Gui CONDITION QT_FEATURE_cssparser
text/qcssparser.cpp text/qcssparser_p.h 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 DEFINES
ENABLE_PIXMAN_DRAWHELPERS 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 qt_add_simd_part(Gui SIMD neon
SOURCES SOURCES
../3rdparty/pixman/pixman-arm-neon-asm.S ../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 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 SOURCES
rhi/qrhimetal.mm rhi/qrhimetal_p.h rhi/qrhimetal.mm rhi/qrhimetal_p.h
rhi/qrhimetal_p_p.h rhi/qrhimetal_p_p.h

View File

@ -706,7 +706,7 @@ qt_feature("mtdev" PRIVATE
) )
qt_feature("opengles2" PUBLIC qt_feature("opengles2" PUBLIC
LABEL "OpenGL ES 2.0" 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' 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' 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_definition("opengles32" "QT_OPENGL_ES_3_2")
qt_feature("opengl-desktop" qt_feature("opengl-desktop"
LABEL "Desktop OpenGL" 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' ENABLE INPUT_opengl STREQUAL 'desktop'
DISABLE INPUT_opengl STREQUAL 'es2' OR INPUT_opengl STREQUAL 'dynamic' OR INPUT_opengl STREQUAL 'no' 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( qt_configure_add_report_entry(
TYPE ERROR 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." 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( qt_configure_add_report_entry(
TYPE WARNING TYPE WARNING

View File

@ -231,25 +231,25 @@ qt_extend_target(Network CONDITION QT_FEATURE_dnslookup AND WINRT
kernel/qdnslookup_winrt.cpp kernel/qdnslookup_winrt.cpp
) )
qt_extend_target(Network CONDITION APPLE AND NOT APPLE_UIKIT qt_extend_target(Network CONDITION APPLE AND NOT UIKIT
LIBRARIES LIBRARIES
${FWCoreServices} ${FWCoreServices}
${FWSystemConfiguration} ${FWSystemConfiguration}
) )
qt_extend_target(Network CONDITION APPLE_IOS OR APPLE_MACOS qt_extend_target(Network CONDITION IOS OR MACOS
SOURCES SOURCES
kernel/qnetconmonitor_darwin.mm kernel/qnetconmonitor_darwin.mm
LIBRARIES LIBRARIES
${FWSystemConfiguration} ${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 SOURCES
kernel/qnetconmonitor_win.cpp 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 SOURCES
kernel/qnetconmonitor_stub.cpp kernel/qnetconmonitor_stub.cpp
) )
@ -259,17 +259,17 @@ qt_extend_target(Network CONDITION QT_FEATURE_gssapi
GSSAPI::GSSAPI GSSAPI::GSSAPI
) )
qt_extend_target(Network CONDITION APPLE_UIKIT qt_extend_target(Network CONDITION UIKIT
SOURCES SOURCES
kernel/qnetworkinterface_uikit_p.h kernel/qnetworkinterface_uikit_p.h
) )
qt_extend_target(Network CONDITION APPLE_MACOS qt_extend_target(Network CONDITION MACOS
SOURCES SOURCES
kernel/qnetworkproxy_mac.cpp 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 SOURCES
kernel/qnetworkproxy_libproxy.cpp kernel/qnetworkproxy_libproxy.cpp
LIBRARIES LIBRARIES
@ -277,7 +277,7 @@ qt_extend_target(Network CONDITION QT_FEATURE_libproxy AND NOT APPLE_MACOS AND (
PkgConfig::Libproxy 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 SOURCES
kernel/qnetworkproxy_generic.cpp kernel/qnetworkproxy_generic.cpp
) )

View File

@ -231,25 +231,25 @@ qt_extend_target(Network CONDITION QT_FEATURE_dnslookup AND WINRT
kernel/qdnslookup_winrt.cpp kernel/qdnslookup_winrt.cpp
) )
qt_extend_target(Network CONDITION APPLE AND NOT APPLE_UIKIT qt_extend_target(Network CONDITION APPLE AND NOT UIKIT
LIBRARIES LIBRARIES
${FWCoreServices} ${FWCoreServices}
${FWSystemConfiguration} ${FWSystemConfiguration}
) )
qt_extend_target(Network CONDITION APPLE_IOS OR APPLE_MACOS qt_extend_target(Network CONDITION IOS OR MACOS
SOURCES SOURCES
kernel/qnetconmonitor_darwin.mm kernel/qnetconmonitor_darwin.mm
LIBRARIES LIBRARIES
${FWSystemConfiguration} ${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 SOURCES
kernel/qnetconmonitor_win.cpp 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 SOURCES
kernel/qnetconmonitor_stub.cpp kernel/qnetconmonitor_stub.cpp
) )
@ -259,17 +259,17 @@ qt_extend_target(Network CONDITION QT_FEATURE_gssapi
GSSAPI::GSSAPI GSSAPI::GSSAPI
) )
qt_extend_target(Network CONDITION APPLE_UIKIT qt_extend_target(Network CONDITION UIKIT
SOURCES SOURCES
kernel/qnetworkinterface_uikit_p.h kernel/qnetworkinterface_uikit_p.h
) )
qt_extend_target(Network CONDITION APPLE_MACOS qt_extend_target(Network CONDITION MACOS
SOURCES SOURCES
kernel/qnetworkproxy_mac.cpp 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 SOURCES
kernel/qnetworkproxy_libproxy.cpp kernel/qnetworkproxy_libproxy.cpp
LIBRARIES LIBRARIES
@ -277,7 +277,7 @@ qt_extend_target(Network CONDITION QT_FEATURE_libproxy AND NOT APPLE_MACOS AND (
PkgConfig::Libproxy 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 SOURCES
kernel/qnetworkproxy_generic.cpp kernel/qnetworkproxy_generic.cpp
) )

View File

@ -16,7 +16,7 @@ endif()
if(QT_FEATURE_evdev OR QT_FEATURE_integrityhid OR QT_FEATURE_libinput OR QT_FEATURE_tslib) if(QT_FEATURE_evdev OR QT_FEATURE_integrityhid OR QT_FEATURE_libinput OR QT_FEATURE_tslib)
add_subdirectory(input) add_subdirectory(input)
endif() endif()
if(QT_FEATURE_xcb OR (UNIX AND NOT APPLE_UIKIT)) if(QT_FEATURE_xcb OR (UNIX AND NOT UIKIT))
add_subdirectory(services) add_subdirectory(services)
endif() endif()
if(QT_FEATURE_opengl) if(QT_FEATURE_opengl)

View File

@ -23,7 +23,7 @@ qt_add_module(ClipboardSupport
## Scopes: ## Scopes:
##################################################################### #####################################################################
qt_extend_target(ClipboardSupport CONDITION APPLE_MACOS qt_extend_target(ClipboardSupport CONDITION MACOS
LIBRARIES LIBRARIES
${FWAppKit} ${FWAppKit}
) )

View File

@ -33,12 +33,12 @@ qt_extend_target(FontDatabaseSupport CONDITION APPLE
${FWFoundation} ${FWFoundation}
) )
qt_extend_target(FontDatabaseSupport CONDITION APPLE_MACOS qt_extend_target(FontDatabaseSupport CONDITION MACOS
LIBRARIES LIBRARIES
${FWAppKit} ${FWAppKit}
) )
qt_extend_target(FontDatabaseSupport CONDITION APPLE AND NOT APPLE_MACOS qt_extend_target(FontDatabaseSupport CONDITION APPLE AND NOT MACOS
LIBRARIES LIBRARIES
${FWUIKit} ${FWUIKit}
) )

View File

@ -36,12 +36,12 @@ qt_extend_target(FontDatabaseSupport CONDITION APPLE
${FWFoundation} ${FWFoundation}
) )
qt_extend_target(FontDatabaseSupport CONDITION APPLE_MACOS qt_extend_target(FontDatabaseSupport CONDITION MACOS
LIBRARIES LIBRARIES
${FWAppKit} ${FWAppKit}
) )
qt_extend_target(FontDatabaseSupport CONDITION APPLE AND NOT APPLE_MACOS qt_extend_target(FontDatabaseSupport CONDITION APPLE AND NOT MACOS
LIBRARIES LIBRARIES
${FWUIKit} ${FWUIKit}
) )

View File

@ -22,12 +22,12 @@ qt_add_module(ThemeSupport
## Scopes: ## 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 SOURCES
genericunix/qgenericunixthemes.cpp genericunix/qgenericunixthemes_p.h 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 SOURCES
genericunix/dbusmenu/qdbusmenuadaptor.cpp genericunix/dbusmenu/qdbusmenuadaptor_p.h genericunix/dbusmenu/qdbusmenuadaptor.cpp genericunix/dbusmenu/qdbusmenuadaptor_p.h
genericunix/dbusmenu/qdbusmenubar.cpp genericunix/dbusmenu/qdbusmenubar_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::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 SOURCES
genericunix/dbustray/qdbustrayicon.cpp genericunix/dbustray/qdbustrayicon_p.h genericunix/dbustray/qdbustrayicon.cpp genericunix/dbustray/qdbustrayicon_p.h
genericunix/dbustray/qdbustraytypes.cpp genericunix/dbustray/qdbustraytypes_p.h genericunix/dbustray/qdbustraytypes.cpp genericunix/dbustray/qdbustraytypes_p.h

View File

@ -3,6 +3,6 @@
if(QT_FEATURE_xkbcommon) if(QT_FEATURE_xkbcommon)
add_subdirectory(compose) add_subdirectory(compose)
endif() 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) add_subdirectory(ibus)
endif() endif()

View File

@ -12,10 +12,10 @@ endif()
if(QT_FEATURE_xcb) if(QT_FEATURE_xcb)
add_subdirectory(xcb) add_subdirectory(xcb)
endif() endif()
if(APPLE_UIKIT AND NOT APPLE_WATCHOS) if(UIKIT AND NOT WATCHOS)
add_subdirectory(ios) add_subdirectory(ios)
endif() endif()
if(APPLE_MACOS) if(MACOS)
add_subdirectory(cocoa) add_subdirectory(cocoa)
endif() endif()
if(QT_FEATURE_direct3d9 AND WIN32 AND NOT WINRT) if(QT_FEATURE_direct3d9 AND WIN32 AND NOT WINRT)

View File

@ -12,10 +12,10 @@ endif()
if(QT_FEATURE_xcb) if(QT_FEATURE_xcb)
add_subdirectory(xcb) add_subdirectory(xcb)
endif() endif()
if(APPLE_UIKIT AND NOT APPLE_WATCHOS) if(UIKIT AND NOT WATCHOS)
add_subdirectory(ios) add_subdirectory(ios)
endif() endif()
if(APPLE_MACOS) if(MACOS)
add_subdirectory(cocoa) add_subdirectory(cocoa)
endif() endif()
if(WIN32 AND NOT WINRT) # special case TODO fix direct3d9 test if(WIN32 AND NOT WINRT) # special case TODO fix direct3d9 test

View File

@ -49,7 +49,7 @@ extend_target(QIOSIntegrationPlugin CONDITION TARGET Qt::PlatformCompositorSuppo
Qt::PlatformCompositorSupportPrivate Qt::PlatformCompositorSupportPrivate
) )
extend_target(QIOSIntegrationPlugin CONDITION NOT APPLE_TVOS extend_target(QIOSIntegrationPlugin CONDITION NOT TVOS
SOURCES SOURCES
qiosclipboard.h qiosclipboard.mm qiosclipboard.h qiosclipboard.mm
qiosfiledialog.h qiosfiledialog.mm qiosfiledialog.h qiosfiledialog.mm

View File

@ -49,7 +49,7 @@ extend_target(QIOSIntegrationPlugin CONDITION TARGET Qt::PlatformCompositorSuppo
Qt::PlatformCompositorSupportPrivate Qt::PlatformCompositorSupportPrivate
) )
extend_target(QIOSIntegrationPlugin CONDITION NOT APPLE_TVOS extend_target(QIOSIntegrationPlugin CONDITION NOT TVOS
SOURCES SOURCES
qiosclipboard.h qiosclipboard.mm qiosclipboard.h qiosclipboard.mm
qiosfiledialog.h qiosfiledialog.mm qiosfiledialog.h qiosfiledialog.mm

View File

@ -1,5 +1,5 @@
# Generated from optional.pro. # Generated from optional.pro.
if(APPLE_IOS) if(IOS)
add_subdirectory(nsphotolibrarysupport) add_subdirectory(nsphotolibrarysupport)
endif() endif()

View File

@ -1,6 +1,6 @@
# Generated from printsupport.pro. # Generated from printsupport.pro.
if(APPLE_MACOS) if(MACOS)
add_subdirectory(cocoa) add_subdirectory(cocoa)
endif() endif()
if(WIN32) if(WIN32)

View File

@ -1,6 +1,6 @@
# Generated from printsupport.pro. # Generated from printsupport.pro.
if(APPLE_MACOS) if(MACOS)
add_subdirectory(cocoa) add_subdirectory(cocoa)
endif() endif()
if(WIN32) if(WIN32)

View File

@ -143,7 +143,7 @@ if(QT_FEATURE_printdialog)
) )
endif() endif()
qt_extend_target(PrintSupport CONDITION APPLE_MACOS AND QT_FEATURE_printdialog qt_extend_target(PrintSupport CONDITION MACOS AND QT_FEATURE_printdialog
SOURCES SOURCES
dialogs/qpagesetupdialog_mac.mm dialogs/qpagesetupdialog_mac.mm
dialogs/qprintdialog_mac.mm dialogs/qprintdialog_mac.mm

View File

@ -32,7 +32,7 @@ qt_feature("printer" PUBLIC
SECTION "Painting" SECTION "Painting"
LABEL "QPrinter" LABEL "QPrinter"
PURPOSE "Provides a printer backend of QPainter." 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_definition("printer" "QT_NO_PRINTER" NEGATE VALUE "1")
qt_feature("printpreviewwidget" PUBLIC qt_feature("printpreviewwidget" PUBLIC

View File

@ -101,7 +101,7 @@ qt_extend_target(Test CONDITION APPLE
${FWSecurity} ${FWSecurity}
) )
qt_extend_target(Test CONDITION APPLE_MACOS qt_extend_target(Test CONDITION MACOS
SOURCES SOURCES
qtestutil_macos.mm qtestutil_macos_p.h qtestutil_macos.mm qtestutil_macos_p.h
PUBLIC_LIBRARIES PUBLIC_LIBRARIES

View File

@ -99,7 +99,7 @@ qt_extend_target(Test CONDITION APPLE
${FWSecurity} ${FWSecurity}
) )
qt_extend_target(Test CONDITION APPLE_MACOS qt_extend_target(Test CONDITION MACOS
SOURCES SOURCES
qtestutil_macos.mm qtestutil_macos_p.h qtestutil_macos.mm qtestutil_macos_p.h
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
@ -111,8 +111,8 @@ qt_extend_target(Test CONDITION APPLE_MACOS
# special case begin # special case begin
# Do not bother with disabled stuff: # 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 (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"))) AND (NOT QMAKE_MAC_SDK_PLATFORM_PATH_ISEMPTY) ...
# special case end # special case end
#### Keys ignored in scope 9:.:.:testlib.pro:NOT QMAKE_MAC_SDK_PLATFORM_PATH_ISEMPTY: #### Keys ignored in scope 9:.:.:testlib.pro:NOT QMAKE_MAC_SDK_PLATFORM_PATH_ISEMPTY:

View File

@ -174,19 +174,19 @@ qt_extend_target(Bootstrap CONDITION APPLE
${FWFoundation} ${FWFoundation}
) )
qt_extend_target(Bootstrap CONDITION APPLE_MACOS qt_extend_target(Bootstrap CONDITION MACOS
SOURCES SOURCES
../../corelib/io/qstandardpaths_mac.mm ../../corelib/io/qstandardpaths_mac.mm
LIBRARIES LIBRARIES
${FWCoreServices} ${FWCoreServices}
) )
qt_extend_target(Bootstrap CONDITION APPLE_UIKIT qt_extend_target(Bootstrap CONDITION UIKIT
LIBRARIES LIBRARIES
${FWUIKit} ${FWUIKit}
) )
qt_extend_target(Bootstrap CONDITION UNIX AND NOT APPLE_MACOS qt_extend_target(Bootstrap CONDITION UNIX AND NOT MACOS
SOURCES SOURCES
../../corelib/io/qstandardpaths_unix.cpp ../../corelib/io/qstandardpaths_unix.cpp
) )

View File

@ -174,19 +174,19 @@ qt_extend_target(Bootstrap CONDITION APPLE
${FWFoundation} ${FWFoundation}
) )
qt_extend_target(Bootstrap CONDITION APPLE_MACOS qt_extend_target(Bootstrap CONDITION MACOS
SOURCES SOURCES
../../corelib/io/qstandardpaths_mac.mm ../../corelib/io/qstandardpaths_mac.mm
LIBRARIES LIBRARIES
${FWCoreServices} ${FWCoreServices}
) )
qt_extend_target(Bootstrap CONDITION APPLE_UIKIT qt_extend_target(Bootstrap CONDITION UIKIT
LIBRARIES LIBRARIES
${FWUIKit} ${FWUIKit}
) )
qt_extend_target(Bootstrap CONDITION UNIX AND NOT APPLE_MACOS qt_extend_target(Bootstrap CONDITION UNIX AND NOT MACOS
SOURCES SOURCES
../../corelib/io/qstandardpaths_unix.cpp ../../corelib/io/qstandardpaths_unix.cpp
) )

View File

@ -296,7 +296,7 @@ qt_extend_target(Widgets CONDITION MSVC AND (TEST_architecture_arch STREQUAL "i3
"/BASE:0x65000000" "/BASE:0x65000000"
) )
qt_extend_target(Widgets CONDITION APPLE_MACOS qt_extend_target(Widgets CONDITION MACOS
SOURCES SOURCES
kernel/qmacgesturerecognizer.cpp kernel/qmacgesturerecognizer_p.h kernel/qmacgesturerecognizer.cpp kernel/qmacgesturerecognizer_p.h
widgets/qmaccocoaviewcontainer_mac.h widgets/qmaccocoaviewcontainer_mac.mm 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 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 SOURCES
widgets/qmenu_mac.mm widgets/qmenu_mac.mm
) )

View File

@ -298,7 +298,7 @@ qt_extend_target(Widgets CONDITION MSVC AND (TEST_architecture_arch STREQUAL "i3
"/BASE:0x65000000" "/BASE:0x65000000"
) )
qt_extend_target(Widgets CONDITION APPLE_MACOS qt_extend_target(Widgets CONDITION MACOS
SOURCES SOURCES
kernel/qmacgesturerecognizer.cpp kernel/qmacgesturerecognizer_p.h kernel/qmacgesturerecognizer.cpp kernel/qmacgesturerecognizer_p.h
widgets/qmaccocoaviewcontainer_mac.h widgets/qmaccocoaviewcontainer_mac.mm 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 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 SOURCES
widgets/qmenu_mac.mm widgets/qmenu_mac.mm
) )

View File

@ -25,7 +25,7 @@ qt_feature("style-fusion" PRIVATE
) )
qt_feature("style-mac" PRIVATE qt_feature("style-mac" PRIVATE
LABEL "macOS" LABEL "macOS"
CONDITION APPLE_MACOS AND QT_FEATURE_animation CONDITION MACOS AND QT_FEATURE_animation
) )
qt_feature("style-windows" PRIVATE qt_feature("style-windows" PRIVATE
LABEL "Windows" LABEL "Windows"

View File

@ -31,7 +31,7 @@ endif()
# special case begin # special case begin
# Build only corelib and gui tests when targeting uikit (iOS), # Build only corelib and gui tests when targeting uikit (iOS),
# because the script can't handle the SUBDIRS assignment well. # because the script can't handle the SUBDIRS assignment well.
if (APPLE_UIKIT) if (UIKIT)
return() return()
endif() endif()
# special case end # special case end

View File

@ -1,7 +1,7 @@
# Generated from corelib.pro. # Generated from corelib.pro.
add_subdirectory(kernel) add_subdirectory(kernel)
if(NOT APPLE_UIKIT) if(NOT UIKIT)
add_subdirectory(animation) add_subdirectory(animation)
add_subdirectory(codecs) add_subdirectory(codecs)
add_subdirectory(global) add_subdirectory(global)

View File

@ -1,7 +1,7 @@
# Generated from corelib.pro. # Generated from corelib.pro.
add_subdirectory(kernel) add_subdirectory(kernel)
if(NOT APPLE_UIKIT) if(NOT UIKIT)
add_subdirectory(animation) add_subdirectory(animation)
add_subdirectory(codecs) add_subdirectory(codecs)
add_subdirectory(global) add_subdirectory(global)

View File

@ -37,7 +37,7 @@ add_qt_resource(tst_qdir "qdir"
## Scopes: ## Scopes:
##################################################################### #####################################################################
#### Keys ignored in scope 2:.:.:qdir.pro:APPLE_IOS: #### Keys ignored in scope 2:.:.:qdir.pro:IOS:
# QMAKE_INFO_PLIST = "Info.plist" # QMAKE_INFO_PLIST = "Info.plist"
extend_target(tst_qdir CONDITION CONFIG___contains___builtin_testdata extend_target(tst_qdir CONDITION CONFIG___contains___builtin_testdata

View File

@ -17,11 +17,11 @@ add_subdirectory(qmetaenum)
if(TARGET Qt::Gui) if(TARGET Qt::Gui)
add_subdirectory(qmimedata) add_subdirectory(qmimedata)
endif() 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) add_subdirectory(qobject)
endif() endif()
add_subdirectory(qpointer) 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) add_subdirectory(qsharedmemory)
endif() endif()
add_subdirectory(qsignalblocker) add_subdirectory(qsignalblocker)
@ -29,7 +29,7 @@ add_subdirectory(qsignalmapper)
if(QT_FEATURE_private_tests AND TARGET Qt::Network) if(QT_FEATURE_private_tests AND TARGET Qt::Network)
add_subdirectory(qsocketnotifier) add_subdirectory(qsocketnotifier)
endif() 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) add_subdirectory(qsystemsemaphore)
endif() endif()
add_subdirectory(qtimer) add_subdirectory(qtimer)

View File

@ -17,11 +17,11 @@ add_subdirectory(qmetaenum)
if(TARGET Qt::Gui) if(TARGET Qt::Gui)
add_subdirectory(qmimedata) add_subdirectory(qmimedata)
endif() 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 # add_subdirectory(qobject) # special case
endif() endif()
add_subdirectory(qpointer) 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) add_subdirectory(qsharedmemory)
endif() endif()
add_subdirectory(qsignalblocker) add_subdirectory(qsignalblocker)
@ -29,7 +29,7 @@ add_subdirectory(qsignalmapper)
if(QT_FEATURE_private_tests AND TARGET Qt::Network) if(QT_FEATURE_private_tests AND TARGET Qt::Network)
add_subdirectory(qsocketnotifier) add_subdirectory(qsocketnotifier)
endif() 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) add_subdirectory(qsystemsemaphore)
endif() endif()
# add_subdirectory(qtimer) # special case # add_subdirectory(qtimer) # special case

View File

@ -7,6 +7,6 @@ add_subdirectory(tst)
if(UNIX AND NOT ANDROID AND NOT APPLE) if(UNIX AND NOT ANDROID AND NOT APPLE)
add_subdirectory(almostplugin) add_subdirectory(almostplugin)
endif() 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) add_subdirectory(machtest)
endif() endif()

View File

@ -1,7 +1,7 @@
# Generated from gui.pro. # Generated from gui.pro.
add_subdirectory(kernel) add_subdirectory(kernel)
if(NOT APPLE_UIKIT) if(NOT UIKIT)
add_subdirectory(image) add_subdirectory(image)
add_subdirectory(math3d) add_subdirectory(math3d)
add_subdirectory(painting) add_subdirectory(painting)
@ -10,10 +10,10 @@ if(NOT APPLE_UIKIT)
add_subdirectory(itemmodels) add_subdirectory(itemmodels)
add_subdirectory(rhi) add_subdirectory(rhi)
endif() 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(qopenglconfig)
add_subdirectory(qopengl) add_subdirectory(qopengl)
endif() endif()
if(QT_FEATURE_vulkan AND NOT APPLE_UIKIT) if(QT_FEATURE_vulkan AND NOT UIKIT)
add_subdirectory(qvulkan) add_subdirectory(qvulkan)
endif() endif()

View File

@ -1,7 +1,7 @@
# Generated from gui.pro. # Generated from gui.pro.
add_subdirectory(kernel) add_subdirectory(kernel)
if(NOT APPLE_UIKIT) if(NOT UIKIT)
add_subdirectory(image) add_subdirectory(image)
add_subdirectory(math3d) add_subdirectory(math3d)
add_subdirectory(painting) add_subdirectory(painting)
@ -10,10 +10,10 @@ if(NOT APPLE_UIKIT)
add_subdirectory(itemmodels) add_subdirectory(itemmodels)
add_subdirectory(rhi) add_subdirectory(rhi)
endif() 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(qopenglconfig)
add_subdirectory(qopengl) add_subdirectory(qopengl)
endif() endif()
if(QT_FEATURE_vulkan AND NOT APPLE_UIKIT) if(QT_FEATURE_vulkan AND NOT UIKIT)
add_subdirectory(qvulkan) add_subdirectory(qvulkan)
endif() endif()

View File

@ -20,7 +20,7 @@ add_subdirectory(qwindow)
add_subdirectory(qguiapplication) add_subdirectory(qguiapplication)
add_subdirectory(qpixelformat) add_subdirectory(qpixelformat)
add_subdirectory(qrasterwindow) add_subdirectory(qrasterwindow)
if(NOT ANDROID AND NOT APPLE_UIKIT) if(NOT ANDROID AND NOT UIKIT)
add_subdirectory(qclipboard) add_subdirectory(qclipboard)
endif() endif()
if(TARGET Qt::Network) if(TARGET Qt::Network)

View File

@ -15,7 +15,7 @@ add_qt_test(tst_qclipboard
## Scopes: ## Scopes:
##################################################################### #####################################################################
extend_target(tst_qclipboard CONDITION APPLE_MACOS extend_target(tst_qclipboard CONDITION MACOS
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
${FWAppKit} ${FWAppKit}
) )

View File

@ -15,7 +15,7 @@ add_qt_test(tst_qclipboard
## Scopes: ## Scopes:
##################################################################### #####################################################################
extend_target(tst_qclipboard CONDITION APPLE_MACOS extend_target(tst_qclipboard CONDITION MACOS
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
${FWAppKit} ${FWAppKit}
) )

View File

@ -13,7 +13,7 @@ endif()
if(QT_FEATURE_private_tests) if(QT_FEATURE_private_tests)
add_subdirectory(qauthenticator) add_subdirectory(qauthenticator)
if(NOT APPLE_MACOS) if(NOT MACOS)
add_subdirectory(qhostinfo) add_subdirectory(qhostinfo)
endif() endif()
endif() endif()

View File

@ -15,7 +15,7 @@ if(TARGET Qt::Network AND TARGET Qt::Widgets AND NOT WINRT)
add_subdirectory(lancelot) add_subdirectory(lancelot)
add_subdirectory(qnetworkaccessmanager_and_qprogressdialog) add_subdirectory(qnetworkaccessmanager_and_qprogressdialog)
endif() 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(macgui)
add_subdirectory(macplist) add_subdirectory(macplist)
add_subdirectory(qaccessibilitymac) add_subdirectory(qaccessibilitymac)
@ -35,7 +35,7 @@ endif()
if(TARGET Qt::Network AND NOT WINRT) if(TARGET Qt::Network AND NOT WINRT)
add_subdirectory(networkselftest) add_subdirectory(networkselftest)
endif() endif()
if(APPLE_MACOS AND TARGET Qt::Gui) if(MACOS AND TARGET Qt::Gui)
add_subdirectory(macnativeevents) add_subdirectory(macnativeevents)
endif() endif()
if(embedded) if(embedded)

View File

@ -26,7 +26,7 @@ add_qt_test(tst_macgui
## Scopes: ## Scopes:
##################################################################### #####################################################################
extend_target(tst_macgui CONDITION APPLE_MACOS extend_target(tst_macgui CONDITION MACOS
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
${FWApplicationServices} ${FWApplicationServices}
) )

View File

@ -26,7 +26,7 @@ add_qt_test(tst_macgui
## Scopes: ## Scopes:
##################################################################### #####################################################################
extend_target(tst_macgui CONDITION APPLE_MACOS extend_target(tst_macgui CONDITION MACOS
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
${FWApplicationServices} ${FWApplicationServices}
) )

View File

@ -23,5 +23,5 @@ add_qt_test(tst_qfilesystemmodel
#### Keys ignored in scope 2:.:.:qfilesystemmodel.pro:WIN32: #### Keys ignored in scope 2:.:.:qfilesystemmodel.pro:WIN32:
# testcase.timeout = "900" # testcase.timeout = "900"
#### Keys ignored in scope 3:.:.:qfilesystemmodel.pro:APPLE_MACOS: #### Keys ignored in scope 3:.:.:qfilesystemmodel.pro:MACOS:
# testcase.timeout = "900" # testcase.timeout = "900"

View File

@ -1,10 +1,10 @@
# Generated from styles.pro. # Generated from styles.pro.
if (APPLE_MACOS) if (MACOS)
add_subdirectory(qmacstyle) add_subdirectory(qmacstyle)
endif() endif()
add_subdirectory(qstyle) 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) add_subdirectory(qstyleoption)
endif() endif()
if (QT_FEATURE_private_tests) if (QT_FEATURE_private_tests)

View File

@ -19,7 +19,7 @@ add_qt_test(tst_qlineedit
## Scopes: ## Scopes:
##################################################################### #####################################################################
extend_target(tst_qlineedit CONDITION APPLE_MACOS extend_target(tst_qlineedit CONDITION MACOS
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
${FWAppKit} ${FWAppKit}
) )

View File

@ -17,14 +17,14 @@ add_qt_test(tst_qmenu
## Scopes: ## Scopes:
##################################################################### #####################################################################
extend_target(tst_qmenu CONDITION APPLE_MACOS extend_target(tst_qmenu CONDITION MACOS
SOURCES SOURCES
tst_qmenu_mac.mm tst_qmenu_mac.mm
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
objc objc
) )
extend_target(tst_qmenu CONDITION NOT APPLE_MACOS extend_target(tst_qmenu CONDITION NOT MACOS
DEFINES DEFINES
QTEST_QPA_MOUSE_HANDLING QTEST_QPA_MOUSE_HANDLING
) )

View File

@ -16,7 +16,7 @@ add_qt_test(tst_qmenubar
## Scopes: ## Scopes:
##################################################################### #####################################################################
extend_target(tst_qmenubar CONDITION APPLE_MACOS extend_target(tst_qmenubar CONDITION MACOS
SOURCES SOURCES
tst_qmenubar_mac.mm tst_qmenubar_mac.mm
PUBLIC_LIBRARIES PUBLIC_LIBRARIES

View File

@ -19,7 +19,7 @@ add_qt_test(tst_qplaintextedit
## Scopes: ## Scopes:
##################################################################### #####################################################################
extend_target(tst_qplaintextedit CONDITION APPLE_MACOS extend_target(tst_qplaintextedit CONDITION MACOS
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
${FWAppKit} ${FWAppKit}
) )

View File

@ -22,7 +22,7 @@ add_qt_test(tst_qtextedit
## Scopes: ## Scopes:
##################################################################### #####################################################################
extend_target(tst_qtextedit CONDITION APPLE_MACOS extend_target(tst_qtextedit CONDITION MACOS
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
${FWAppKit} ${FWAppKit}
) )

View File

@ -2,7 +2,7 @@
# special case begn # special case begn
# Don't build manual tests when targeting iOS. # Don't build manual tests when targeting iOS.
if(APPLE_UIKIT) if(UIKIT)
return() return()
endif() endif()
# special case end # special case end

View File

@ -106,7 +106,7 @@ def _recursive_simplify(expr):
# Simplify even further, based on domain knowledge: # Simplify even further, based on domain knowledge:
# windowses = ('WIN32', 'WINRT') # windowses = ('WIN32', 'WINRT')
apples = ("APPLE_MACOS", "APPLE_UIKIT", "APPLE_IOS", "APPLE_TVOS", "APPLE_WATCHOS") apples = ("MACOS", "UIKIT", "IOS", "TVOS", "WATCHOS")
bsds = ("FREEBSD", "OPENBSD", "NETBSD") bsds = ("FREEBSD", "OPENBSD", "NETBSD")
androids = ("ANDROID", "ANDROID_EMBEDDED") androids = ("ANDROID", "ANDROID_EMBEDDED")
unixes = ( unixes = (

View File

@ -807,9 +807,9 @@ def get_feature_mapping():
# special case to disable implicit feature on WIN32, until ANGLE is ported # special case to disable implicit feature on WIN32, until ANGLE is ported
"opengl-dynamic": {"autoDetect": "OFF"}, "opengl-dynamic": {"autoDetect": "OFF"},
"opengles2": { # special case to disable implicit feature on WIN32, until ANGLE is ported "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, "pkg-config": None,
"posix_fallocate": None, # Only needed for sqlite, which we do not want to build "posix_fallocate": None, # Only needed for sqlite, which we do not want to build
"posix-libiconv": { "posix-libiconv": {

View File

@ -657,9 +657,9 @@ platform_mapping = {
"nacl": "NACL", "nacl": "NACL",
"android": "ANDROID", "android": "ANDROID",
"android-embedded": "ANDROID_EMBEDDED", "android-embedded": "ANDROID_EMBEDDED",
"uikit": "APPLE_UIKIT", "uikit": "UIKIT",
"tvos": "APPLE_TVOS", "tvos": "TVOS",
"watchos": "APPLE_WATCHOS", "watchos": "WATCHOS",
"winrt": "WINRT", "winrt": "WINRT",
"wasm": "WASM", "wasm": "WASM",
"emscripten": "EMSCRIPTEN", "emscripten": "EMSCRIPTEN",
@ -668,17 +668,17 @@ platform_mapping = {
"gcc": "GCC", "gcc": "GCC",
"icc": "ICC", "icc": "ICC",
"intel_icc": "ICC", "intel_icc": "ICC",
"osx": "APPLE_MACOS", "osx": "MACOS",
"ios": "APPLE_IOS", "ios": "IOS",
"freebsd": "FREEBSD", "freebsd": "FREEBSD",
"openbsd": "OPENBSD", "openbsd": "OPENBSD",
"netbsd": "NETBSD", "netbsd": "NETBSD",
"haiku": "HAIKU", "haiku": "HAIKU",
"netbsd": "NETBSD", "netbsd": "NETBSD",
"mac": "APPLE", "mac": "APPLE",
"macx": "APPLE_MACOS", "macx": "MACOS",
"macos": "APPLE_MACOS", "macos": "MACOS",
"macx-icc": "(APPLE_MACOS AND ICC)", "macx-icc": "(MACOS AND ICC)",
} }

View File

@ -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"^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\(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"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): def gcc_version_handler(match_obj: Match):
operator = match_obj.group(1) operator = match_obj.group(1)

View File

@ -116,42 +116,42 @@ def test_simplify_unix_and_win32_or_foobar_or_barfoo():
def test_simplify_watchos_and_win32(): 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(): 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(): 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(): 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(): 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(): 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(): def test_simplify_apple_or_appleosx_level1_double_with_extra_spaces():
validate_simplify('foobar AND (APPLE OR APPLE_MACOS ) ' validate_simplify('foobar AND (APPLE OR MACOS ) '
'AND ( APPLE_MACOS OR APPLE )', 'APPLE AND foobar') 'AND ( MACOS OR APPLE )', 'APPLE AND foobar')
def test_simplify_apple_or_appleosx_level2(): def test_simplify_apple_or_appleosx_level2():
validate_simplify('foobar AND ( ( APPLE OR APPLE_WATCHOS ) ' validate_simplify('foobar AND ( ( APPLE OR WATCHOS ) '
'OR APPLE_MACOS ) AND ( APPLE_MACOS OR APPLE ) ' 'OR MACOS ) AND ( MACOS OR APPLE ) '
'AND ( (WIN32 OR WINRT) OR UNIX) ', 'APPLE AND foobar') 'AND ( (WIN32 OR WINRT) OR UNIX) ', 'APPLE AND foobar')
def test_simplify_not_apple_and_appleosx(): 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(): def test_simplify_unix_and_bar_or_win32():
@ -182,5 +182,5 @@ def test_simplify_complex_false():
def test_simplify_android_not_apple(): 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') 'ANDROID AND NOT ANDROID_EMBEDDED')

View File

@ -305,7 +305,7 @@ def test_qstandardpaths_scopes():
scope6 = _new_scope(parent_scope=scope5, condition='UNIX') scope6 = _new_scope(parent_scope=scope5, condition='UNIX')
# mac { # mac {
# OBJECTIVE_SOURCES += io/qstandardpaths_mac.mm # 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 { # } else:android:!android-embedded {
# SOURCES += io/qstandardpaths_android.cpp # SOURCES += io/qstandardpaths_android.cpp
scope8 = _new_scope(parent_scope=scope6, condition='else') scope8 = _new_scope(parent_scope=scope6, condition='else')
@ -330,12 +330,12 @@ def test_qstandardpaths_scopes():
assert scope4.total_condition == 'WINRT' assert scope4.total_condition == 'WINRT'
assert scope5.total_condition == 'UNIX' assert scope5.total_condition == 'UNIX'
assert scope6.total_condition == 'UNIX' assert scope6.total_condition == 'UNIX'
assert scope7.total_condition == 'APPLE_MACOS' assert scope7.total_condition == 'MACOS'
assert scope8.total_condition == 'UNIX AND NOT APPLE_MACOS' assert scope8.total_condition == 'UNIX AND NOT MACOS'
assert scope9.total_condition == 'ANDROID AND NOT ANDROID_EMBEDDED' 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 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(): def test_recursive_expansion():
scope = _new_scope(A='Foo',B='$$A/Bar') scope = _new_scope(A='Foo',B='$$A/Bar')