## @file\r
-# This file contained the parser for [Libraries] sections in INF file \r
+# This file contained the parser for [Libraries] sections in INF file\r
#\r
-# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2018, 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
-# distribution. The full text of the license may be found at \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
+# distribution. The full text of the license may be found at\r
# http://opensource.org/licenses/bsd-license.php\r
#\r
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
class InfLibrarySectionParser(InfParserSectionRoot):\r
## InfLibraryParser\r
#\r
- # \r
+ #\r
def InfLibraryParser(self, SectionString, InfSectionObject, FileName):\r
#\r
# For Common INF file\r
#\r
if not GlobalData.gIS_BINARY_INF:\r
#\r
- # Macro defined in this section \r
+ # Macro defined in this section\r
#\r
SectionMacros = {}\r
ValueList = []\r
continue\r
\r
#\r
- # Found Header Comments \r
+ # Found Header Comments\r
#\r
if LibLineContent.strip().startswith(DT.TAB_COMMENT_SPLIT):\r
#\r
LibHeaderComments.append(Line)\r
continue\r
#\r
- # First time encounter comment \r
+ # First time encounter comment\r
#\r
else:\r
#\r
\r
#\r
# Replace with Local section Macro and [Defines] section Macro.\r
- # \r
+ #\r
ValueList = [InfExpandMacro(Value, (FileName, LibLineContent, LibLineNo),\r
self.FileLocalMacros, SectionMacros, True)\r
for Value in ValueList]\r
\r
#\r
# Current section archs\r
- # \r
+ #\r
KeyList = []\r
for Item in self.LastSectionHeaderContent:\r
if (Item[1], Item[2]) not in KeyList:\r
\r
#\r
# Current section archs\r
- # \r
+ #\r
KeyList = []\r
Item = ['', '', '']\r
for Item in self.LastSectionHeaderContent:\r