]>
Commit | Line | Data |
---|---|---|
3e61b953 MK |
1 | ## @file\r |
2 | # UnitTestFrameworkPkg DSC include file for host based test DSC\r | |
3 | #\r | |
4 | # Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>\r | |
5 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | #\r | |
7 | ##\r | |
8 | \r | |
9 | !include UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc\r | |
10 | \r | |
11 | [LibraryClasses.common.HOST_APPLICATION]\r | |
a0a49eb8 MK |
12 | BaseLib|MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf\r |
13 | UnitTestHostBaseLib|MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf\r | |
14 | CpuLib|MdePkg/Library/BaseCpuLibNull/BaseCpuLibNull.inf\r | |
15 | CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLibNull/BaseCacheMaintenanceLibNull.inf\r | |
3e61b953 MK |
16 | CmockaLib|UnitTestFrameworkPkg/Library/CmockaLib/CmockaLib.inf\r |
17 | UnitTestLib|UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLibCmocka.inf\r | |
18 | DebugLib|UnitTestFrameworkPkg/Library/Posix/DebugLibPosix/DebugLibPosix.inf\r | |
19 | MemoryAllocationLib|UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAllocationLibPosix.inf\r | |
20 | \r | |
21 | [BuildOptions]\r | |
22 | GCC:*_*_*_CC_FLAGS = -fno-pie\r | |
35f9d7c4 MK |
23 | !ifdef $(UNIT_TESTING_DEBUG)\r |
24 | MSFT:*_*_*_CC_FLAGS = -D UNIT_TESTING_DEBUG=1\r | |
25 | GCC:*_*_*_CC_FLAGS = -D UNIT_TESTING_DEBUG=1\r | |
26 | XCODE:*_*_*_CC_FLAGS = -D UNIT_TESTING_DEBUG=1\r | |
27 | !endif\r | |
3e61b953 MK |
28 | \r |
29 | [BuildOptions.common.EDKII.HOST_APPLICATION]\r | |
30 | #\r | |
31 | # MSFT\r | |
32 | #\r | |
f0871594 | 33 | MSFT:*_*_*_DLINK_FLAGS == /out:"$(BIN_DIR)\$(BASE_NAME).exe" /pdb:"$(BIN_DIR)\$(BASE_NAME).pdb" /IGNORE:4001 /NOLOGO /SUBSYSTEM:CONSOLE /DEBUG /STACK:0x40000,0x40000 /NODEFAULTLIB:libcmt.lib libcmtd.lib\r |
3e61b953 MK |
34 | MSFT:*_*_IA32_DLINK_FLAGS = /MACHINE:I386\r |
35 | MSFT:*_*_X64_DLINK_FLAGS = /MACHINE:AMD64\r | |
36 | \r | |
37 | MSFT:*_VS2015_IA32_DLINK_FLAGS = /LIBPATH:"%VS2015_PREFIX%Lib" /LIBPATH:"%VS2015_PREFIX%VC\Lib" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x86" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x86"\r | |
38 | MSFT:*_VS2015x86_IA32_DLINK_FLAGS = /LIBPATH:"%VS2015_PREFIX%Lib" /LIBPATH:"%VS2015_PREFIX%VC\Lib" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x86" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x86"\r | |
39 | MSFT:*_VS2017_IA32_DLINK_FLAGS = /LIBPATH:"%VCToolsInstallDir%lib\x86" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x86" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x86"\r | |
40 | MSFT:*_VS2019_IA32_DLINK_FLAGS = /LIBPATH:"%VCToolsInstallDir%lib\x86" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x86" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x86"\r | |
41 | \r | |
42 | MSFT:*_VS2015_X64_DLINK_FLAGS = /LIBPATH:"%VS2015_PREFIX%VC\Lib\AMD64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64"\r | |
43 | MSFT:*_VS2015x86_X64_DLINK_FLAGS = /LIBPATH:"%VS2015_PREFIX%VC\Lib\AMD64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64"\r | |
44 | MSFT:*_VS2017_X64_DLINK_FLAGS = /LIBPATH:"%VCToolsInstallDir%lib\x64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64"\r | |
45 | MSFT:*_VS2019_X64_DLINK_FLAGS = /LIBPATH:"%VCToolsInstallDir%lib\x64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64"\r | |
46 | \r | |
47 | #\r | |
48 | # GCC\r | |
49 | #\r | |
50 | GCC:*_*_IA32_DLINK_FLAGS == -o $(BIN_DIR)/$(BASE_NAME) -m32 -no-pie\r | |
51 | GCC:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/$(BASE_NAME) -m64 -no-pie\r | |
52 | GCC:*_*_*_DLINK2_FLAGS == -lgcov\r | |
53 | \r | |
54 | #\r | |
55 | # Need to do this link via gcc and not ld as the pathing to libraries changes from OS version to OS version\r | |
56 | #\r | |
57 | XCODE:*_*_IA32_DLINK_PATH == gcc\r | |
58 | XCODE:*_*_IA32_CC_FLAGS = -I$(WORKSPACE)/EmulatorPkg/Unix/Host/X11IncludeHack\r | |
59 | XCODE:*_*_IA32_DLINK_FLAGS == -arch i386 -o $(BIN_DIR)/Host -L/usr/X11R6/lib -lXext -lX11 -framework Carbon\r | |
60 | XCODE:*_*_IA32_ASM_FLAGS == -arch i386 -g\r | |
61 | \r | |
62 | XCODE:*_*_X64_DLINK_PATH == gcc\r | |
63 | XCODE:*_*_X64_DLINK_FLAGS == -o $(BIN_DIR)/Host -L/usr/X11R6/lib -lXext -lX11 -framework Carbon -Wl,-no_pie\r | |
64 | XCODE:*_*_X64_ASM_FLAGS == -g\r | |
65 | XCODE:*_*_X64_CC_FLAGS = -O0 -target x86_64-apple-darwin -I$(WORKSPACE)/EmulatorPkg/Unix/Host/X11IncludeHack "-DEFIAPI=__attribute__((ms_abi))"\r |