]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Library/UniClassObject.py
BaseTools/Upt: Update UPT to ignore "!include" statement when parsing UNI file
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Library / UniClassObject.py
index 563b82c6889c8b9b2d1b5d1b3ced43eda02c487c..332ae273c78eb0eb3ef7cd04f206ac68f69361c3 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # Collect all defined strings in multiple uni files.\r
 #\r
-# Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials are licensed and made available \r
 # under the terms and conditions of the BSD License which accompanies this \r
@@ -529,7 +529,8 @@ class UniFileClassObject(object):
             Line = Line.replace(u'\t', u' ')\r
             Line = Line.replace(u'\u0006', u'\\')\r
 \r
-            IncList = gINCLUDE_PATTERN.findall(Line)\r
+            # IncList = gINCLUDE_PATTERN.findall(Line)\r
+            IncList = []\r
             if len(IncList) == 1:\r
                 for Dir in [File.Dir] + self.IncludePathList:\r
                     IncFile = PathClass(str(IncList[0]), Dir)\r