1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AU: Replace CoreAudioUtilityClasses with files from new SDK

This commit is contained in:
reuk 2021-07-20 13:18:59 +01:00
parent c0f31aa12a
commit f8e91d4003
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
87 changed files with 7700 additions and 15819 deletions

View file

@ -1048,7 +1048,7 @@ public:
struct XcodeTarget : build_tools::ProjectType::Target
{
//==============================================================================
XcodeTarget (build_tools::ProjectType::Target::Type targetType, const XcodeProjectExporter& exporter)
XcodeTarget (Type targetType, const XcodeProjectExporter& exporter)
: Target (targetType),
owner (exporter)
{
@ -1699,10 +1699,17 @@ public:
s.set ("CODE_SIGN_ENTITLEMENTS", getEntitlementsFilename().quoted());
{
auto cppStandard = owner.project.getCppStandardString();
const auto cppStandard = [&]() -> String
{
if (owner.project.getCppStandardString() == "latest")
return owner.project.getLatestNumberedCppStandardString();
if (cppStandard == "latest")
cppStandard = owner.project.getLatestNumberedCppStandardString();
// The AudioUnitSDK requires C++17
if (type == AudioUnitPlugIn)
return "17";
return owner.project.getCppStandardString();
}();
s.set ("CLANG_CXX_LANGUAGE_STANDARD", (String (owner.shouldUseGNUExtensions() ? "gnu++"
: "c++") + cppStandard).quoted());
@ -1970,10 +1977,15 @@ public:
if (owner.project.getEnabledModules().isModuleEnabled ("juce_audio_plugin_client"))
{
// Needed to compile .r files
paths.add (owner.getModuleFolderRelativeToProject ("juce_audio_plugin_client")
.rebased (owner.projectFolder, owner.getTargetFolder(), build_tools::RelativePath::buildTargetFolder)
.toUnixStyle());
const auto pluginClientModule = owner.getModuleFolderRelativeToProject ("juce_audio_plugin_client");
for (const auto& path : { pluginClientModule, // For AU resource fork
pluginClientModule.getChildFile ("AU") }) // For AudioUnitSDK includes
{
paths.add (path.rebased (owner.projectFolder,
owner.getTargetFolder(),
build_tools::RelativePath::buildTargetFolder)
.toUnixStyle());
}
}
sanitiseAndEscapeSearchPaths (config, paths);