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

Projucer: Fixed a bug where the live-build engine wasn't adding the VST3 SDK path to its header search paths when building the plugin host

This commit is contained in:
ed 2017-06-23 16:34:52 +01:00
parent bd3be54a70
commit ca9d76cb68

View file

@ -434,7 +434,10 @@ private:
scanProjectItem (proj.getMainGroup(), compileUnits, userFiles);
{
const bool isPluginProject = proj.getProjectType().isAudioPlugin();
auto isVST3Host = project.getModules().isModuleEnabled ("juce_audio_processors")
&& project.isConfigFlagEnabled ("JUCE_PLUGINHOST_VST3");
auto isPluginProject = proj.getProjectType().isAudioPlugin();
OwnedArray<LibraryModule> modules;
proj.getModules().createRequiredModules (modules);
@ -451,10 +454,10 @@ private:
m->findAndAddCompiledUnits (*exporter, nullptr, compileUnits,
isPluginProject ? ProjectType::Target::SharedCodeTarget
: ProjectType::Target::unspecified);
isPluginProject || isVST3Host ? ProjectType::Target::SharedCodeTarget
: ProjectType::Target::unspecified);
if (isPluginProject)
if (isPluginProject || isVST3Host)
m->findAndAddCompiledUnits (*exporter, nullptr, compileUnits, ProjectType::Target::StandalonePlugIn);
}
@ -518,7 +521,10 @@ private:
StringArray paths;
paths.addArray (getSearchPathsFromString (ProjectProperties::getSystemHeaderPathString (project)));
if (project.getProjectType().isAudioPlugin())
auto isVST3Host = project.getModules().isModuleEnabled ("juce_audio_processors")
&& project.isConfigFlagEnabled ("JUCE_PLUGINHOST_VST3");
if (project.getProjectType().isAudioPlugin() || isVST3Host)
paths.add (getAppSettings().getStoredPath (Ids::vst3Path).toString());
OwnedArray<LibraryModule> modules;