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:
parent
55ebd17dfc
commit
b56bdd83fd
1 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue