configure: Tie -appstore-compliant to QT_APPLE_NO_PRIVATE_APIS

Pick-to: 6.3 6.2
Change-Id: Ieb0f7398498483d5b48a16623dfc28bb6fb55f0b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tor Arne Vestbø 2022-02-01 15:44:06 +01:00
parent 987b896b4e
commit 2a192c5f18

View File

@ -502,6 +502,9 @@ qt_feature("appstore-compliant" PUBLIC
PURPOSE "Disables code that is not allowed in platform app stores" PURPOSE "Disables code that is not allowed in platform app stores"
AUTODETECT UIKIT OR ANDROID AUTODETECT UIKIT OR ANDROID
) )
if(APPLE)
qt_feature_definition("appstore-compliant" "QT_APPLE_NO_PRIVATE_APIS")
endif()
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 UIKIT AND NOT QT_UIKIT_SDK CONDITION UIKIT AND NOT QT_UIKIT_SDK