From 22a3660376ef3348d5de8d8d41fc23707983a466 Mon Sep 17 00:00:00 2001 From: reuk Date: Tue, 7 Feb 2023 19:38:01 +0000 Subject: [PATCH] CMake: Add inter-app-audio entitlement to iOS AU hosts --- extras/Build/CMake/JUCEUtils.cmake | 1 + extras/Build/juceaide/Main.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake index b86e0b4547..8eff854582 100644 --- a/extras/Build/CMake/JUCEUtils.cmake +++ b/extras/Build/CMake/JUCEUtils.cmake @@ -270,6 +270,7 @@ function(_juce_write_configure_time_info target) _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) _juce_append_target_property(file_content ICLOUD_PERMISSIONS_ENABLED ${target} JUCE_ICLOUD_PERMISSIONS_ENABLED) + _juce_append_target_property(file_content IS_AU_PLUGIN_HOST ${target} JUCE_PLUGINHOST_AU) if(CMAKE_SYSTEM_NAME STREQUAL "iOS") _juce_append_record(file_content IS_IOS 1) diff --git a/extras/Build/juceaide/Main.cpp b/extras/Build/juceaide/Main.cpp index d36380a908..ebfe27a242 100644 --- a/extras/Build/juceaide/Main.cpp +++ b/extras/Build/juceaide/Main.cpp @@ -333,6 +333,7 @@ juce::build_tools::EntitlementOptions parseEntitlementsOptions (const juce::File updateField ("IS_IOS", result.isiOS); updateField ("IS_PLUGIN", result.isAudioPluginProject); + updateField ("IS_AU_PLUGIN_HOST", result.isAUPluginHost); updateField ("ICLOUD_PERMISSIONS_ENABLED", result.isiCloudPermissionsEnabled); updateField ("PUSH_NOTIFICATIONS_ENABLED", result.isPushNotificationsEnabled); updateField ("APP_GROUPS_ENABLED", result.isAppGroupsEnabled);