Update UPT to ignore "!include" statement when parsing UNI file
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hess Chen <hesheng.chen@intel.com>
Reviewed-by: YangX Li <yangx.li@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17872
6f19259b-4bc3-4df7-8a09-
765794883524
## @file\r
# Collect all defined strings in multiple uni files.\r
#\r
## @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
#\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
Line = Line.replace(u'\t', u' ')\r
Line = Line.replace(u'\u0006', u'\\')\r
\r
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
if len(IncList) == 1:\r
for Dir in [File.Dir] + self.IncludePathList:\r
IncFile = PathClass(str(IncList[0]), Dir)\r