1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 11:55:40 +02:00

Bug 100844 ICSettingEntry.LIBRARY_FILE not currently contributed back to core model as the lib names exported by the build system aren't absolute paths & hence can't be resolved.

This commit is contained in:
James Blackburn 2010-02-23 13:25:22 +00:00
parent 1e9d430245
commit 297e4e1de8

View file

@ -758,14 +758,17 @@ public class PathEntryTranslator {
return result; return result;
} }
case ICSettingEntry.LIBRARY_PATH: case ICSettingEntry.LIBRARY_PATH:
case ICSettingEntry.LIBRARY_FILE:
// Bug 100844 don't contribute library files back to the CModel as a library files, as supplied by the build system,
// aren't currently resolved
return null; return null;
case ICSettingEntry.LIBRARY_FILE:{ // case ICSettingEntry.LIBRARY_FILE:{
IPath paths[][] = getEntryPath(fLangEntry, cfg); // IPath paths[][] = getEntryPath(fLangEntry, cfg);
result = new IPathEntry[paths[0].length]; // result = new IPathEntry[paths[0].length];
for (int i=0; i<result.length; i++) // for (int i=0; i<result.length; i++)
result[i] = CoreModel.newLibraryEntry(path, paths[0][i], paths[1][i], null, null, null, fIsExported); // result[i] = CoreModel.newLibraryEntry(path, paths[0][i], paths[1][i], null, null, null, fIsExported);
return result; // return result;
} // }
case ICSettingEntry.OUTPUT_PATH: case ICSettingEntry.OUTPUT_PATH:
result = new IPathEntry[1]; result = new IPathEntry[1];
result[0] = CoreModel.newOutputEntry(fPath, getExclusionPatterns()); result[0] = CoreModel.newOutputEntry(fPath, getExclusionPatterns());