iOS, mkspec: only link in qiosnsphotolibrarysupport for iOS
The plugin depends on AssetLibrary.framework, which is only available for iOS. Change-Id: I798c87b57881210ced8e4a7399c1e45d130ee357 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
parent
91c0afdcbf
commit
68a0bd8592
@ -90,11 +90,3 @@ macx-xcode {
|
|||||||
|
|
||||||
QMAKE_PCH_ARCHS = $$VALID_ARCHS
|
QMAKE_PCH_ARCHS = $$VALID_ARCHS
|
||||||
}
|
}
|
||||||
|
|
||||||
!xcodebuild:equals(TEMPLATE, app):!isEmpty(QMAKE_INFO_PLIST) {
|
|
||||||
# Only link in photo library support if Info.plist contains
|
|
||||||
# NSPhotoLibraryUsageDescription. Otherwise it will be rejected from AppStore.
|
|
||||||
plist_path = $$absolute_path($$QMAKE_INFO_PLIST, $$_PRO_FILE_PWD_)
|
|
||||||
system("/usr/libexec/PlistBuddy -c 'Print NSPhotoLibraryUsageDescription' $$system_quote($$plist_path) &>/dev/null"): \
|
|
||||||
QTPLUGIN += qiosnsphotolibrarysupport
|
|
||||||
}
|
|
||||||
|
9
mkspecs/macx-ios-clang/features/default_post.prf
Normal file
9
mkspecs/macx-ios-clang/features/default_post.prf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
load(default_post)
|
||||||
|
|
||||||
|
!xcodebuild:equals(TEMPLATE, app):!isEmpty(QMAKE_INFO_PLIST) {
|
||||||
|
# Only link in photo library support if Info.plist contains
|
||||||
|
# NSPhotoLibraryUsageDescription. Otherwise it will be rejected from AppStore.
|
||||||
|
plist_path = $$absolute_path($$QMAKE_INFO_PLIST, $$_PRO_FILE_PWD_)
|
||||||
|
system("/usr/libexec/PlistBuddy -c 'Print NSPhotoLibraryUsageDescription' $$system_quote($$plist_path) &>/dev/null"): \
|
||||||
|
QTPLUGIN += qiosnsphotolibrarysupport
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user