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

CMake: Add support for iokit sandbox exception

This commit is contained in:
attila 2023-10-06 18:29:45 +02:00
parent ef61128127
commit 6a470bef5b
3 changed files with 15 additions and 0 deletions

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.

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

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;