]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Workspace/InfBuildData.py
BaseTools: Replace EDK Component strings with predefined constant
[mirror_edk2.git] / BaseTools / Source / Python / Workspace / InfBuildData.py
index d64a281a98f7a22ac691cf824f017246aee66131..27ef163eb40c5288314c9621a4072d670395f7dd 100644 (file)
@@ -344,7 +344,7 @@ class InfBuildData(ModuleBuildClassObject):
             self._BuildType = self._ComponentType.upper()\r
             if self._ComponentType in COMPONENT_TO_MODULE_MAP_DICT:\r
                 self._ModuleType = COMPONENT_TO_MODULE_MAP_DICT[self._ComponentType]\r
-            if self._ComponentType == 'LIBRARY':\r
+            if self._ComponentType == EDK_COMPONENT_TYPE_LIBRARY:\r
                 self._LibraryClass = [LibraryClassObject(self._BaseName, SUP_MODULE_LIST)]\r
             # make use some [nmake] section macros\r
             Macros = self._Macros\r