* win32/{configure.bat, setup.mak, Makefile.sub}: add new configure

option ``--with-ntver''.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2009-11-26 08:55:34 +00:00
Родитель 4d786d21e3
Коммит 39e457b4e7
4 изменённых файлов: 20 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Thu Nov 26 17:54:37 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/{configure.bat, setup.mak, Makefile.sub}: add new configure
option ``--with-ntver''.
Thu Nov 26 11:42:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/mkmf/base.rb: use $INCFLAGS to add -I option. [Bug#2387]

Просмотреть файл

@ -116,6 +116,9 @@ PLATFORM = mswin32
!if !defined(RT)
!error RT not defined. Retry from configure pass.
!endif
!ifdef NTVER
ARCHDEFS = -D_WIN32_WINNT=$(NTVER) $(ARCHDEFS)
!endif
arch = $(ARCH)-$(PLATFORM)
sitearch = $(ARCH)-$(RT)

Просмотреть файл

@ -32,6 +32,7 @@ if "%1" == "--path" goto :path
if "%1" == "--with-baseruby" goto :baseruby
if "%1" == "-h" goto :help
if "%1" == "--help" goto :help
if "%1" == "--with-ntver" goto :ntver
echo>>confargs.tmp %1 \
shift
goto :loop
@ -107,6 +108,12 @@ goto :loop
echo>>confargs.tmp %1 \
shift
goto :loop
:ntver
echo>> ~tmp~.mak "NTVER=%2" \
echo>>confargs.tmp %1=%2 \
shift
shift
goto :loop
:extout
echo>> ~tmp~.mak "EXTOUT=%2" \
echo>>confargs.tmp %1=%2 \
@ -137,7 +144,8 @@ goto :loop
echo --with-baseruby=RUBY use RUBY as baseruby [ruby]
echo --with-static-linked-ext link external modules statically
echo --disable-install-doc do not install rdoc indexes during install
echo --enable-win95 enable win95 support
echo --disable-win95 disable win95 support
echo --with-ntver=0xXXXX target NT version (shouldn't use with old SDK)
del *.tmp
del ~tmp~.mak
goto :exit

Просмотреть файл

@ -55,6 +55,9 @@ EXTOUT = $(EXTOUT)
!if defined(BASERUBY)
BASERUBY = $(BASERUBY)
!endif
!if defined(NTVER)
NTVER = $(NTVER)
!endif
<<
!if !defined(BASERUBY)
@for %I in (ruby.exe) do @echo BASERUBY = %~s$$PATH:I >> $(MAKEFILE)