terminal/src/project.inc
Dustin Howett f8ffc439e5 Merged PR 5425054: [Git2Git] conhost: explicitly set /utf-8 on the compiler commandline
One of our test files has some raw Emoji in it. I expect that as time
goes by, more and more files will have UTF-8 in them.

Fixes MSFT-30289536

Retrieved from https://microsoft.visualstudio.com os.2020 OS official/rs_onecore_dep_uxp d828ae0f6c209259019934711c587ea075eab77e
2020-11-19 23:25:34 +00:00

62 lines
2 KiB
PHP

# -------------------------------------
# Windows Console
# - Common Project Configuration
# -------------------------------------
!include $(OSDEPENDSROOT)\OSS\gsl\3.1.0\consume.inc
# -------------------------------------
# Preprocessor Settings
# -------------------------------------
UNICODE = 1
C_DEFINES = $(C_DEFINES) -DUNICODE -D_UNICODE -DFMT_HEADER_ONLY
# -------------------------------------
# CRT Configuration
# -------------------------------------
USE_UNICRT = 1
USE_MSVCRT = 1
NO_WCHAR_T = 1 # use native wchar_t
USE_STL = 1
STL_VER = STL_VER_CURRENT
USE_NATIVE_EH = 1
# -------------------------------------
# Compiler Settings
# -------------------------------------
MSC_WARNING_LEVEL = /W4 /WX
USER_C_FLAGS = $(USER_C_FLAGS) /utf-8
# -------------------------------------
# Common Console Includes and Libraries
# -------------------------------------
CONSOLE_SRC_PATH = $(PROJECT_ROOT)\core\console\open\src
CONSOLE_OBJ_PATH = $(WINCORE_OBJ_PATH)\console\open\src
INCLUDES= \
$(INCLUDES); \
$(CONSOLE_SRC_PATH)\inc; \
$(CONSOLE_SRC_PATH)\..\..\inc; \
$(CONSOLE_SRC_PATH)\..\oss\dynamic_bitset; \
$(CONSOLE_SRC_PATH)\..\oss\libpopcnt; \
$(CONSOLE_SRC_PATH)\..\oss\chromium; \
$(CONSOLE_SRC_PATH)\..\oss\fmt\include; \
$(CONSOLE_SRC_PATH)\..\oss\interval_tree; \
$(MINWIN_INTERNAL_PRIV_SDK_INC_PATH_L); \
$(MINWIN_RESTRICTED_PRIV_SDK_INC_PATH_L); \
$(MINCORE_INTERNAL_PRIV_SDK_INC_PATH_L); \
$(ONECORE_INTERNAL_SDK_INC_PATH); \
$(ONECORE_EXTERNAL_SDK_INC_PATH); \
# -------------------------------------
# Linker Settings
# -------------------------------------
# Add the ConsoleTypes.natvis to our binaries, so the PDB's will have the info
# embedded by default
LINKER_FLAGS = $(LINKER_FLAGS) /natvis:$(CONSOLE_SRC_PATH)\..\tools\ConsoleTypes.natvis