diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-12-21 08:29:32 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-12-21 08:29:32 +0000 |
commit | a09aa7e27a6206bb91ebf5035753472ff6bcb280 (patch) | |
tree | 21e5c117e3294385bdf2f6b1a494e0a6384e3a80 /Tools | |
parent | 61ce5861e4bc31cb061559f741237b5ed00d9366 (diff) | |
download | edk2-platforms-a09aa7e27a6206bb91ebf5035753472ff6bcb280.tar.xz |
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
Diffstat (limited to 'Tools')
3 files changed, 11 insertions, 0 deletions
diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java index 29413c4b0a..8f54d81b58 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleInfo.java @@ -35,6 +35,8 @@ public final class ModuleInfo { private MsaOwner msaowner = MsaOwner.initNewMsaOwner();
+ public boolean isLibrary = false;
+
public String modulename = null;
public String guidvalue = null;
diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java index c72399ea2c..f3eb7069eb 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java @@ -146,6 +146,9 @@ public final class ModuleReader implements Common.ForDoAll { }
if (mtrinfequation.group(1).matches("COMPONENT_TYPE")) {
mi.moduletype = mtrinfequation.group(2);
+ if (mi.moduletype.matches("LIBRARY")) {
+ mi.isLibrary = true;
+ }
}
}
}
diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaWriter.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaWriter.java index 6bc76764c7..deb0ae0b9c 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaWriter.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/MsaWriter.java @@ -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();
while (it.hasNext()) {
if ((temp = it.next()) != null && !temp.matches("%")
|