Add "ALWAYS_PRODUCED" Library class item for EDK module whose COMPONENT type is "LIBRARY".

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4415 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2007-12-21 08:29:32 +00:00
parent 61ce5861e4
commit a09aa7e27a
3 changed files with 11 additions and 0 deletions

View File

@ -35,6 +35,8 @@ public final class ModuleInfo {
private MsaOwner msaowner = MsaOwner.initNewMsaOwner(); private MsaOwner msaowner = MsaOwner.initNewMsaOwner();
public boolean isLibrary = false;
public String modulename = null; public String modulename = null;
public String guidvalue = null; public String guidvalue = null;

View File

@ -146,6 +146,9 @@ public final class ModuleReader implements Common.ForDoAll {
} }
if (mtrinfequation.group(1).matches("COMPONENT_TYPE")) { if (mtrinfequation.group(1).matches("COMPONENT_TYPE")) {
mi.moduletype = mtrinfequation.group(2); mi.moduletype = mtrinfequation.group(2);
if (mi.moduletype.matches("LIBRARY")) {
mi.isLibrary = true;
}
} }
} }
} }

View File

@ -232,6 +232,12 @@ public class MsaWriter {
} }
} }
} }
if (mi.isLibrary) {
LibraryClassDocument.LibraryClass lc = libclassdefs
.addNewLibraryClass();
lc.setKeyword(mi.modulename);
lc.setUsage(UsageTypes.ALWAYS_PRODUCED);
}
it = mi.hashrequiredr9libs.iterator(); it = mi.hashrequiredr9libs.iterator();
while (it.hasNext()) { while (it.hasNext()) {
if ((temp = it.next()) != null && !temp.matches("%") if ((temp = it.next()) != null && !temp.matches("%")