Mercurial > dwindows
comparison makefile.vc @ 2172:81c50388851d
Win: Cleaner way to disable common function deprecation warnings.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 06 Oct 2020 04:41:40 +0000 |
parents | 6533fc42c951 |
children | b3989eee8d88 |
comparison
equal
deleted
inserted
replaced
2171:6533fc42c951 | 2172:81c50388851d |
---|---|
60 | 60 |
61 # | 61 # |
62 # Settings for either debug or release | 62 # Settings for either debug or release |
63 # | 63 # |
64 !if "$(DEBUG)" == "Y" | 64 !if "$(DEBUG)" == "Y" |
65 # -D_CRT_SECURE_NO_WARNINGS disables unsafe string function warnings | |
66 # These can be perfectly safe if used properly but get enabled by -W3 | |
67 CFLAGS_DEBUG = -DDEBUG -Z7 -W3 -Od -MTd # was -Zi | 65 CFLAGS_DEBUG = -DDEBUG -Z7 -W3 -Od -MTd # was -Zi |
68 LINK_DEBUG = -debug | 66 LINK_DEBUG = -debug |
69 !else | 67 !else |
70 CFLAGS_DEBUG = -Ox -MT | 68 CFLAGS_DEBUG = -Ox -MT |
71 LINK_DEBUG = -release | 69 LINK_DEBUG = -release |
110 !if exists($(WINTOASTDIR)\src\wintoastlib.h) | 108 !if exists($(WINTOASTDIR)\src\wintoastlib.h) |
111 WINTOASTINC=-DBUILD_TOAST -I$(WINTOASTDIR)\src | 109 WINTOASTINC=-DBUILD_TOAST -I$(WINTOASTDIR)\src |
112 WINTOASTOBJ=wintoast.obj wintoastlib.obj | 110 WINTOASTOBJ=wintoast.obj wintoastlib.obj |
113 !endif | 111 !endif |
114 | 112 |
115 # Visual C CRT deprecates a lot of common functions, these lines | 113 # The Visual C CRT and other Windows components have deprecated lots of common functions |
116 # will hide the deprecation warnings, remove these options to see them | 114 # These options will hide the deprecation warnings; Comment the next line to see them |
117 CRT_FLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNING | 115 CRT_FLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNING -D_WINSOCK_DEPRECATED_NO_WARNINGS |
118 | 116 |
119 CFLAGS = -c $(PLATFORM_DEF) -D__WIN32__ -DMSVC -DTOOLBAR -DGDIPLUS -DAEROGLASS -D_UNICODE -DUNICODE -DBUILD_DLL -DISOLATION_AWARE_ENABLED=1 -I$(SRCDIR)\platform -I$(SRCDIR) $(WEBVIEW2INC) $(WINTOASTINC) $(SVNVERSION) $(CRT_FLAGS) | 117 CFLAGS = -c $(PLATFORM_DEF) -D__WIN32__ -DMSVC -DTOOLBAR -DGDIPLUS -DAEROGLASS -D_UNICODE -DUNICODE -DBUILD_DLL -DISOLATION_AWARE_ENABLED=1 -I$(SRCDIR)\platform -I$(SRCDIR) $(WEBVIEW2INC) $(WINTOASTINC) $(SVNVERSION) $(CRT_FLAGS) |
120 LIBS = wsock32.lib kernel32.lib user32.lib comctl32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib ole32.lib oleaut32.lib userenv.lib msimg32.lib gdiplus.lib $(WEBVIEW2LIB) | 118 LIBS = wsock32.lib kernel32.lib user32.lib comctl32.lib gdi32.lib advapi32.lib shell32.lib comdlg32.lib ole32.lib oleaut32.lib userenv.lib msimg32.lib gdiplus.lib $(WEBVIEW2LIB) |
121 RES = | 119 RES = |
122 LINKFLAGS = -machine:$(TARGET_CPU) -manifest $(LINK_DEBUG) | 120 LINKFLAGS = -machine:$(TARGET_CPU) -manifest $(LINK_DEBUG) |