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:
parent
c0f31aa12a
commit
f8e91d4003
87 changed files with 7700 additions and 15819 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue