]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/ModuleBuildFileGenerator.java
Do Not cleanall librarys with a module build clean or build cleanall.
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / ModuleBuildFileGenerator.java
index e9e2770957350119afa2f01be65cb6558b6f2ce2..49628af5d2aa092bed1b9a61f46d70b6206f9b8e 100644 (file)
@@ -235,41 +235,6 @@ public class ModuleBuildFileGenerator {
       @param root Root element for current\r
     **/\r
     private void applyCleanElement(Document document, Node root) {\r
-        ModuleIdentification[] libinstances = SurfaceAreaQuery.getLibraryInstance(fpdModuleId.getArch());\r
-        for (int i = 0; i < libinstances.length; i++) {\r
-            //\r
-            // Put package file path to module identification\r
-            //\r
-            PackageIdentification packageId = libinstances[i].getPackage();\r
-            \r
-            //\r
-            // Generate ANT script to clean\r
-            //\r
-            Element ele = document.createElement("GenBuild");\r
-            ele.setAttribute("type", "clean");\r
-            \r
-            //\r
-            // Prepare pass down information\r
-            //\r
-            Map<String, String> passDownMap = new LinkedHashMap<String, String>();\r
-            for (int j = 0; j < inheritProperties.length; j ++){\r
-                passDownMap.put(inheritProperties[j], "${" + inheritProperties[j] + "}");\r
-            }\r
-            passDownMap.put("MODULE_GUID", libinstances[i].getGuid());\r
-            passDownMap.put("MODULE_VERSION", libinstances[i].getVersion());\r
-            \r
-            passDownMap.put("PACKAGE_GUID", packageId.getGuid());\r
-            passDownMap.put("PACKAGE_VERSION", packageId.getVersion());\r
-            \r
-            for (int j = 0; j < inheritProperties.length; j ++){\r
-                Element property = document.createElement("property");\r
-                property.setAttribute("name", inheritProperties[j]);\r
-                property.setAttribute("value", passDownMap.get(inheritProperties[j]));\r
-                ele.appendChild(property);\r
-            }\r
-\r
-            root.appendChild(ele);\r
-        }\r
         //\r
         // <delete includeemptydirs="true">\r
         //   <fileset dir="${DEST_DIR_OUTPUT}" includes="" excludes="" />\r
@@ -292,42 +257,6 @@ public class ModuleBuildFileGenerator {
       @param root Root element for current\r
     **/\r
     private void applyDeepcleanElement(Document document, Node root) {\r
-        ModuleIdentification[] libinstances = SurfaceAreaQuery.getLibraryInstance(fpdModuleId.getArch());\r
-        for (int i = 0; i < libinstances.length; i++) {\r
-            //\r
-            // Put package file path to module identification\r
-            //\r
-            PackageIdentification packageId = libinstances[i].getPackage();\r
-            \r
-            //\r
-            // Generate ANT script to clean\r
-            //\r
-            Element ele = document.createElement("GenBuild");\r
-            ele.setAttribute("type", "cleanall");\r
-            \r
-            //\r
-            // Prepare pass down information\r
-            //\r
-            Map<String, String> passDownMap = new LinkedHashMap<String, String>();\r
-            for (int j = 0; j < inheritProperties.length; j ++){\r
-                passDownMap.put(inheritProperties[j], "${" + inheritProperties[j] + "}");\r
-            }\r
-            \r
-            passDownMap.put("MODULE_GUID", libinstances[i].getGuid());\r
-            passDownMap.put("MODULE_VERSION", libinstances[i].getVersion());\r
-            \r
-            passDownMap.put("PACKAGE_GUID", packageId.getGuid());\r
-            passDownMap.put("PACKAGE_VERSION", packageId.getVersion());\r
-            \r
-            for (int j = 0; j < inheritProperties.length; j ++){\r
-                Element property = document.createElement("property");\r
-                property.setAttribute("name", inheritProperties[j]);\r
-                property.setAttribute("value", passDownMap.get(inheritProperties[j]));\r
-                ele.appendChild(property);\r
-            }\r
-\r
-            root.appendChild(ele);\r
-        }\r
         //\r
         // <delete includeemptydirs="true">\r
         //   <fileset dir="${DEST_DIR_OUTPUT}" includes="" excludes="" />\r
@@ -364,7 +293,6 @@ public class ModuleBuildFileGenerator {
     **/\r
     private void applyLibraryInstance(Document document, Node root) {\r
         ModuleIdentification[] libinstances = SurfaceAreaQuery.getLibraryInstance(fpdModuleId.getArch());\r
-//        String propertyLibs = "";\r
         for (int i = 0; i < libinstances.length; i++) {\r
             //\r
             // Put package file path to module identification\r
@@ -376,7 +304,6 @@ public class ModuleBuildFileGenerator {
             //\r
             Element ele = document.createElement("GenBuild");\r
             ele.setAttribute("type", "build");\r
-//            ele.setAttribute("inheritAll", "false");\r
             \r
             //\r
             // Prepare pass down information\r
@@ -400,9 +327,7 @@ public class ModuleBuildFileGenerator {
             }\r
             \r
             root.appendChild(ele);\r
-//            propertyLibs += " " + project.getProperty("BIN_DIR") + File.separatorChar + libinstances[i].getName() + ".lib";\r
         }\r
-//        project.setProperty("LIBS", propertyLibs.replaceAll("(\\\\)", "/"));\r
     }\r
     \r
      /**\r