mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Use exporter name, rather than build folder name, to locate pre-built libraries
This commit is contained in:
parent
3f17cc7b2e
commit
8c9c3c3ca9
9 changed files with 34 additions and 7 deletions
|
|
@ -61,14 +61,16 @@ void LibraryModule::addSearchPathsToExporter (ProjectExporter& exporter) const
|
|||
|
||||
exporter.addToExtraSearchPaths (moduleRelativePath.getParentDirectory());
|
||||
|
||||
String libDirPlatform;
|
||||
const auto libDirPlatform = [&]() -> String
|
||||
{
|
||||
if (exporter.isLinux())
|
||||
return "Linux";
|
||||
|
||||
if (exporter.isLinux())
|
||||
libDirPlatform = "Linux";
|
||||
else if (exporter.isCodeBlocks() && exporter.isWindows())
|
||||
libDirPlatform = "MinGW";
|
||||
else
|
||||
libDirPlatform = exporter.getTargetFolder().getFileName();
|
||||
if (exporter.isCodeBlocks() && exporter.isWindows())
|
||||
return "MinGW";
|
||||
|
||||
return exporter.getTypeInfoForExporter (exporter.getExporterIdentifier()).targetFolder;
|
||||
}();
|
||||
|
||||
auto libSubdirPath = moduleRelativePath.toUnixStyle() + "/libs/" + libDirPlatform;
|
||||
auto moduleLibDir = File (exporter.getProject().getProjectFolder().getFullPathName() + "/" + libSubdirPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue