Browse Source

CMake: Allow setting the network multicast entitlement

v6.1.6
reuk 3 years ago
parent
commit
d396bdb97f
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
3 changed files with 6 additions and 0 deletions
  1. +3
    -0
      docs/CMake API.md
  2. +2
    -0
      extras/Build/CMake/JUCEUtils.cmake
  3. +1
    -0
      extras/Build/juceaide/Main.cpp

+ 3
- 0
docs/CMake API.md View File

@@ -400,6 +400,9 @@ attributes directly to these creation functions, rather than adding them later.
- `PUSH_NOTIFICATIONS_ENABLED`
- 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`
- Enables macOS' hardened runtime for this target. Required for notarisation. False by default.



+ 2
- 0
extras/Build/CMake/JUCEUtils.cmake 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_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 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_CODE ${target} JUCE_PLUGIN_CODE)
_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_STORE_KIT # Set this true if you want in-app-purchases on Mac
PUSH_NOTIFICATIONS_ENABLED
NETWORK_MULTICAST_ENABLED
HARDENED_RUNTIME_ENABLED
APP_SANDBOX_ENABLED
APP_SANDBOX_INHERIT


+ 1
- 0
extras/Build/juceaide/Main.cpp View File

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


Loading…
Cancel
Save