# The Emulation Platform can be used to debug individual modules, prior to creating\r
# a real platform. This also provides an example for how an DSC is created.\r
#\r
-# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
# Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.<BR>\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
OUTPUT_DIRECTORY = Build/Emulator$(ARCH)\r
\r
SUPPORTED_ARCHITECTURES = X64|IA32\r
- BUILD_TARGETS = DEBUG|RELEASE\r
+ BUILD_TARGETS = DEBUG|RELEASE|NOOPT\r
SKUID_IDENTIFIER = DEFAULT\r
FLASH_DEFINITION = EmulatorPkg/EmulatorPkg.fdf\r
\r
gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|10\r
\r
[Components]\r
-!ifdef $(UNIX_SEC_BUILD)\r
- ##\r
- # Emulator, OS POSIX application\r
- ##\r
- EmulatorPkg/Unix/Host/Host.inf\r
-!endif\r
-\r
-!ifdef $(WIN_SEC_BUILD)\r
- ##\r
- # Emulator, OS WIN application\r
- ##\r
- EmulatorPkg/Win/Host/WinHost.inf\r
+!if "IA32" in $(ARCH) || "X64" in $(ARCH)\r
+ !if "MSFT" in $(FAMILY) || $(WIN_HOST_BUILD) == TRUE\r
+ ##\r
+ # Emulator, OS WIN application\r
+ # CLANGPDB is cross OS tool chain. It depends on WIN_HOST_BUILD flag\r
+ # to build WinHost application.\r
+ ##\r
+ EmulatorPkg/Win/Host/WinHost.inf\r
+ !else\r
+ ##\r
+ # Emulator, OS POSIX application\r
+ ##\r
+ EmulatorPkg/Unix/Host/Host.inf\r
+ !endif\r
!endif\r
\r
!ifndef $(SKIP_MAIN_BUILD)\r
\r
MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
+!if "XCODE5" not in $(TOOL_CHAIN_TAG)\r
MdeModulePkg/Logo/LogoDxe.inf\r
+!endif\r
MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv2.inf\r
MdeModulePkg/Application/UiApp/UiApp.inf {\r
<LibraryClasses>\r
\r
FatPkg/EnhancedFatDxe/Fat.inf\r
\r
+!if "XCODE5" not in $(TOOL_CHAIN_TAG)\r
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {\r
<PcdsFixedAtBuild>\r
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
}\r
+!endif\r
ShellPkg/Application/Shell/Shell.inf {\r
<LibraryClasses>\r
ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
!include NetworkPkg/Network.dsc.inc\r
\r
[BuildOptions]\r
+ #\r
+ # Disable deprecated APIs.\r
+ #\r
+ *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
+\r
MSFT:DEBUG_*_*_CC_FLAGS = /Od /Oy-\r
MSFT:NOOPT_*_*_CC_FLAGS = /Od /Oy-\r
+ GCC:DEBUG_CLANGPDB_*_CC_FLAGS =-O0 -Wno-unused-command-line-argument -Wno-incompatible-pointer-types -Wno-enum-conversion -Wno-incompatible-pointer-types -Wno-sometimes-uninitialized -Wno-constant-conversion -Wno-main-return-type\r
\r
MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096 /SUBSYSTEM:CONSOLE\r
MSFT:DEBUG_*_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000\r
MSFT:NOOPT_*_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000\r
\r
+!if $(WIN_HOST_BUILD) == TRUE\r
+ #\r
+ # CLANGPDB tool chain depends on WIN_HOST_BUILD flag to generate the windows application.\r
+ #\r
+ GCC:*_CLANGPDB_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096 /SUBSYSTEM:CONSOLE\r
+ GCC:DEBUG_CLANGPDB_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000\r
+ GCC:NOOPT_CLANGPDB_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000\r
+!endif\r