X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FGenBuild%2Forg%2Ftianocore%2Fbuild%2FGenBuildTask.java;h=2d3318d551bceae007e592ababd5a2cdec96b55d;hp=2104a51e622b735289ce53df57db64e3e21122ea;hb=c43c67195a60f1e002553cd8b2cf876903e3f801;hpb=61746a87be58d12489f9c82e2e6e2fd5837626fc;ds=inline diff --git a/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java b/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java index 2104a51e62..2d3318d551 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java +++ b/Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java @@ -267,6 +267,20 @@ public class GenBuildTask extends Task { 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 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) + File.separatorChar + "Include"); 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}");