Enable framework builds for all Apple platforms, including static builds

Static frameworks are now a supported by Apple, so we switch the default
for all Apple platforms, including Qt for iOS and visionOS.

 https://developer.apple.com/documentation/xcode/creating-a-static-framework

This allows us to bundle resources with our libraries, such as the
privacy manifest.

Xcode 15 and later will ensure that the linked and embedded framework
is not copied into the application bundle, as it's already linked into
the app as a static library.

Change-Id: Iaf64e7df2d6969d9562fb31ba65f05767e14506e
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Tor Arne Vestbø 2024-04-22 22:38:00 +02:00
parent eee575595b
commit 2342fa5fe2

View File

@ -626,7 +626,7 @@ qt_feature("force_asserts" PUBLIC
)
qt_feature("framework" PUBLIC
LABEL "Build Apple Frameworks"
AUTODETECT BUILD_SHARED_LIBS
AUTODETECT ON
CONDITION APPLE
)
qt_feature_definition("framework" "QT_MAC_FRAMEWORK_BUILD")