mkspecs/macx-ios-clang/features/default_post.prf
raw| 1 | load(default_post) |
| 2 | |
| 3 | !xcodebuild:equals(TEMPLATE, app):!isEmpty(QMAKE_INFO_PLIST) { |
| 4 | # Only link in photo library support if Info.plist contains |
| 5 | # NSPhotoLibraryUsageDescription. Otherwise it will be rejected from AppStore. |
| 6 | plist_path = $$absolute_path($$QMAKE_INFO_PLIST, $$_PRO_FILE_PWD_) |
| 7 | system("/usr/libexec/PlistBuddy -c 'Print NSPhotoLibraryUsageDescription' $$system_quote($$plist_path) &>/dev/null"): \ |
| 8 | QTPLUGIN += qiosnsphotolibrarysupport |
| 9 | } |