1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CMake: Allow setting NSLocalNetworkUsageDescription on Apple platforms

This commit is contained in:
reuk 2025-06-03 15:50:13 +01:00
parent a2863e636f
commit 5d50d6bcdc
No known key found for this signature in database
3 changed files with 17 additions and 3 deletions

View file

@ -252,6 +252,8 @@ juce::build_tools::PlistOptions parsePlistOptions (const juce::File& file,
updateField ("CAMERA_PERMISSION_TEXT", result.cameraPermissionText);
updateField ("BLUETOOTH_PERMISSION_ENABLED", result.bluetoothPermissionEnabled);
updateField ("BLUETOOTH_PERMISSION_TEXT", result.bluetoothPermissionText);
updateField ("LOCAL_NETWORK_PERMISSION_ENABLED", result.localNetworkPermissionEnabled);
updateField ("LOCAL_NETWORK_PERMISSION_TEXT", result.localNetworkPermissionText);
updateField ("SEND_APPLE_EVENTS_PERMISSION_ENABLED", result.sendAppleEventsPermissionEnabled);
updateField ("SEND_APPLE_EVENTS_PERMISSION_TEXT", result.sendAppleEventsPermissionText);
updateField ("SHOULD_ADD_STORYBOARD", result.shouldAddStoryboardToProject);
@ -298,6 +300,8 @@ juce::build_tools::PlistOptions parsePlistOptions (const juce::File& file,
"This app requires access to Bluetooth to function correctly.");
setIfEmpty (result.sendAppleEventsPermissionText,
"This app requires the ability to send Apple events to function correctly.");
setIfEmpty (result.localNetworkPermissionText,
"This app requires access to the local network to function correctly.");
result.documentExtensions = result.documentExtensions.replace (";", ",");