From 32189f730ae32880e0584076dc6c2057cf2f23b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Sat, 18 Apr 2020 13:01:35 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@1055 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- cmake/DeployMacros.cmake | 40 ++++++++++++++++++++++++++++++++++++ cmake/PIMacOSBundle.plist.in | 1 + 2 files changed, 41 insertions(+) diff --git a/cmake/DeployMacros.cmake b/cmake/DeployMacros.cmake index 7d16b7e3..d157a6a0 100644 --- a/cmake/DeployMacros.cmake +++ b/cmake/DeployMacros.cmake @@ -421,6 +421,45 @@ macro(__make_copy _cmd _dirs _files _dest) endforeach() endif() endmacro() +set(__macos_privacy_text "Application request permission") +set(__macos_privacies + "NFCReaderUsageDescription + ${__macos_privacy_text} + NSAppleMusicUsageDescription + ${__macos_privacy_text} + NSBluetoothPeripheralUsageDescription + ${__macos_privacy_text} + NSCalendarsUsageDescription + ${__macos_privacy_text} + NSCameraUsageDescription + ${__macos_privacy_text} + NSContactsUsageDescription + ${__macos_privacy_text} + NSFaceIDUsageDescription + ${__macos_privacy_text} + NSHealthShareUsageDescription + ${__macos_privacy_text} + NSHealthUpdateUsageDescription + ${__macos_privacy_text} + NSHomeKitUsageDescription + ${__macos_privacy_text} + NSLocationAlwaysUsageDescription + ${__macos_privacy_text} + NSLocationWhenInUseUsageDescription + ${__macos_privacy_text} + NSMicrophoneUsageDescription + ${__macos_privacy_text} + NSMotionUsageDescription + ${__macos_privacy_text} + NSPhotoLibraryAddUsageDescription + ${__macos_privacy_text} + NSPhotoLibraryUsageDescription + ${__macos_privacy_text} + NSRemindersUsageDescription + ${__macos_privacy_text} + NSVideoSubscriberAccountUsageDescription + ${__macos_privacy_text}" + ) #defaultConfig { # resConfigs "ru" #} @@ -629,6 +668,7 @@ macro(deploy_target _T) set(MACOSX_BUNDLE_INFO_STRING "${${_T}_INFO}") set(MACOSX_BUNDLE_BUNDLE_VERSION "6.0") set(MACOSX_BUNDLE_SIGNATURE "????") + set(MACOSX_BUNDLE_PRIVACIES "${__macos_privacies}") set_target_properties(${_T} PROPERTIES MACOSX_BUNDLE TRUE) set_target_properties(${_T} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${_modules_dir}/PIMacOSBundle.plist.in") set(_AGD "${_DEPLOY_DIR}/${_T}.app") diff --git a/cmake/PIMacOSBundle.plist.in b/cmake/PIMacOSBundle.plist.in index f25d84c3..fddbcba2 100644 --- a/cmake/PIMacOSBundle.plist.in +++ b/cmake/PIMacOSBundle.plist.in @@ -38,5 +38,6 @@ NSSupportsSuddenTermination + ${MACOSX_BUNDLE_PRIVACIES}