1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

Fix for misaligned AIFF files. Introjucer fix for locally-copied files and MSVC optimisation.

This commit is contained in:
jules 2011-10-04 17:05:19 +01:00
parent bd7c046f76
commit 8dd0a7e7f2
5 changed files with 13 additions and 4 deletions

View file

@ -382,6 +382,14 @@ RelativePath LibraryModule::getModuleRelativeToProject (ProjectExporter& exporte
return p.getChildFile (getID());
}
RelativePath LibraryModule::getModuleOrLocalCopyRelativeToProject (ProjectExporter& exporter, const File& localModuleFolder) const
{
if (exporter.getProject().shouldCopyModuleFilesLocally (getID()).getValue())
return RelativePath (exporter.getProject().getRelativePathForFile (localModuleFolder), RelativePath::projectFolder);
return getModuleRelativeToProject (exporter);
}
//==============================================================================
void LibraryModule::writeIncludes (ProjectSaver& projectSaver, OutputStream& out)
{
@ -650,7 +658,7 @@ void LibraryModule::addBrowsableCode (ProjectExporter& exporter, const Array<Fil
Project::Item sourceGroup (Project::Item::createGroup (exporter.getProject(), getID(), "__mainsourcegroup" + getID()));
const RelativePath moduleFromProject (getModuleRelativeToProject (exporter));
const RelativePath moduleFromProject (getModuleOrLocalCopyRelativeToProject (exporter, localModuleFolder));
for (int i = 0; i < sourceFiles.size(); ++i)
{