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 paths from compatible exporters when scanning exporter module paths

This commit is contained in:
ed 2018-11-09 11:22:25 +00:00
parent 55ebd17dfc
commit b56bdd83fd

View file

@ -1918,12 +1918,15 @@ EnabledModuleList& Project::getEnabledModules()
return *enabledModuleList;
}
static Array<File> getAllPossibleModulePathsFromExporters (Project& project)
static Array<File> getModulePathsFromCompatibleExporters (Project& project)
{
StringArray paths;
for (Project::ExporterIterator exporter (project); exporter.next();)
{
if (! exporter->mayCompileOnCurrentOS())
continue;
auto& modules = project.getEnabledModules();
auto n = modules.getNumModules();
@ -1972,9 +1975,9 @@ AvailableModuleList& Project::getExporterPathsModuleList()
void Project::rescanExporterPathModules (bool async)
{
if (async)
exporterPathsModuleList->scanPathsAsync (getAllPossibleModulePathsFromExporters (*this));
exporterPathsModuleList->scanPathsAsync (getModulePathsFromCompatibleExporters (*this));
else
exporterPathsModuleList->scanPaths (getAllPossibleModulePathsFromExporters (*this));
exporterPathsModuleList->scanPaths (getModulePathsFromCompatibleExporters (*this));
}
ModuleIDAndFolder Project::getModuleWithID (const String& id)