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

Projucer: Only add plug-in properties to plug-in projects

This commit is contained in:
ed 2020-01-31 15:27:26 +00:00
parent c8da037147
commit fdc9831e60
11 changed files with 46 additions and 45 deletions

View file

@ -380,7 +380,7 @@ private:
auto isVSTHost = project.getEnabledModules().isModuleEnabled ("juce_audio_processors")
&& (project.isConfigFlagEnabled ("JUCE_PLUGINHOST_VST3") || project.isConfigFlagEnabled ("JUCE_PLUGINHOST_VST"));
auto isPluginProject = proj.getProjectType().isAudioPlugin();
auto isPluginProject = proj.isAudioPluginProject();
OwnedArray<LibraryModule> modules;
proj.getEnabledModules().createRequiredModules (modules);
@ -471,7 +471,7 @@ private:
auto customVst3Path = getAppSettings().getStoredPath (Ids::vst3Path, TargetOS::getThisOS()).get().toString();
if (customVst3Path.isNotEmpty() && (project.getProjectType().isAudioPlugin() || isVSTHost))
if (customVst3Path.isNotEmpty() && (project.isAudioPluginProject() || isVSTHost))
paths.add (customVst3Path);
OwnedArray<LibraryModule> modules;
@ -481,7 +481,7 @@ private:
{
paths.addIfNotAlreadyThere (module->getFolder().getParentDirectory().getFullPathName());
if (customVst3Path.isEmpty() && (project.getProjectType().isAudioPlugin() || isVSTHost))
if (customVst3Path.isEmpty() && (project.isAudioPluginProject() || isVSTHost))
if (module->getID() == "juce_audio_processors")
paths.addIfNotAlreadyThere (module->getFolder().getChildFile ("format_types").getChildFile ("VST3_SDK").getFullPathName());
}