This commit is contained in:
alfred 2006-08-14 06:40:48 +00:00
parent 9136b0e0ba
commit fb840aa8f7
1 changed files with 32 additions and 21 deletions

View File

@ -36,9 +36,9 @@ public class MsaWriter {
private MsaHeaderDocument.MsaHeader msaheader = msa.addNewMsaHeader(); private MsaHeaderDocument.MsaHeader msaheader = msa.addNewMsaHeader();
private ModuleDefinitionsDocument.ModuleDefinitions md = msa.addNewModuleDefinitions(); private ModuleDefinitionsDocument.ModuleDefinitions md = msa.addNewModuleDefinitions();
private SourceFilesDocument.SourceFiles sourcefiles = msa.addNewSourceFiles(); //found local .h files are not written private SourceFilesDocument.SourceFiles sourcefiles = msa.addNewSourceFiles(); //found local .h files are not written
private GuidsDocument.Guids guids = msa.addNewGuids(); private GuidsDocument.Guids guids;
private ProtocolsDocument.Protocols protocols = msa.addNewProtocols(); private ProtocolsDocument.Protocols protocols;
private PPIsDocument.PPIs ppis = msa.addNewPPIs(); private PPIsDocument.PPIs ppis;
private PackageDependenciesDocument.PackageDependencies pd = msa.addNewPackageDependencies(); private PackageDependenciesDocument.PackageDependencies pd = msa.addNewPackageDependencies();
private LibraryClassDefinitionsDocument.LibraryClassDefinitions libclassdefs = msa.addNewLibraryClassDefinitions(); private LibraryClassDefinitionsDocument.LibraryClassDefinitions libclassdefs = msa.addNewLibraryClassDefinitions();
private ExternsDocument.Externs externs = msa.addNewExterns(); private ExternsDocument.Externs externs = msa.addNewExterns();
@ -74,6 +74,7 @@ public class MsaWriter {
} else { } else {
msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.moduletype = Query("GuidValue Not Found . Please Input GuidValue"))); msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.moduletype = Query("GuidValue Not Found . Please Input GuidValue")));
} }
msaheader.setCopyright("Copyright (c) 2006, Intel Corporation"); msaheader.setCopyright("Copyright (c) 2006, Intel Corporation");
msaheader.setVersion("1.0"); msaheader.setVersion("1.0");
msaheader.setAbstract("Component name for module " + mi.modulename); msaheader.setAbstract("Component name for module " + mi.modulename);
@ -86,6 +87,7 @@ public class MsaWriter {
" reproduced, stored in a retrieval system, or transmitted in any\n" + " reproduced, stored in a retrieval system, or transmitted in any\n" +
" form or by any means without the express written consent of\n" + " form or by any means without the express written consent of\n" +
" Intel Corporation."); " Intel Corporation.");
msaheader.setSpecification("FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052");
List<Enum> arch = new ArrayList<Enum>(); List<Enum> arch = new ArrayList<Enum>();
arch.add(SupportedArchitectures.IA_32); arch.add(SupportedArchitectures.IA_32);
@ -105,6 +107,8 @@ public class MsaWriter {
while (it.hasNext()) { while (it.hasNext()) {
sourcefiles.addNewFilename().setStringValue(it.next()); sourcefiles.addNewFilename().setStringValue(it.next());
} }
if (!mi.protocol.isEmpty()) {
protocols = msa.addNewProtocols();
it = mi.protocol.iterator(); it = mi.protocol.iterator();
while (it.hasNext()) { while (it.hasNext()) {
if ((temp = it.next()) != null) { if ((temp = it.next()) != null) {
@ -113,6 +117,9 @@ public class MsaWriter {
pr.setUsage(UsageTypes.ALWAYS_CONSUMED); pr.setUsage(UsageTypes.ALWAYS_CONSUMED);
} }
} }
}
if (!mi.ppi.isEmpty()) {
ppis = msa.addNewPPIs();
it = mi.ppi.iterator(); it = mi.ppi.iterator();
while (it.hasNext()) { while (it.hasNext()) {
if ((temp = it.next()) != null) { if ((temp = it.next()) != null) {
@ -121,6 +128,9 @@ public class MsaWriter {
pp.setUsage(UsageTypes.ALWAYS_CONSUMED); pp.setUsage(UsageTypes.ALWAYS_CONSUMED);
} }
} }
}
if (!mi.guid.isEmpty()) {
guids = msa.addNewGuids();
it = mi.guid.iterator(); it = mi.guid.iterator();
while (it.hasNext()) { while (it.hasNext()) {
if ((temp = it.next()) != null) { if ((temp = it.next()) != null) {
@ -129,6 +139,7 @@ public class MsaWriter {
gcn.setUsage(UsageTypes.ALWAYS_CONSUMED); gcn.setUsage(UsageTypes.ALWAYS_CONSUMED);
} }
} }
}
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("%")) {