Translate the Arch enum to an arch directory name. This is necessary for Linux builds, since it is case sensitive.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@298 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bbahnsen 2006-05-26 21:34:51 +00:00
parent b560bb65c4
commit c43c67195a
1 changed files with 15 additions and 1 deletions

View File

@ -267,6 +267,20 @@ public class GenBuildTask extends Task {
ant.execute(); ant.execute();
} }
/**
Return the name of the directory that corresponds to the architecture.
This is a translation from the XML Schema tag to a directory that
corresponds to our directory name coding convention.
**/
private String archDir(String arch) {
return arch.replaceFirst("X64", "x64")
.replaceFirst("IPF", "Ipf")
.replaceFirst("IA32", "Ia32")
.replaceFirst("ARM", "Arm")
.replaceFirst("EBC", "Ebc");
}
/** /**
Get the dependent library instances and include package name from Get the dependent library instances and include package name from
surface area, and initialize module include pathes. surface area, and initialize module include pathes.
@ -281,7 +295,7 @@ public class GenBuildTask extends Task {
includes.add("${WORKSPACE_DIR}" + File.separatorChar + GlobalData.getPackagePath(packageName) includes.add("${WORKSPACE_DIR}" + File.separatorChar + GlobalData.getPackagePath(packageName)
+ File.separatorChar + "Include"); + File.separatorChar + "Include");
includes.add("${WORKSPACE_DIR}" + File.separatorChar + GlobalData.getPackagePath(packageName) includes.add("${WORKSPACE_DIR}" + File.separatorChar + GlobalData.getPackagePath(packageName)
+ File.separatorChar + "Include" + File.separatorChar + "${ARCH}"); + File.separatorChar + "Include" + File.separatorChar + archDir(arch));
} }
} }
includes.add("${DEST_DIR_DEBUG}"); includes.add("${DEST_DIR_DEBUG}");