Browse Source

CMake: Add support for iokit sandbox exception

v7.0.9
attila 2 years ago
parent
commit
6a470bef5b
3 changed files with 15 additions and 0 deletions
  1. +5
    -0
      docs/CMake API.md
  2. +2
    -0
      extras/Build/CMake/JUCEUtils.cmake
  3. +8
    -0
      extras/Build/juceaide/Main.cpp

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

@@ -454,6 +454,11 @@ attributes directly to these creation functions, rather than adding them later.
- A set of space-separated paths that will be added to this target's entitlements plist for
accessing read/write absolute paths if `APP_SANDBOX_ENABLED` is `TRUE`.

`APP_SANDBOX_EXCEPTION_IOKIT`
- A set of space-separated strings specifying IOUserClient subclasses to open or to set properties
on. These will be added to this target's entitlements plist if `APP_SANDBOX_ENABLED` is `TRUE`.
For more information see Apple's IOKit User Client Class Temporary Exception documentation.

`PLIST_TO_MERGE`
- A string to insert into an app/plugin's Info.plist.



+ 2
- 0
extras/Build/CMake/JUCEUtils.cmake View File

@@ -352,6 +352,7 @@ function(_juce_write_configure_time_info target)
_juce_append_target_property(file_content APP_SANDBOX_FILE_ACCESS_HOME_RW ${target} JUCE_APP_SANDBOX_FILE_ACCESS_HOME_RW)
_juce_append_target_property(file_content APP_SANDBOX_FILE_ACCESS_ABS_RO ${target} JUCE_APP_SANDBOX_FILE_ACCESS_ABS_RO)
_juce_append_target_property(file_content APP_SANDBOX_FILE_ACCESS_ABS_RW ${target} JUCE_APP_SANDBOX_FILE_ACCESS_ABS_RW)
_juce_append_target_property(file_content APP_SANDBOX_EXCEPTION_IOKIT ${target} JUCE_APP_SANDBOX_EXCEPTION_IOKIT)
_juce_append_target_property(file_content APP_GROUPS_ENABLED ${target} JUCE_APP_GROUPS_ENABLED)
_juce_append_target_property(file_content APP_GROUP_IDS ${target} JUCE_APP_GROUP_IDS)
_juce_append_target_property(file_content IS_PLUGIN ${target} JUCE_IS_PLUGIN)
@@ -1892,6 +1893,7 @@ function(_juce_initialise_target target)
APP_SANDBOX_FILE_ACCESS_HOME_RW
APP_SANDBOX_FILE_ACCESS_ABS_RO
APP_SANDBOX_FILE_ACCESS_ABS_RW
APP_SANDBOX_EXCEPTION_IOKIT
DOCUMENT_EXTENSIONS
AAX_CATEGORY
IPHONE_SCREEN_ORIENTATIONS # iOS only


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

@@ -368,6 +368,14 @@ juce::build_tools::EntitlementOptions parseEntitlementsOptions (const juce::File
std::move (values) });
}
{
juce::StringArray values;
updateField ("APP_SANDBOX_EXCEPTION_IOKIT", values);
if (! values.isEmpty())
result.appSandboxExceptionIOKit = values;
}
result.type = type;
return result;


Loading…
Cancel
Save