/ Check-in [6d9cdb93]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove AWK requirement from the MSVC batch build tool.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | omit-awk
Files: files | file ages | folders
SHA1: 6d9cdb931cf4e2f0830184cff32e441e4966bd7e
User & Date: mistachkin 2015-10-12 03:56:21
Context
2015-10-14
20:03
Update makefiles to remove all uses of "awk" - to make building SQLite easier on Windows systems. The only requirements now are tclsh, a C compiler, and common file utilities. check-in: 4bd0d43d user: drh tags: trunk
2015-10-12
03:56
Remove AWK requirement from the MSVC batch build tool. Closed-Leaf check-in: 6d9cdb93 user: mistachkin tags: omit-awk
03:44
The TclKit batch tool should not download the TclKit SDK when the TCLKIT_NOSDK environment variable is set. check-in: 7c5d583b user: mistachkin tags: omit-awk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/build-all-msvc.bat.

    25     25   REM                        tool\build-all-msvc.bat C:\Temp
    26     26   REM
    27     27   REM In the example above, "C:\dev\sqlite\core" represents the root of the
    28     28   REM source tree for SQLite and "C:\Temp" represents the final destination
    29     29   REM directory for the generated output files.
    30     30   REM
    31     31   REM Please note that the SQLite build process performed by the Makefile
    32         -REM associated with this batch script requires both Gawk ^(gawk.exe^) and Tcl
    33         -REM 8.5 ^(tclsh85.exe^) to be present in a directory contained in the PATH
    34         -REM environment variable unless a pre-existing amalgamation file is used.
           32  +REM associated with this batch script requires a Tcl shell to be present
           33  +REM in a directory contained in the PATH environment variable unless a
           34  +REM pre-existing amalgamation file is used.
    35     35   REM
    36     36   REM There are several environment variables that may be set to modify the
    37     37   REM behavior of this batch script and its associated Makefile.  The list of
    38     38   REM platforms to build may be overriden by using the PLATFORMS environment
    39     39   REM variable, which should contain a list of platforms ^(e.g. x86 x86_amd64
    40     40   REM x86_arm^).  All platforms must be supported by the version of Visual Studio
    41     41   REM being used.  The list of configurations to build may be overridden by
................................................................................
   228    228   %_VECHO% x86_x64_Name = '%x86_x64_NAME%'
   229    229   
   230    230   REM
   231    231   REM NOTE: Check for the external tools needed during the build process ^(i.e.
   232    232   REM       those that do not get compiled as part of the build process itself^)
   233    233   REM       along the PATH.
   234    234   REM
   235         -FOR %%T IN (gawk.exe tclsh85.exe) DO (
          235  +IF DEFINED TCLSH_CMD (
          236  +  SET TCLSH_FILE=%TCLSH_CMD%
          237  +) ELSE (
          238  +  SET TCLSH_FILE=tclsh85.exe
          239  +)
          240  +
          241  +FOR %%T IN (%TCLSH_FILE%) DO (
   236    242     SET %%T_PATH=%%~dp$PATH:T
   237    243   )
   238    244   
   239    245   REM
   240         -REM NOTE: The Gawk executable "gawk.exe" is required during the SQLite build
   241         -REM       process unless a pre-existing amalgamation file is used.
          246  +REM NOTE: A Tcl shell executable is required during the SQLite build process
          247  +REM       unless a pre-existing amalgamation file is used.
   242    248   REM
   243         -IF NOT DEFINED gawk.exe_PATH (
   244         -  ECHO The Gawk executable "gawk.exe" is required to be in the PATH.
   245         -  GOTO errors
   246         -)
   247         -
   248         -REM
   249         -REM NOTE: The Tcl 8.5 executable "tclsh85.exe" is required during the SQLite
   250         -REM       build process unless a pre-existing amalgamation file is used.
   251         -REM
   252         -IF NOT DEFINED tclsh85.exe_PATH (
   253         -  ECHO The Tcl 8.5 executable "tclsh85.exe" is required to be in the PATH.
          249  +IF NOT DEFINED %TCLSH_FILE%_PATH (
          250  +  ECHO The Tcl shell executable "%TCLSH_FILE%" is required to be in the PATH.
   254    251     GOTO errors
   255    252   )
   256    253   
   257    254   REM
   258    255   REM NOTE: Set the TOOLPATH variable to contain all the directories where the
   259    256   REM       external tools were found in the search above.
   260    257   REM
   261         -SET TOOLPATH=%gawk.exe_PATH%;%tclsh85.exe_PATH%
          258  +CALL :fn_CopyVariable %TCLSH_FILE%_PATH TOOLPATH
   262    259   
   263    260   %_VECHO% ToolPath = '%TOOLPATH%'
   264    261   
   265    262   REM
   266    263   REM NOTE: Setting the Windows SDK library path is only required for MSVC
   267    264   REM       2012, 2013, and 2015.
   268    265   REM