comparison src/Make_mvc.mak @ 20723:8b2d3cd55f97 v8.2.0914

patch 8.2.0914: MS-Windows: cannot specify a "modified by" text Commit: https://github.com/vim/vim/commit/d8df304c59040ef6689a1e4af1dac27ce566909e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 6 16:18:46 2020 +0200 patch 8.2.0914: MS-Windows: cannot specify a "modified by" text Problem: MS-Windows: cannot specify a "modified by" text. Solution: Add MODIFIED_BY in the MSVC build file. (Chen Lei, closes https://github.com/vim/vim/issues/1275)
author Bram Moolenaar <Bram@vim.org>
date Sat, 06 Jun 2020 16:30:04 +0200
parents 6c5b11458f31
children b1fac55cf8a3
comparison
equal deleted inserted replaced
20722:815649381f0f 20723:8b2d3cd55f97
20 # SDK_INCLUDE_DIR="C:\Program Files\Microsoft SDKs\Windows\v7.1\Include" 20 # SDK_INCLUDE_DIR="C:\Program Files\Microsoft SDKs\Windows\v7.1\Include"
21 # 21 #
22 # !!!! After changing features do "nmake clean" first !!!! 22 # !!!! After changing features do "nmake clean" first !!!!
23 # 23 #
24 # Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is HUGE) 24 # Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is HUGE)
25 #
26 # Name to add to the version: MODIFIED_BY=[name of modifier]
25 # 27 #
26 # GUI interface: GUI=yes (default is no) 28 # GUI interface: GUI=yes (default is no)
27 # 29 #
28 # GUI with DirectWrite (DirectX): DIRECTX=yes 30 # GUI with DirectWrite (DirectX): DIRECTX=yes
29 # (default is yes if GUI=yes, requires GUI=yes) 31 # (default is yes if GUI=yes, requires GUI=yes)
1243 # FEATURES: TINY, SMALL, NORMAL, BIG or HUGE 1245 # FEATURES: TINY, SMALL, NORMAL, BIG or HUGE
1244 # 1246 #
1245 CFLAGS = $(CFLAGS) -DFEAT_$(FEATURES) 1247 CFLAGS = $(CFLAGS) -DFEAT_$(FEATURES)
1246 1248
1247 # 1249 #
1250 # MODIFIED_BY - Name of who modified a release version
1251 #
1252 !if "$(MODIFIED_BY)" != ""
1253 CFLAGS = $(CFLAGS) -DMODIFIED_BY=\"$(MODIFIED_BY)\"
1254 !endif
1255
1256 #
1248 # Always generate the .pdb file, so that we get debug symbols that can be used 1257 # Always generate the .pdb file, so that we get debug symbols that can be used
1249 # on a crash (doesn't add overhead to the executable). 1258 # on a crash (doesn't add overhead to the executable).
1250 # Generate edit-and-continue debug info when no optimization - allows to 1259 # Generate edit-and-continue debug info when no optimization - allows to
1251 # debug more conveniently (able to look at variables which are in registers) 1260 # debug more conveniently (able to look at variables which are in registers)
1252 # 1261 #
1850 1859
1851 $(OUTDIR)/vterm_vterm.obj: $(OUTDIR) libvterm/src/vterm.c $(TERM_DEPS) 1860 $(OUTDIR)/vterm_vterm.obj: $(OUTDIR) libvterm/src/vterm.c $(TERM_DEPS)
1852 $(CCCTERM) /Fo$@ libvterm/src/vterm.c 1861 $(CCCTERM) /Fo$@ libvterm/src/vterm.c
1853 1862
1854 1863
1855 # $CFLAGS may contain backslashes and double quotes, escape them both. 1864 # $CFLAGS may contain backslashes, quotes and chevrons, escape them all.
1856 E0_CFLAGS = $(CFLAGS:\=\\) 1865 E0_CFLAGS = $(CFLAGS:\=\\)
1857 E_CFLAGS = $(E0_CFLAGS:"=\") 1866 E00_CFLAGS = $(E0_CFLAGS:"=\")
1858 # ") stop the string 1867 # ") stop the string
1859 # $LINKARGS2 may contain backslashes and double quotes, escape them both. 1868 E000_CFLAGS = $(E00_CFLAGS:<=^^<)
1869 E_CFLAGS = $(E000_CFLAGS:>=^^>)
1870 # $LINKARGS2 may contain backslashes, quotes and chevrons, escape them all.
1860 E0_LINKARGS2 = $(LINKARGS2:\=\\) 1871 E0_LINKARGS2 = $(LINKARGS2:\=\\)
1861 E_LINKARGS2 = $(E0_LINKARGS2:"=\") 1872 E00_LINKARGS2 = $(E0_LINKARGS2:"=\")
1862 # ") stop the string 1873 # ") stop the string
1874 E000_LINKARGS2 = $(E00_LINKARGS2:<=^^<)
1875 E_LINKARGS2 = $(E000_LINKARGS2:>=^^>)
1863 1876
1864 $(PATHDEF_SRC): Make_mvc.mak 1877 $(PATHDEF_SRC): Make_mvc.mak
1865 @echo creating $(PATHDEF_SRC) 1878 @echo creating $(PATHDEF_SRC)
1866 @echo /* pathdef.c */ > $(PATHDEF_SRC) 1879 @echo /* pathdef.c */ > $(PATHDEF_SRC)
1867 @echo #include "vim.h" >> $(PATHDEF_SRC) 1880 @echo #include "vim.h" >> $(PATHDEF_SRC)