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

Added JUCE_CUSTOM_VST3_SDK flag to juce_audio_processors

This commit is contained in:
ed 2019-08-16 11:44:30 +01:00
parent cf93f79cc8
commit 6610a1959f
3 changed files with 16 additions and 2 deletions

View file

@ -466,8 +466,11 @@ private:
{
paths.addIfNotAlreadyThere (module->getFolder().getParentDirectory().getFullPathName());
if (module->getID() == "juce_audio_processors" && (project.isAudioPluginProject() || isVSTHost))
if (module->getID() == "juce_audio_processors" && ((project.isAudioPluginProject() || isVSTHost)
&& ! project.isConfigFlagEnabled ("JUCE_CUSTOM_VST3_SDK")))
{
paths.addIfNotAlreadyThere (module->getFolder().getChildFile ("format_types").getChildFile ("VST3_SDK").getFullPathName());
}
}
return convertSearchPathsToAbsolute (paths);

View file

@ -396,7 +396,9 @@ void ProjectExporter::addVSTPathsIfPluginOrHost()
|| ((shouldBuildTargetType (build_tools::ProjectType::Target::VST3PlugIn) && project.shouldBuildVST3()) || project.isVST3PluginHost()))
{
addLegacyVSTFolderToPathIfSpecified();
addToExtraSearchPaths (getInternalVST3SDKPath(), 0);
if (! project.isConfigFlagEnabled ("JUCE_CUSTOM_VST3_SDK"))
addToExtraSearchPaths (getInternalVST3SDKPath(), 0);
}
}

View file

@ -86,6 +86,15 @@
#define JUCE_PLUGINHOST_LADSPA 0
#endif
/** Config: JUCE_CUSTOM_VST3_SDK
If enabled, the embedded VST3 SDK in JUCE will not be added to the project and instead you should
add the path to your custom VST3 SDK to the project's header search paths. Most users shouldn't
need to enable this and should just use the version of the SDK included with JUCE.
*/
#ifndef JUCE_CUSTOM_VST3_SDK
#define JUCE_CUSTOM_VST3_SDK 0
#endif
#if ! (JUCE_PLUGINHOST_AU || JUCE_PLUGINHOST_VST || JUCE_PLUGINHOST_VST3 || JUCE_PLUGINHOST_LADSPA)
// #error "You need to set either the JUCE_PLUGINHOST_AU and/or JUCE_PLUGINHOST_VST and/or JUCE_PLUGINHOST_VST3 and/or JUCE_PLUGINHOST_LADSPA flags if you're using this module!"
#endif