mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
Build: Update the minimum C++ standard to C++17
This commit is contained in:
parent
e9e39de069
commit
b3a4d54a72
90 changed files with 213 additions and 141 deletions
|
|
@ -1704,10 +1704,6 @@ public:
|
|||
if (owner.project.getCppStandardString() == "latest")
|
||||
return owner.project.getLatestNumberedCppStandardString();
|
||||
|
||||
// The AudioUnitSDK requires C++17
|
||||
if (type == AudioUnitPlugIn)
|
||||
return "17";
|
||||
|
||||
return owner.project.getCppStandardString();
|
||||
}();
|
||||
|
||||
|
|
@ -1975,17 +1971,16 @@ public:
|
|||
StringArray paths (owner.extraSearchPaths);
|
||||
paths.addArray (config.getHeaderSearchPaths());
|
||||
|
||||
if (owner.project.getEnabledModules().isModuleEnabled ("juce_audio_plugin_client"))
|
||||
constexpr auto audioPluginClient = "juce_audio_plugin_client";
|
||||
|
||||
if (owner.project.getEnabledModules().isModuleEnabled (audioPluginClient))
|
||||
{
|
||||
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());
|
||||
}
|
||||
paths.add (owner.getModuleFolderRelativeToProject (audioPluginClient)
|
||||
.getChildFile ("AU")
|
||||
.rebased (owner.projectFolder,
|
||||
owner.getTargetFolder(),
|
||||
build_tools::RelativePath::buildTargetFolder)
|
||||
.toUnixStyle());
|
||||
}
|
||||
|
||||
sanitiseAndEscapeSearchPaths (config, paths);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue