8000 * win32/{configure.bat, setup.mak, Makefile.sub}: add new configure · devrandom/ruby@97ac2cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 97ac2cd

Browse files
committed
* 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
1 parent 184e560 commit 97ac2cd

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Thu Nov 26 17:54:37 2009 NAKAMURA Usaku <usa@ruby-lang.org>
2+
3+
* win32/{configure.bat, setup.mak, Makefile.sub}: add new configure
4+
option ``--with-ntver''.
5+
16
Thu Nov 26 11:42:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* test/mkmf/base.rb: use $INCFLAGS to add -I option. [Bug#2387]

win32/Makefile.sub

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ PLATFORM = mswin32
116116
!if !defined(RT)
117117
!error RT not defined. Retry from configure pass.
118118
!endif
119+
!ifdef NTVER
120+
ARCHDEFS = -D_WIN32_WINNT=$(NTVER) $(ARCHDEFS)
121+
!endif
119122

120123
arch = $(ARCH)-$(PLATFORM)
121124
sitearch = $(ARCH)-$(RT)

win32/configure.bat

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ if "%1" == "--path" goto :path
3232
if "%1" == "--with-baseruby" goto :baseruby
3333
if "%1" == "-h" goto :help
3434
if "%1" == "--help" goto :help
35+
if "%1" == "--with-ntver" goto :ntver
3536
echo>>confargs.tmp %1 \
3637
shift
3738
goto :loop
@@ -107,6 +108,12 @@ goto :loop
107108
echo>>confargs.tmp %1 \
108109
shift
109110
goto :loop
111+
:ntver
112+
echo>> ~tmp~.mak "NTVER=%2" \
113+
echo>>confargs.tmp %1=%2 \
114+
shift
115+
shift
116+
goto :loop
110117
:extout
111118
echo>> ~tmp~.mak "EXTOUT=%2" \
112119
echo>>confargs.tmp %1=%2 \
@@ -137,7 +144,8 @@ goto :loop
137144
echo --with-baseruby=RUBY use RUBY as baseruby [ruby]
138145
echo --with-static-linked-ext link external modules statically
139146
echo --disable-install-doc do not install rdoc indexes during install
140-
echo --enable-win95 enable win95 support
147+
echo --disable-win95 disable win95 support
148+
echo --with-ntver=0xXXXX target NT version (shouldn't use with old SDK)
141149
del *.tmp
142150
del ~tmp~.mak
143151
goto :exit

win32/setup.mak

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ EXTOUT = $(EXTOUT)
5555
!if defined(BASERUBY)
5656
BASERUBY = $(BASERUBY)
5757
!endif
58+
!if defined(NTVER)
59+
NTVER = $(NTVER)
60+
!endif
5861
<<
5962
!if !defined(BASERUBY)
6063
@for %I in (ruby.exe) do @echo BASERUBY = %~s$$PATH:I >> $(MAKEFILE)

0 commit comments

Comments
 (0)
0