2018-08-23 07:02:52 +02:00
|
|
|
## @file
|
|
|
|
# Entry Point of Win Emulator
|
|
|
|
#
|
|
|
|
# Main executable file of Win Emulator that loads Sec core after initialization finished.
|
2019-05-16 23:56:30 +02:00
|
|
|
# Copyright (c) 2008 - 2019, Intel Corporation. All rights reserved.<BR>
|
2018-08-23 07:02:52 +02:00
|
|
|
# Portions copyright (c) 2008 - 2011, Apple Inc. All rights reserved.<BR>
|
|
|
|
#
|
2019-04-04 01:03:44 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2018-08-23 07:02:52 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
[Defines]
|
|
|
|
INF_VERSION = 0x00010005
|
|
|
|
BASE_NAME = WinHost
|
|
|
|
FILE_GUID = 62E8F833-2B0A-4C19-A966-63C180588BE7
|
|
|
|
MODULE_TYPE = USER_DEFINED
|
|
|
|
VERSION_STRING = 1.0
|
|
|
|
|
|
|
|
#
|
|
|
|
# The following information is for reference only and not required by the build tools.
|
|
|
|
#
|
|
|
|
# VALID_ARCHITECTURES = IA32 X64
|
|
|
|
#
|
|
|
|
|
|
|
|
[Sources]
|
|
|
|
WinMemoryAllocationLib.c
|
2018-08-23 07:33:54 +02:00
|
|
|
WinGopInput.c
|
|
|
|
WinGopScreen.c
|
|
|
|
WinGop.h
|
2018-08-23 07:43:00 +02:00
|
|
|
WinFileSystem.c
|
2018-08-23 09:36:15 +02:00
|
|
|
WinBlockIo.c
|
2018-08-23 07:02:52 +02:00
|
|
|
WinThunk.c
|
|
|
|
WinHost.h
|
|
|
|
WinHost.c
|
|
|
|
WinInclude.h
|
|
|
|
|
|
|
|
[Packages]
|
|
|
|
MdePkg/MdePkg.dec
|
|
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
EmulatorPkg/EmulatorPkg.dec
|
|
|
|
|
|
|
|
[LibraryClasses]
|
|
|
|
DebugLib
|
|
|
|
PcdLib
|
|
|
|
PrintLib
|
|
|
|
BaseMemoryLib
|
|
|
|
BaseLib
|
|
|
|
PeCoffLib
|
|
|
|
ThunkPpiList
|
|
|
|
ThunkProtocolList
|
|
|
|
PpiListLib
|
|
|
|
PeiServicesLib
|
2018-08-24 05:45:37 +02:00
|
|
|
FrameBufferBltLib
|
2018-08-23 07:02:52 +02:00
|
|
|
|
|
|
|
[Ppis]
|
|
|
|
gEmuThunkPpiGuid
|
|
|
|
|
2018-08-23 07:33:54 +02:00
|
|
|
[Protocols]
|
|
|
|
gEmuIoThunkProtocolGuid
|
|
|
|
gEmuGraphicsWindowProtocolGuid
|
2018-08-23 09:36:15 +02:00
|
|
|
gEmuBlockIoProtocolGuid
|
2018-08-23 07:43:00 +02:00
|
|
|
gEfiSimpleFileSystemProtocolGuid
|
|
|
|
|
|
|
|
[Guids]
|
|
|
|
gEfiFileSystemVolumeLabelInfoIdGuid # SOMETIMES_CONSUMED
|
|
|
|
gEfiFileInfoGuid # SOMETIMES_CONSUMED
|
|
|
|
gEfiFileSystemInfoGuid # SOMETIMES_CONSUMED
|
|
|
|
|
2018-08-23 07:02:52 +02:00
|
|
|
[Pcd]
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdInitValueInTempStack
|
|
|
|
|
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuBootMode
|
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareVolume
|
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySize
|
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuFdBaseAddress
|
2018-08-23 09:36:15 +02:00
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuVirtualDisk
|
2018-08-23 07:33:54 +02:00
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window"
|
2018-08-23 07:43:00 +02:00
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdEmuFileSystem
|
2018-08-23 07:02:52 +02:00
|
|
|
gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage
|
|
|
|
|
|
|
|
[BuildOptions]
|
2019-05-16 23:56:30 +02:00
|
|
|
MSFT:*_*_*_DLINK_FLAGS == /out:"$(BIN_DIR)\$(BASE_NAME).exe" /base:0x10000000 /pdb:"$(BIN_DIR)\$(BASE_NAME).pdb"
|
|
|
|
MSFT:*_*_*_CC_FLAGS == /nologo /W4 /WX /Gy /c /D UNICODE /Od /Oy- /FIAutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
|
|
|
|
MSFT:*_*_*_PP_FLAGS == /nologo /E /TC /FIAutoGen.h
|
2018-08-23 07:02:52 +02:00
|
|
|
|
2019-05-16 23:56:30 +02:00
|
|
|
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" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib vcruntimed.lib ucrtd.lib
|
|
|
|
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" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib vcruntimed.lib ucrtd.lib
|
2018-08-23 07:02:52 +02:00
|
|
|
MSFT:*_VS2017_IA32_DLINK_FLAGS = /LIBPATH:"%VCToolsInstallDir%lib\x86" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x86" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x86" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
|
|
|
MSFT:*_*_IA32_ASM_FLAGS == /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi
|
|
|
|
MSFT:*_*_IA32_ASMLINK_FLAGS == /link /nologo /tiny
|
|
|
|
|
2019-05-16 23:56:30 +02:00
|
|
|
MSFT:*_VS2015_X64_DLINK_FLAGS = /LIBPATH:"%VS2015_PREFIX%VC\Lib\AMD64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:AMD64 /LTCG Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
|
|
|
MSFT:*_VS2015x86_X64_DLINK_FLAGS = /LIBPATH:"%VS2015_PREFIX%VC\Lib\AMD64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:AMD64 /LTCG Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
2018-08-23 07:02:52 +02:00
|
|
|
MSFT:*_VS2017_X64_DLINK_FLAGS = /LIBPATH:"%VCToolsInstallDir%lib\x64" /LIBPATH:"%UniversalCRTSdkDir%lib\%UCRTVersion%\ucrt\x64" /LIBPATH:"%WindowsSdkDir%lib\%WindowsSDKLibVersion%\um\x64" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:AMD64 /LTCG Kernel32.lib MSVCRTD.lib vcruntimed.lib ucrtd.lib Gdi32.lib User32.lib Winmm.lib Advapi32.lib
|
|
|
|
MSFT:*_*_X64_ASM_FLAGS == /nologo /W3 /WX /c /Cx /Zd /W0 /Zi
|
|
|
|
MSFT:*_*_X64_ASMLINK_FLAGS == /link /nologo
|