From 8299562630d5e6aa831cf0222abc947d7180ad9b Mon Sep 17 00:00:00 2001 From: Joe Mistachkin Date: Tue, 5 Dec 2017 19:07:30 +0000 Subject: [PATCH] For MSVC, simplify default locations for Tcl and ICU by using directories inside 'compat'. --- Makefile.msc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Makefile.msc b/Makefile.msc index e924db395a..c40d195404 100644 --- a/Makefile.msc +++ b/Makefile.msc @@ -92,6 +92,15 @@ SPLIT_AMALGAMATION = 0 !ENDIF # <> +# Set this non-0 to have this makefile assume the Tcl shell executable +# (tclsh*.exe) is available in the PATH. By default, this is enabled +# for compatibility with older build environments. This setting only +# applies if TCLSH_CMD is not set manually. +# +!IFNDEF USE_TCLSH_IN_PATH +USE_TCLSH_IN_PATH = 1 +!ENDIF + # Set this non-0 to use zlib, possibly compiling it from source code. # !IFNDEF USE_ZLIB @@ -825,7 +834,7 @@ RCC = $(RCC) -DSQLITE_WIN32_MALLOC_VALIDATE=1 # version on this machine. # !IFNDEF TCLDIR -TCLDIR = c:\tcl +TCLDIR = $(TOP)\compat\tcl !ENDIF !IFNDEF TCLINCDIR @@ -879,7 +888,7 @@ ZLIBLIB = zlib.lib # this machine. # !IFNDEF ICUDIR -ICUDIR = C:\icu +ICUDIR = $(TOP)\compat\icu !ENDIF !IFNDEF ICUINCDIR @@ -900,7 +909,11 @@ LIBICU = icuuc.lib icuin.lib # specific Tcl shell to use. # !IFNDEF TCLSH_CMD +!IF $(USE_TCLSH_IN_PATH)!=0 TCLSH_CMD = tclsh +!ELSE +TCLSH_CMD = $(TCLDIR)\bin\tclsh.exe +!ENDIF !ENDIF # <> -- 2.11.4.GIT