@@ -24,7 +24,7 @@ Contents:
24245. Cross compiling for Win32 from a Linux machine
25256. Building with Python support
26267. Building with Python3 support
27- 8. Building with MzScheme support
27+ 8. Building with MzScheme/Racket support
28289. Building with Lua support
292910. Building with Perl support
303011. Building with Ruby support
@@ -415,8 +415,10 @@ E.g. When using MSVC (as one line):
415415 PYTHON3=C:\Python34 DYNAMIC_PYTHON3=yes PYTHON3_VER=34
416416
417417
418- 8. Building with MzScheme support
419- =================================
418+ 8. Building with MzScheme/Racket support
419+ ========================================
420+
421+ 1) Building with MzScheme support
420422
421423(written by Sergey Khorev <
[email protected] >)
422424
@@ -451,31 +453,75 @@ After a successful build, these dlls can be freely removed, leaving them in
451453%WINDOWS%\System32 only.
452454
453455
456+ 2) Building with Racket support
457+
458+ MzScheme and PLT Scheme names have been rebranded as Racket. Vim with Racket
459+ (https://racket-lang.org/) support can be built with either MSVC or MinGW (or
460+ Cygwin).
461+
462+ You need to set the following variables:
463+
464+ MZSCHEME: Where Racket is installed.
465+ E.g. C:\Program Files (x86)\Racket
466+ DYNAMIC_MZSCHEME: Whether dynamic linking is used. Usually, set to yes.
467+ MZSCHEME_VER: Racket DLL version. E.g. 3m_9z0ds0 for Racket 6.3.
468+ MZSCHEME_COLLECTS: (Optional) Path of the collects directory used at
469+ runtime. Default: $(MZSCHEME)\collects
470+ User can override this with the PLTCOLLECTS environment
471+ variable.
472+
473+ E.g. When using MSVC (as one line):
474+
475+ nmake -f Make_mvc.mak
476+ MZSCHEME="C:\Program Files (x86)\Racket" DYNAMIC_MZSCHEME=yes
477+ MZSCHEME_VER=3m_9z0ds0
478+
479+ Or when using MinGW (as one line):
480+
481+ mingw32-make -f Make_ming.mak
482+ MZSCHEME='C:/Program\ Files\ (x86)/Racket' DYNAMIC_MZSCHEME=yes
483+ MZSCHEME_VER=3m_9z0ds0
484+
485+ Spaces should be escaped with '\'.
486+
487+
4544889. Building with Lua support
455489============================
456490
457- Vim with Lua support can be built with either MSVC or MinGW (or Cygwin).
458- You can use binaries from LuaBinaries.
459- http://luabinaries.sourceforge.net/
491+ Vim with Lua support can be built with either MSVC or MinGW (or maybe Cygwin).
492+ You can use binaries from LuaBinaries: http://luabinaries.sourceforge.net/
493+ This also applies to when you get a Vim executable and don't build yourself,
494+ do the part up to "Build".
460495
4614961) Download and install LuaBinaries
497+
462498Go to the Download page of LuaBinaries:
463- http://luabinaries.sourceforge.net/download.html
499+ http://luabinaries.sourceforge.net/download.html
464500
465501Download lua-X.Y.Z_Win32_dllw4_lib.zip for x86 or
466- lua-X.Y.Z_Win64_dllw4_lib.zip for x64. You can use them for both MSVC and
502+ lua-X.Y.Z_Win64_dllw4_lib.zip for x64. You can use them both for MSVC and
467503MinGW.
468504
469505Unpack it to a working directory. E.g. C:\projects\lua53.
470506Lua's header files will be installed under the include directory.
471507
508+ Copy luaXY.dll to your Windows system directory. The system directory depends
509+ on your Windows bitness and Vim bitness:
510+ 32-bit Vim on 32-bit Windows: C:\Windows\System32
511+ 32-bit Vim on 64-bit Windows: C:\Windows\SysWOW64
512+ 64-bit Vim on 64-bit Windows: C:\Windows\System32
513+
514+ Or another option is copying luaXY.dll to the directory where gvim.exe
515+ (or vim.exe) is.
516+
472517
4735182) Build
474- You need to set the following variables:
475519
476- LUA: Where Lua is installed. E.g. C:\projects\lua53.
477- DYNAMIC_LUA: Whether dynamic linking is used. Usually, set to yes.
478- LUA_VER: Lua version. E.g. 53 for Lua 5.3.X.
520+ You need to set LUA, DYNAMIC_LUA and LUA_VER.
521+
522+ LUA: Where Lua's header files are installed. E.g. C:\projects\lua53.
523+ DYNAMIC_LUA: Whether dynamic linking is used. Set to yes.
524+ LUA_VER: Lua version. E.g. 53 for Lua 5.3.X.
479525
480526E.g. When using MSVC (as one line):
481527
@@ -487,7 +533,8 @@ Or when using MinGW (as one line):
487533 mingw32-make -f Make_mingw.mak
488534 LUA=C:\projects\lua53 DYNAMIC_LUA=yes LUA_VER=53
489535
490- Or when using Cygwin (as one line):
536+
537+ Or when using Cygwin (as one line) (untested):
491538
492539 make -f Make_cyg.mak
493540 LUA=/cygdrive/c/projects/lua53 DYNAMIC_LUA=yes LUA_VER=53
0 commit comments