mirror of
https://github.com/vim/vim
synced 2025-07-16 09:12:00 +00:00
patch 7.4.2340
Problem: MS-Windows: Building with Ruby uses old version. Solution: Update to 2.2.X. Use clearer name for the API version. (Ken Takata)
This commit is contained in:
2
Makefile
2
Makefile
@ -158,7 +158,7 @@ MINOR = 4
|
|||||||
# - Move gvim.pdb to here.
|
# - Move gvim.pdb to here.
|
||||||
# - Copy "GvimExt/gvimext.dll" to here.
|
# - Copy "GvimExt/gvimext.dll" to here.
|
||||||
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
# - Delete vimrun.exe, install.exe and uninstal.exe.
|
||||||
# Win32 GUI version with OLE, PERL, TCL, PYTHON and dynamic IME:
|
# Win32 GUI version with OLE, PERL, Ruby, TCL, PYTHON and dynamic IME:
|
||||||
# - Install the interfaces you want, see src/INSTALLpc.txt
|
# - Install the interfaces you want, see src/INSTALLpc.txt
|
||||||
# - Build:
|
# - Build:
|
||||||
# > cd src
|
# > cd src
|
||||||
|
@ -598,11 +598,11 @@ you need some tricks described below.
|
|||||||
|
|
||||||
When building, you need to set the following variables at least:
|
When building, you need to set the following variables at least:
|
||||||
|
|
||||||
RUBY: Where ruby is installed. E.g. C:\Ruby22
|
RUBY: Where ruby is installed. E.g. C:\Ruby22
|
||||||
DYNAMIC_RUBY: Whether dynamic linking is used. Usually, set to yes.
|
DYNAMIC_RUBY: Whether dynamic linking is used. Usually, set to yes.
|
||||||
RUBY_VER: Ruby version. E.g. 22 for Ruby 2.2.X.
|
RUBY_VER: Ruby version. E.g. 22 for Ruby 2.2.X.
|
||||||
RUBY_VER_LONG: Ruby API version in a long format.
|
RUBY_API_VER_LONG: Ruby API version in a long format.
|
||||||
E.g. 2.2.0 for Ruby 2.2.X.
|
E.g. 2.2.0 for Ruby 2.2.X.
|
||||||
|
|
||||||
Ruby version vs. Ruby API version:
|
Ruby version vs. Ruby API version:
|
||||||
|
|
||||||
@ -653,7 +653,7 @@ config.h and Ruby's DLL name. Here are the steps for working around them:
|
|||||||
4) Build Vim. Note that you need to adjust some variables (as one line):
|
4) Build Vim. Note that you need to adjust some variables (as one line):
|
||||||
|
|
||||||
nmake -f Make_mvc.mak
|
nmake -f Make_mvc.mak
|
||||||
RUBY=C:\Ruby22 DYNAMIC_RUBY=yes RUBY_VER=22 RUBY_VER_LONG=2.2.0
|
RUBY=C:\Ruby22 DYNAMIC_RUBY=yes RUBY_VER=22 RUBY_API_VER_LONG=2.2.0
|
||||||
RUBY_MSVCRT_NAME=msvcrt
|
RUBY_MSVCRT_NAME=msvcrt
|
||||||
WINVER=0x501
|
WINVER=0x501
|
||||||
|
|
||||||
@ -668,7 +668,7 @@ Using MinGW is easier than using MSVC when linking with RubyInstaller.
|
|||||||
After you install RubyInstaller, just type this (as one line):
|
After you install RubyInstaller, just type this (as one line):
|
||||||
|
|
||||||
mingw32-make -f Make_ming.mak
|
mingw32-make -f Make_ming.mak
|
||||||
RUBY=C:/Ruby22 DYNAMIC_RUBY=yes RUBY_VER=22 RUBY_VER_LONG=2.2.0
|
RUBY=C:/Ruby22 DYNAMIC_RUBY=yes RUBY_VER=22 RUBY_API_VER_LONG=2.2.0
|
||||||
WINVER=0x501
|
WINVER=0x501
|
||||||
|
|
||||||
If you set WINVER explicitly, it must be set to >=0x500, when building with
|
If you set WINVER explicitly, it must be set to >=0x500, when building with
|
||||||
|
@ -348,36 +348,39 @@ endif
|
|||||||
# Ruby interface:
|
# Ruby interface:
|
||||||
# RUBY=[Path to Ruby directory] (Set inside Make_cyg.mak or Make_ming.mak)
|
# RUBY=[Path to Ruby directory] (Set inside Make_cyg.mak or Make_ming.mak)
|
||||||
# DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
|
# DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
|
||||||
# RUBY_VER=[Ruby version, eg 18, 19, 20] (default is 18)
|
# RUBY_VER=[Ruby version, eg 19, 22] (default is 22)
|
||||||
# RUBY_VER_LONG=[Ruby version, eg 1.8, 1.9.1, 2.0.0] (default is 1.8)
|
# RUBY_API_VER_LONG=[Ruby API version, eg 1.8, 1.9.1, 2.2.0]
|
||||||
# You must set RUBY_VER_LONG when changing RUBY_VER.
|
# (default is 2.2.0)
|
||||||
# RUBY_API_VER is derived from RUBY_VER_LONG.
|
# You must set RUBY_API_VER_LONG when changing RUBY_VER.
|
||||||
# Note: If you use Ruby 1.9.3, set as follows:
|
# Note: If you use Ruby 1.9.3, set as follows:
|
||||||
# RUBY_VER=19
|
# RUBY_VER=19
|
||||||
# RUBY_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.)
|
# RUBY_API_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.)
|
||||||
ifdef RUBY
|
ifdef RUBY
|
||||||
ifndef DYNAMIC_RUBY
|
ifndef DYNAMIC_RUBY
|
||||||
DYNAMIC_RUBY=yes
|
DYNAMIC_RUBY=yes
|
||||||
endif
|
endif
|
||||||
# Set default value
|
# Set default value
|
||||||
ifndef RUBY_VER
|
ifndef RUBY_VER
|
||||||
RUBY_VER = 18
|
RUBY_VER = 22
|
||||||
endif
|
endif
|
||||||
ifndef RUBY_VER_LONG
|
ifndef RUBY_VER_LONG
|
||||||
RUBY_VER_LONG = 1.8
|
RUBY_VER_LONG = 2.2.0
|
||||||
|
endif
|
||||||
|
ifndef RUBY_API_VER_LONG
|
||||||
|
RUBY_API_VER_LONG = $(RUBY_API_VER_LONG)
|
||||||
endif
|
endif
|
||||||
ifndef RUBY_API_VER
|
ifndef RUBY_API_VER
|
||||||
RUBY_API_VER = $(subst .,,$(RUBY_VER_LONG))
|
RUBY_API_VER = $(subst .,,$(RUBY_API_VER_LONG))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef RUBY_PLATFORM
|
ifndef RUBY_PLATFORM
|
||||||
ifeq ($(RUBY_VER), 16)
|
ifeq ($(RUBY_VER), 16)
|
||||||
RUBY_PLATFORM = i586-mswin32
|
RUBY_PLATFORM = i586-mswin32
|
||||||
else
|
else
|
||||||
ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/i386-mingw32),)
|
ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/i386-mingw32),)
|
||||||
RUBY_PLATFORM = i386-mingw32
|
RUBY_PLATFORM = i386-mingw32
|
||||||
else
|
else
|
||||||
ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/x64-mingw32),)
|
ifneq ($(wildcard $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/x64-mingw32),)
|
||||||
RUBY_PLATFORM = x64-mingw32
|
RUBY_PLATFORM = x64-mingw32
|
||||||
else
|
else
|
||||||
RUBY_PLATFORM = i386-mswin32
|
RUBY_PLATFORM = i386-mswin32
|
||||||
@ -406,9 +409,9 @@ ifeq (19, $(word 1,$(sort 19 $(RUBY_VER))))
|
|||||||
RUBY_19_OR_LATER = 1
|
RUBY_19_OR_LATER = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
|
RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_API_VER_LONG)/$(RUBY_PLATFORM)
|
||||||
ifdef RUBY_19_OR_LATER
|
ifdef RUBY_19_OR_LATER
|
||||||
RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
|
RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_API_VER_LONG)/$(RUBY_PLATFORM)
|
||||||
endif
|
endif
|
||||||
ifeq (no, $(DYNAMIC_RUBY))
|
ifeq (no, $(DYNAMIC_RUBY))
|
||||||
RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
|
RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
|
||||||
|
@ -67,13 +67,13 @@
|
|||||||
# Ruby interface:
|
# Ruby interface:
|
||||||
# RUBY=[Path to Ruby directory]
|
# RUBY=[Path to Ruby directory]
|
||||||
# DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
|
# DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
|
||||||
# RUBY_VER=[Ruby version, eg 18, 19, 20] (default is 18)
|
# RUBY_VER=[Ruby version, eg 19, 22] (default is 22)
|
||||||
# RUBY_VER_LONG=[Ruby version, eg 1.8, 1.9.1, 2.0.0] (default is 1.8)
|
# RUBY_API_VER_LONG=[Ruby API version, eg 1.8, 1.9.1, 2.2.0]
|
||||||
# You must set RUBY_VER_LONG when change RUBY_VER.
|
# (default is 2.2.0)
|
||||||
# RUBY_API_VER is derived from RUBY_VER_LONG.
|
# You must set RUBY_API_VER_LONG when change RUBY_VER.
|
||||||
# Note: If you use Ruby 1.9.3, set as follows:
|
# Note: If you use Ruby 1.9.3, set as follows:
|
||||||
# RUBY_VER=19
|
# RUBY_VER=19
|
||||||
# RUBY_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.)
|
# RUBY_API_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.)
|
||||||
#
|
#
|
||||||
# Tcl interface:
|
# Tcl interface:
|
||||||
# TCL=[Path to Tcl directory]
|
# TCL=[Path to Tcl directory]
|
||||||
@ -917,13 +917,16 @@ XSUBPP_TYPEMAP = $(PERL)\lib\ExtUtils\typemap
|
|||||||
!ifdef RUBY
|
!ifdef RUBY
|
||||||
# Set default value
|
# Set default value
|
||||||
!ifndef RUBY_VER
|
!ifndef RUBY_VER
|
||||||
RUBY_VER = 18
|
RUBY_VER = 22
|
||||||
!endif
|
!endif
|
||||||
!ifndef RUBY_VER_LONG
|
!ifndef RUBY_VER_LONG
|
||||||
RUBY_VER_LONG = 1.8
|
RUBY_VER_LONG = 2.2.0
|
||||||
|
!endif
|
||||||
|
!ifndef RUBY_API_VER_LONG
|
||||||
|
RUBY_API_VER_LONG = $(RUBY_VER_LONG)
|
||||||
!endif
|
!endif
|
||||||
!ifndef RUBY_API_VER
|
!ifndef RUBY_API_VER
|
||||||
RUBY_API_VER = $(RUBY_VER_LONG:.=)
|
RUBY_API_VER = $(RUBY_API_VER_LONG:.=)
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!if $(RUBY_VER) >= 18
|
!if $(RUBY_VER) >= 18
|
||||||
@ -966,9 +969,9 @@ RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
|
|||||||
CFLAGS = $(CFLAGS) -DFEAT_RUBY
|
CFLAGS = $(CFLAGS) -DFEAT_RUBY
|
||||||
RUBY_OBJ = $(OUTDIR)\if_ruby.obj
|
RUBY_OBJ = $(OUTDIR)\if_ruby.obj
|
||||||
!if $(RUBY_VER) >= 19
|
!if $(RUBY_VER) >= 19
|
||||||
RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)" /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)" /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)\$(RUBY_PLATFORM)"
|
RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_API_VER_LONG)\$(RUBY_PLATFORM)" /I "$(RUBY)\include\ruby-$(RUBY_API_VER_LONG)" /I "$(RUBY)\include\ruby-$(RUBY_API_VER_LONG)\$(RUBY_PLATFORM)"
|
||||||
!else
|
!else
|
||||||
RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)"
|
RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_API_VER_LONG)\$(RUBY_PLATFORM)"
|
||||||
!endif
|
!endif
|
||||||
RUBY_LIB = $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib
|
RUBY_LIB = $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib
|
||||||
# Do we want to load Ruby dynamically?
|
# Do we want to load Ruby dynamically?
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
:: command to build big Vim with OLE, Perl, Python, Ruby and Tcl
|
:: command to build big Vim with OLE, Perl, Python, Ruby and Tcl
|
||||||
SET VCDIR="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\"
|
SET VCDIR="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\"
|
||||||
SET TOOLDIR=E:\
|
SET TOOLDIR=E:\
|
||||||
%VCDIR%nmake -f Make_mvc.mak GUI=yes OLE=yes PERL=%TOOLDIR%perl524 DYNAMIC_PERL=yes PERL_VER=524 PYTHON=%TOOLDIR%python27 DYNAMIC_PYTHON=yes PYTHON_VER=27 PYTHON3=%TOOLDIR%python35 DYNAMIC_PYTHON3=yes PYTHON3_VER=35 RUBY=%TOOLDIR%ruby192 DYNAMIC_RUBY=yes RUBY_VER=19 RUBY_VER_LONG=1.9.2 RUBY_MSVCRT_NAME=msvcrt TCL=%TOOLDIR%tcl TCL_VER=86 TCL_VER_LONG=8.6 DYNAMIC_TCL=yes %1 IME=yes CSCOPE=yes
|
%VCDIR%nmake -f Make_mvc.mak GUI=yes OLE=yes PERL=%TOOLDIR%perl524 DYNAMIC_PERL=yes PERL_VER=524 PYTHON=%TOOLDIR%python27 DYNAMIC_PYTHON=yes PYTHON_VER=27 PYTHON3=%TOOLDIR%python35 DYNAMIC_PYTHON3=yes PYTHON3_VER=35 RUBY=%TOOLDIR%rubyw2 DYNAMIC_RUBY=yes RUBY_VER=22 RUBY_API_VER_LONG=2.2.0 RUBY_MSVCRT_NAME=msvcrt TCL=%TOOLDIR%tcl TCL_VER=86 TCL_VER_LONG=8.6 DYNAMIC_TCL=yes %1 IME=yes CSCOPE=yes
|
||||||
|
|
||||||
|
@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2340,
|
||||||
/**/
|
/**/
|
||||||
2339,
|
2339,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user