]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/MdePkg.dsc
MdePkg/Test: Add SafeIntLib and BaseLib Base64 unit tests
[mirror_edk2.git] / MdePkg / MdePkg.dsc
1 ## @file
2 # EFI/PI MdePkg Package
3 #
4 # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
5 # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
6 #
7 # SPDX-License-Identifier: BSD-2-Clause-Patent
8 #
9 ##
10
11 [Defines]
12 PLATFORM_NAME = Mde
13 PLATFORM_GUID = 082F8BFC-0455-4859-AE3C-ECD64FB81642
14 PLATFORM_VERSION = 1.08
15 DSC_SPECIFICATION = 0x00010005
16 OUTPUT_DIRECTORY = Build/Mde
17 SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64
18 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
19 SKUID_IDENTIFIER = DEFAULT
20
21 !include UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc
22
23 [PcdsFeatureFlag]
24 gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport|TRUE
25
26 [PcdsFixedAtBuild]
27 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
28 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
29 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
30
31 [LibraryClasses]
32 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
33
34 [Components]
35 MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
36 MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
37 MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
38 MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
39 MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
40 MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
41 MdePkg/Library/BaseLib/BaseLib.inf
42 MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
43 MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
44 MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
45 MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
46 MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
47 MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
48 MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
49 MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
50 MdePkg/Library/BasePciSegmentInfoLibNull/BasePciSegmentInfoLibNull.inf
51 MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf
52 MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePciSegmentLibSegmentInfo.inf
53 MdePkg/Library/BaseS3PciSegmentLib/BaseS3PciSegmentLib.inf
54 MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
55 MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
56 MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
57 MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
58 MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.inf
59 MdePkg/Library/BasePostCodeLibPort80/BasePostCodeLibPort80.inf
60 MdePkg/Library/BasePrintLib/BasePrintLib.inf
61 MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
62 MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
63 MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
64 MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
65 MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
66 MdePkg/Library/BaseUefiDecompressLib/BaseUefiTianoCustomDecompressLib.inf
67 MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
68 MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
69 MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf
70
71 MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
72 MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
73 MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
74 MdePkg/Library/DxeHobLib/DxeHobLib.inf
75 MdePkg/Library/DxePcdLib/DxePcdLib.inf
76 MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
77 MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
78 MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf
79 MdePkg/Library/DxeIoLibCpuIo2/DxeIoLibCpuIo2.inf
80 MdePkg/Library/DxeHstiLib/DxeHstiLib.inf
81 MdePkg/Library/DxeRuntimePciExpressLib/DxeRuntimePciExpressLib.inf
82 MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
83
84 MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
85 MdePkg/Library/PeiDxePostCodeLibReportStatusCode/PeiDxePostCodeLibReportStatusCode.inf
86 MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
87 MdePkg/Library/PeiHobLib/PeiHobLib.inf
88 MdePkg/Library/PeiIoLibCpuIo/PeiIoLibCpuIo.inf
89 MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
90 MdePkg/Library/PeiMemoryLib/PeiMemoryLib.inf
91 MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
92 MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
93 MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
94 MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
95 MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
96 MdePkg/Library/PeiSmbusLibSmbus2Ppi/PeiSmbusLibSmbus2Ppi.inf
97 MdePkg/Library/PeiPciLibPciCfg2/PeiPciLibPciCfg2.inf
98 MdePkg/Library/PeiPciSegmentLibPciCfg2/PeiPciSegmentLibPciCfg2.inf
99
100 MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
101 MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
102 MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
103 MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtocol.inf
104 MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
105 MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
106 MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf
107 MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
108 MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
109 MdePkg/Library/UefiLib/UefiLib.inf
110 MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
111 MdePkg/Library/UefiMemoryLib/UefiMemoryLib.inf
112 MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
113 MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
114 MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
115 MdePkg/Library/UefiPciLibPciRootBridgeIo/UefiPciLibPciRootBridgeIo.inf
116 MdePkg/Library/UefiPciSegmentLibPciRootBridgeIo/UefiPciSegmentLibPciRootBridgeIo.inf
117 MdePkg/Library/SmmLibNull/SmmLibNull.inf
118 MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
119
120 MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
121 MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
122
123 #
124 # Add UEFI Target Based Unit Tests
125 #
126 MdePkg/Test/UnitTest/Library/BaseLib/BaseLibUnitTestsUefi.inf
127
128 #
129 # Build PEIM, DXE_DRIVER, SMM_DRIVER, UEFI Shell components that test SafeIntLib
130 #
131 MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibPei.inf
132 MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibDxe.inf
133 MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibSmm.inf
134 MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibUefiShell.inf
135
136 [Components.IA32, Components.X64]
137 MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
138 MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
139 MdePkg/Library/BaseMemoryLibMmx/BaseMemoryLibMmx.inf
140 MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
141 MdePkg/Library/BaseMemoryLibOptPei/BaseMemoryLibOptPei.inf
142 MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
143 MdePkg/Library/BaseMemoryLibSse2/BaseMemoryLibSse2.inf
144 MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
145 MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
146 MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
147 MdePkg/Library/SmmIoLibSmmCpuIo2/SmmIoLibSmmCpuIo2.inf
148 MdePkg/Library/SmmPciLibPciRootBridgeIo/SmmPciLibPciRootBridgeIo.inf
149 MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
150 MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
151 MdePkg/Library/SmmPeriodicSmiLib/SmmPeriodicSmiLib.inf
152 MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf
153 MdePkg/Library/BaseS3IoLib/BaseS3IoLib.inf
154 MdePkg/Library/BaseS3PciLib/BaseS3PciLib.inf
155 MdePkg/Library/BaseS3SmbusLib/BaseS3SmbusLib.inf
156 MdePkg/Library/BaseS3StallLib/BaseS3StallLib.inf
157 MdePkg/Library/SmmMemLib/SmmMemLib.inf
158 MdePkg/Library/SmmIoLib/SmmIoLib.inf
159 MdePkg/Library/BaseRngLib/BaseRngLib.inf
160 MdePkg/Library/SmmPciExpressLib/SmmPciExpressLib.inf
161 MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.inf
162 MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
163
164 [Components.EBC]
165 MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
166 MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
167
168 [Components.ARM, Components.AARCH64]
169 MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf
170 MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
171
172 [BuildOptions]
173 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES