mirror of https://github.com/acidanthera/audk.git
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:
parent
61ce5861e4
commit
a09aa7e27a
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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("%")
|
||||||
|
|
Loading…
Reference in New Issue