1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

CMake: Allow setting the network multicast entitlement

This commit is contained in:
reuk 2021-08-31 19:20:14 +01:00
parent 0d716ab647
commit d396bdb97f
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
3 changed files with 6 additions and 0 deletions

View file

@ -400,6 +400,9 @@ attributes directly to these creation functions, rather than adding them later.
- `PUSH_NOTIFICATIONS_ENABLED` - `PUSH_NOTIFICATIONS_ENABLED`
- Sets app entitlements to allow push notifications. False by default. - Sets app entitlements to allow push notifications. False by default.
- `NETWORK_MULTICAST_ENABLED`
- Sets app entitlements to allow IP multicast or broadcast on macOS/iOS. False by default.
- `HARDENED_RUNTIME_ENABLED` - `HARDENED_RUNTIME_ENABLED`
- Enables macOS' hardened runtime for this target. Required for notarisation. False by default. - Enables macOS' hardened runtime for this target. Required for notarisation. False by default.

View file

@ -300,6 +300,7 @@ function(_juce_write_configure_time_info target)
_juce_append_target_property(file_content BACKGROUND_AUDIO_ENABLED ${target} JUCE_BACKGROUND_AUDIO_ENABLED) _juce_append_target_property(file_content BACKGROUND_AUDIO_ENABLED ${target} JUCE_BACKGROUND_AUDIO_ENABLED)
_juce_append_target_property(file_content BACKGROUND_BLE_ENABLED ${target} JUCE_BACKGROUND_BLE_ENABLED) _juce_append_target_property(file_content BACKGROUND_BLE_ENABLED ${target} JUCE_BACKGROUND_BLE_ENABLED)
_juce_append_target_property(file_content PUSH_NOTIFICATIONS_ENABLED ${target} JUCE_PUSH_NOTIFICATIONS_ENABLED) _juce_append_target_property(file_content PUSH_NOTIFICATIONS_ENABLED ${target} JUCE_PUSH_NOTIFICATIONS_ENABLED)
_juce_append_target_property(file_content NETWORK_MULTICAST_ENABLED ${target} JUCE_NETWORK_MULTICAST_ENABLED)
_juce_append_target_property(file_content PLUGIN_MANUFACTURER_CODE ${target} JUCE_PLUGIN_MANUFACTURER_CODE) _juce_append_target_property(file_content PLUGIN_MANUFACTURER_CODE ${target} JUCE_PLUGIN_MANUFACTURER_CODE)
_juce_append_target_property(file_content PLUGIN_CODE ${target} JUCE_PLUGIN_CODE) _juce_append_target_property(file_content PLUGIN_CODE ${target} JUCE_PLUGIN_CODE)
_juce_append_target_property(file_content IPHONE_SCREEN_ORIENTATIONS ${target} JUCE_IPHONE_SCREEN_ORIENTATIONS) _juce_append_target_property(file_content IPHONE_SCREEN_ORIENTATIONS ${target} JUCE_IPHONE_SCREEN_ORIENTATIONS)
@ -1497,6 +1498,7 @@ function(_juce_initialise_target target)
NEEDS_WEB_BROWSER # Set this true if you want to link webkit on Linux NEEDS_WEB_BROWSER # Set this true if you want to link webkit on Linux
NEEDS_STORE_KIT # Set this true if you want in-app-purchases on Mac NEEDS_STORE_KIT # Set this true if you want in-app-purchases on Mac
PUSH_NOTIFICATIONS_ENABLED PUSH_NOTIFICATIONS_ENABLED
NETWORK_MULTICAST_ENABLED
HARDENED_RUNTIME_ENABLED HARDENED_RUNTIME_ENABLED
APP_SANDBOX_ENABLED APP_SANDBOX_ENABLED
APP_SANDBOX_INHERIT APP_SANDBOX_INHERIT

View file

@ -341,6 +341,7 @@ juce::build_tools::EntitlementOptions parseEntitlementsOptions (const juce::File
updateField ("APP_SANDBOX_ENABLED", result.isAppSandboxEnabled); updateField ("APP_SANDBOX_ENABLED", result.isAppSandboxEnabled);
updateField ("APP_SANDBOX_INHERIT", result.isAppSandboxInhertianceEnabled); updateField ("APP_SANDBOX_INHERIT", result.isAppSandboxInhertianceEnabled);
updateField ("APP_SANDBOX_OPTIONS", result.appSandboxOptions); updateField ("APP_SANDBOX_OPTIONS", result.appSandboxOptions);
updateField ("NETWORK_MULTICAST_ENABLED", result.isNetworkingMulticastEnabled);
result.type = type; result.type = type;