Support two more attribute LIBPATH and INCLUDEPATH in tools_def file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1761 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
wuyizhong
2006-10-16 09:24:08 +00:00
parent 8270b34d9d
commit c639781ef0
2 changed files with 52 additions and 18 deletions

View File

@ -543,6 +543,28 @@ public class GenBuildTask extends Ant {
} else {
getProject().setProperty(cmd[m] + "_DPATH", "");
}
//
// Set CC_LIBPATH
//
key[4] = ToolDefinitions.TOOLS_DEF_ATTRIBUTE_LIBPATH;
String libpath = GlobalData.getCommandSetting(key, fpdModuleId);
if (libpath != null) {
getProject().setProperty(cmd[m] + "_LIBPATH", libpath.replaceAll("(\\\\)", "/"));
} else {
getProject().setProperty(cmd[m] + "_LIBPATH", "");
}
//
// Set CC_INCLUDEPATH
//
key[4] = ToolDefinitions.TOOLS_DEF_ATTRIBUTE_INCLUDEPATH;
String includepath = GlobalData.getCommandSetting(key, fpdModuleId);
if (dpath != null) {
getProject().setProperty(cmd[m] + "_INCLUDEPATH", includepath.replaceAll("(\\\\)", "/"));
} else {
getProject().setProperty(cmd[m] + "_INCLUDEPATH", "");
}
}
}