1 | ## @file
|
---|
2 | # MdeModulePkg DSC file used to build host-based unit tests.
|
---|
3 | #
|
---|
4 | # Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
|
---|
5 | # Copyright (C) Microsoft Corporation.
|
---|
6 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 | #
|
---|
8 | ##
|
---|
9 |
|
---|
10 | [Defines]
|
---|
11 | PLATFORM_NAME = MdeModulePkgHostTest
|
---|
12 | PLATFORM_GUID = F74AF7C6-698C-4EBA-BA49-FF6816916354
|
---|
13 | PLATFORM_VERSION = 0.1
|
---|
14 | DSC_SPECIFICATION = 0x00010005
|
---|
15 | OUTPUT_DIRECTORY = Build/MdeModulePkg/HostTest
|
---|
16 | SUPPORTED_ARCHITECTURES = IA32|X64
|
---|
17 | BUILD_TARGETS = NOOPT
|
---|
18 | SKUID_IDENTIFIER = DEFAULT
|
---|
19 |
|
---|
20 | !include UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc
|
---|
21 |
|
---|
22 | [LibraryClasses]
|
---|
23 | SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
---|
24 |
|
---|
25 | [Components]
|
---|
26 | MdeModulePkg/Library/DxeResetSystemLib/UnitTest/MockUefiRuntimeServicesTableLib.inf
|
---|
27 |
|
---|
28 | #
|
---|
29 | # Build MdeModulePkg HOST_APPLICATION Tests
|
---|
30 | #
|
---|
31 | MdeModulePkg/Library/DxeResetSystemLib/UnitTest/DxeResetSystemLibUnitTestHost.inf {
|
---|
32 | <LibraryClasses>
|
---|
33 | ResetSystemLib|MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.inf
|
---|
34 | UefiRuntimeServicesTableLib|MdeModulePkg/Library/DxeResetSystemLib/UnitTest/MockUefiRuntimeServicesTableLib.inf
|
---|
35 | }
|
---|
36 |
|
---|
37 | MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/VariableLockRequestToLockUnitTest.inf {
|
---|
38 | <LibraryClasses>
|
---|
39 | VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
|
---|
40 | VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
|
---|
41 | <PcdsFixedAtBuild>
|
---|
42 | gEfiMdeModulePkgTokenSpaceGuid.PcdAllowVariablePolicyEnforcementDisable|TRUE
|
---|
43 | }
|
---|
44 |
|
---|
45 | MdeModulePkg/Library/UefiSortLib/UnitTest/UefiSortLibUnitTest.inf {
|
---|
46 | <LibraryClasses>
|
---|
47 | UefiSortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
|
---|
48 | DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
---|
49 | }
|
---|
50 |
|
---|
51 | MdeModulePkg/Library/UefiSortLib/GoogleTest/UefiSortLibGoogleTest.inf {
|
---|
52 | <LibraryClasses>
|
---|
53 | UefiSortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
|
---|
54 | DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
---|
55 | }
|
---|
56 |
|
---|
57 | #
|
---|
58 | # Build HOST_APPLICATION Libraries
|
---|
59 | #
|
---|
60 | MdeModulePkg/Test/Mock/Library/GoogleTest/MockPciHostBridgeLib/MockPciHostBridgeLib.inf
|
---|