~ubuntu-branches/ubuntu/raring/boost-build/raring

« back to all changes in this revision

Viewing changes to jam_src/build.bat

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-08-06 00:38:31 UTC
  • mfrom: (4.1.1 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080806003831-zr65893244swds0b
Tags: 2.0-m12-2
* debian/rules: Do not install /etc/user-config.jam.
* debian/site-config.jam: New.  Install into /etc instead of empty
  example.  Closes: #493323.

* debian/control: Update homepage.  Update description.  Closes:
  #493510.  Update Standards-Version to 3.8.0; no changes.

* debian/compat: New.  Set compat level to 7.
* debian/rules: Remove DH_COMPAT setting.
* debian/control: Change debhelper build-dep to version >= 7.

* debian/control: Remove docbook-to-man, bison from build-deps.

* debian/rules: Clean up upstream source by removing debian/conffiles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
@ECHO OFF
2
2
 
3
 
REM ~ Copyright 2002-2005 Rene Rivera.
 
3
REM ~ Copyright 2002-2007 Rene Rivera.
4
4
REM ~ Distributed under the Boost Software License, Version 1.0.
5
5
REM ~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
6
6
 
10
10
REM NOTE: The "setlocal & endlocal" construct is used to reset the errorlevel to 0.
11
11
REM NOTE: The "set _error_=" construct is used to set the errorlevel to 1
12
12
 
 
13
 
13
14
:Error_Print
14
15
REM Output an error message and set the errorlevel to indicate failure.
15
16
setlocal
25
26
endlocal
26
27
goto :eof
27
28
 
 
29
 
28
30
:Test_Path
29
31
REM Tests for the given file(executable) presence in the directories in the PATH
30
32
REM environment variable. Additionaly sets FOUND_PATH to the path of the
36
38
if not errorlevel 1 set FOUND_PATH=%~dp$PATH:1
37
39
goto :eof
38
40
 
 
41
 
39
42
:Test_Option
40
43
REM Tests wether the given string is in the form of an option: "-*"
41
44
setlocal & endlocal
49
52
endlocal
50
53
goto :eof
51
54
 
 
55
 
 
56
:Call_If_Exists
 
57
if EXIST %1 call %*
 
58
goto :eof
 
59
 
 
60
 
52
61
:Guess_Toolset
53
62
REM Try and guess the toolset to bootstrap the build with...
54
63
REM Sets BOOST_JAM_TOOLSET to the first found toolset.
59
68
 
60
69
setlocal & endlocal
61
70
if NOT "_%VS80COMNTOOLS%_" == "__" (
62
 
    set BOOST_JAM_TOOLSET=vc8
63
 
    set BOOST_JAM_TOOLSET_ROOT=%VS80COMNTOOLS%..\..\VC\
 
71
    set "BOOST_JAM_TOOLSET=vc8"
 
72
    set "BOOST_JAM_TOOLSET_ROOT=%VS80COMNTOOLS%..\..\VC\"
64
73
    goto :eof)
65
74
setlocal & endlocal
66
 
if EXIST "%ProgramFiles%\Microsoft Visual Studio 8\VC\bin\VCVARS32.BAT" (
67
 
    set BOOST_JAM_TOOLSET=vc8
68
 
    set BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio 8\VC\
 
75
if EXIST "%ProgramFiles%\Microsoft Visual Studio 8\VC\VCVARSALL.BAT" (
 
76
    set "BOOST_JAM_TOOLSET=vc8"
 
77
    set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio 8\VC\"
69
78
    goto :eof)
70
79
setlocal & endlocal
71
80
if NOT "_%VS71COMNTOOLS%_" == "__" (
72
 
    set BOOST_JAM_TOOLSET=vc7
73
 
    set BOOST_JAM_TOOLSET_ROOT=%VS71COMNTOOLS%\..\..\VC7\
 
81
    set "BOOST_JAM_TOOLSET=vc7"
 
82
    set "BOOST_JAM_TOOLSET_ROOT=%VS71COMNTOOLS%\..\..\VC7\"
74
83
    goto :eof)
75
84
setlocal & endlocal
76
85
if NOT "_%VCINSTALLDIR%_" == "__" (
77
 
    set BOOST_JAM_TOOLSET=vc7
78
 
    set BOOST_JAM_TOOLSET_ROOT=%VCINSTALLDIR%\VC7\
 
86
    set "BOOST_JAM_TOOLSET=vc7"
 
87
    set "BOOST_JAM_TOOLSET_ROOT=%VCINSTALLDIR%\VC7\"
79
88
    goto :eof)
80
89
setlocal & endlocal
81
90
if EXIST "%ProgramFiles%\Microsoft Visual Studio .NET 2003\VC7\bin\VCVARS32.BAT" (
82
 
    set BOOST_JAM_TOOLSET=vc7
83
 
    set BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio .NET 2003\VC7\
 
91
    set "BOOST_JAM_TOOLSET=vc7"
 
92
    set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio .NET 2003\VC7\"
84
93
    goto :eof)
85
94
setlocal & endlocal
86
95
if EXIST "%ProgramFiles%\Microsoft Visual Studio .NET\VC7\bin\VCVARS32.BAT" (
87
 
    set BOOST_JAM_TOOLSET=vc7
88
 
    set BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio .NET\VC7\
 
96
    set "BOOST_JAM_TOOLSET=vc7"
 
97
    set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio .NET\VC7\"
89
98
    goto :eof)
90
99
setlocal & endlocal
91
100
if NOT "_%MSVCDir%_" == "__" (
92
 
    set BOOST_JAM_TOOLSET=msvc
93
 
    set BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\
 
101
    set "BOOST_JAM_TOOLSET=msvc"
 
102
    set "BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\"
94
103
    goto :eof)
95
104
setlocal & endlocal
96
105
if EXIST "%ProgramFiles%\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" (
97
 
    set BOOST_JAM_TOOLSET=msvc
98
 
    set BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio\VC98\
 
106
    set "BOOST_JAM_TOOLSET=msvc"
 
107
    set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio\VC98\"
99
108
    goto :eof)
100
109
setlocal & endlocal
101
110
if EXIST "%ProgramFiles%\Microsoft Visual C++\VC98\bin\VCVARS32.BAT" (
102
 
    set BOOST_JAM_TOOLSET=msvc
103
 
    set BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual C++\VC98\
 
111
    set "BOOST_JAM_TOOLSET=msvc"
 
112
    set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual C++\VC98\"
104
113
    goto :eof)
105
114
setlocal & endlocal
106
115
call :Test_Path cl.exe
107
116
if not errorlevel 1 (
108
 
    set BOOST_JAM_TOOLSET=msvc
109
 
    set BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\
 
117
    set "BOOST_JAM_TOOLSET=msvc"
 
118
    set "BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\"
110
119
    goto :eof)
111
120
setlocal & endlocal
112
121
call :Test_Path vcvars32.bat
113
122
if not errorlevel 1 (
114
 
    set BOOST_JAM_TOOLSET=msvc
 
123
    set "BOOST_JAM_TOOLSET=msvc"
115
124
    call "%FOUND_PATH%VCVARS32.BAT"
116
 
    set BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\
 
125
    set "BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\"
117
126
    goto :eof)
118
127
setlocal & endlocal
119
128
if EXIST "C:\Borland\BCC55\Bin\bcc32.exe" (
120
 
    set BOOST_JAM_TOOLSET=borland
121
 
    set BOOST_JAM_TOOLSET_ROOT=C:\Borland\BCC55\
 
129
    set "BOOST_JAM_TOOLSET=borland"
 
130
    set "BOOST_JAM_TOOLSET_ROOT=C:\Borland\BCC55\"
122
131
    goto :eof)
123
132
setlocal & endlocal
124
133
call :Test_Path bcc32.exe
125
134
if not errorlevel 1 (
126
 
    set BOOST_JAM_TOOLSET=borland
127
 
    set BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\
 
135
    set "BOOST_JAM_TOOLSET=borland"
 
136
    set "BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\"
128
137
    goto :eof)
129
138
setlocal & endlocal
130
139
call :Test_Path icl.exe
131
140
if not errorlevel 1 (
132
 
    set BOOST_JAM_TOOLSET=intel-win32
133
 
    set BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\
 
141
    set "BOOST_JAM_TOOLSET=intel-win32"
 
142
    set "BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\"
134
143
    goto :eof)
135
144
setlocal & endlocal
136
145
if EXIST "C:\MinGW\bin\gcc.exe" (
137
 
    set BOOST_JAM_TOOLSET=mingw
138
 
    set BOOST_JAM_TOOLSET_ROOT=C:\MinGW\
 
146
    set "BOOST_JAM_TOOLSET=mingw"
 
147
    set "BOOST_JAM_TOOLSET_ROOT=C:\MinGW\"
139
148
    goto :eof)
140
149
setlocal & endlocal
141
150
if NOT "_%CWFolder%_" == "__" (
142
 
    set BOOST_JAM_TOOLSET=metrowerks
143
 
    set BOOST_JAM_TOOLSET_ROOT=%CWFolder%\
 
151
    set "BOOST_JAM_TOOLSET=metrowerks"
 
152
    set "BOOST_JAM_TOOLSET_ROOT=%CWFolder%\"
144
153
    goto :eof )
145
154
setlocal & endlocal
146
155
call :Test_Path mwcc.exe
147
156
if not errorlevel 1 (
148
 
    set BOOST_JAM_TOOLSET=metrowerks
149
 
    set BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\..\
 
157
    set "BOOST_JAM_TOOLSET=metrowerks"
 
158
    set "BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\..\"
150
159
    goto :eof)
151
160
setlocal & endlocal
152
161
call :Error_Print "Could not find a suitable toolset."
153
162
goto :eof
154
163
 
 
164
 
155
165
:Guess_Yacc
156
166
REM Tries to find bison or yacc in common places so we can build the grammar.
157
167
setlocal & endlocal
158
168
call :Test_Path yacc.exe
159
169
if not errorlevel 1 (
160
 
    set YACC=yacc -d
 
170
    set "YACC=yacc -d"
161
171
    goto :eof)
162
172
setlocal & endlocal
163
173
call :Test_Path bison.exe
164
174
if not errorlevel 1 (
165
 
    set YACC=bison -d --yacc
 
175
    set "YACC=bison -d --yacc"
166
176
    goto :eof)
167
177
setlocal & endlocal
168
178
if EXIST "C:\Program Files\GnuWin32\bin\bison.exe" (
169
 
    set YACC="C:\Program Files\GnuWin32\bin\bison.exe" -d --yacc
 
179
    set "YACC=C:\Program Files\GnuWin32\bin\bison.exe" -d --yacc
170
180
    goto :eof)
171
181
setlocal & endlocal
172
182
call :Error_Print "Could not find Yacc to build the Jam grammar."
173
183
goto :eof
174
184
 
 
185
 
175
186
:Start
176
187
set BOOST_JAM_TOOLSET=
 
188
set BOOST_JAM_ARGS=
177
189
 
178
190
REM If no arguments guess the toolset;
179
191
REM or if first argument is an option guess the toolset;
182
194
    call :Guess_Toolset
183
195
    if not errorlevel 1 goto Setup_Toolset
184
196
) else (
185
 
    call :Test_Option %1
 
197
    call :Test_Option "%1"
186
198
    if not errorlevel 1 (
187
199
        call :Guess_Toolset
188
200
        if not errorlevel 1 goto Setup_Toolset
189
201
    ) else (
190
202
        setlocal & endlocal
191
 
        set BOOST_JAM_TOOLSET=%1
 
203
        set "BOOST_JAM_TOOLSET=%1"
192
204
        shift
193
205
        goto Setup_Toolset
194
206
    )
195
207
)
196
208
if errorlevel 1 goto Finish
197
209
 
 
210
 
198
211
:Setup_Toolset
199
212
REM Setup the toolset command and options. This bit of code
200
213
REM needs to be flexible enough to handle both when
204
217
REM because in BAT variables are subsituted only once during a single
205
218
REM command. A complete "if ... ( commands ) else ( commands )"
206
219
REM is a single command, even though it's in multiple lines here.
207
 
if "_%BOOST_JAM_TOOLSET%_" == "_metrowerks_" (
208
 
    if NOT "_%CWFolder%_" == "__" (
209
 
        set BOOST_JAM_TOOLSET_ROOT=%CWFolder%\) )
210
 
if "_%BOOST_JAM_TOOLSET%_" == "_metrowerks_" (
211
 
    if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
212
 
        set PATH=%BOOST_JAM_TOOLSET_ROOT%Other Metrowerks Tools\Command Line Tools;%PATH%)
213
 
    set BOOST_JAM_CC=mwcc -runtime ss -cwd include -DNT -lkernel32.lib -ladvapi32.lib -luser32.lib
214
 
    set BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe
215
 
    set BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe
216
 
    set BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe
217
 
    set _known_=1
218
 
)
219
 
if "_%BOOST_JAM_TOOLSET%_" == "_msvc_" (
220
 
    if NOT "_%MSVCDir%_" == "__" (
221
 
        set BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\) )
222
 
if "_%BOOST_JAM_TOOLSET%_" == "_msvc_" (
223
 
    if EXIST "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT" (
224
 
        call "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT" ) )
225
 
if "_%BOOST_JAM_TOOLSET%_" == "_msvc_" (
226
 
    if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
227
 
        set PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%)
228
 
    set BOOST_JAM_CC=cl /nologo /GZ /Zi /MLd -DNT -DYYDEBUG kernel32.lib advapi32.lib user32.lib
229
 
    set BOOST_JAM_OPT_JAM=/Febootstrap\jam0
230
 
    set BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0
231
 
    set BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0
232
 
    set _known_=1
233
 
)
234
 
if "_%BOOST_JAM_TOOLSET%_" == "_vc7_" (
235
 
    if NOT "_%MSVCDir%_" == "__" (
236
 
        set BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\) )
237
 
if "_%BOOST_JAM_TOOLSET%_" == "_vc7_" (
238
 
    if EXIST "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT" (
239
 
        call "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT" ) )
240
 
if "_%BOOST_JAM_TOOLSET%_" == "_vc7_" (
241
 
    if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
242
 
        set PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%)
243
 
    set BOOST_JAM_CC=cl /nologo /GZ /Zi /MLd -DNT -DYYDEBUG kernel32.lib advapi32.lib user32.lib
244
 
    set BOOST_JAM_OPT_JAM=/Febootstrap\jam0
245
 
    set BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0
246
 
    set BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0
247
 
    set _known_=1
248
 
)
249
 
if "_%BOOST_JAM_TOOLSET%_" == "_vc8_" (
250
 
    if NOT "_%MSVCDir%_" == "__" (
251
 
        set BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\) )
252
 
if "_%BOOST_JAM_TOOLSET%_" == "_vc8_" (
253
 
    if EXIST "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT" (
254
 
        call "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT" ) )
255
 
if "_%BOOST_JAM_TOOLSET%_" == "_vc8_" (
256
 
    if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
257
 
        set PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%)
258
 
    set BOOST_JAM_CC=cl /nologo /RTC1 /Zi /MTd -DNT -DYYDEBUG -wd4996 kernel32.lib advapi32.lib user32.lib
259
 
    set BOOST_JAM_OPT_JAM=/Febootstrap\jam0
260
 
    set BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0
261
 
    set BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0
262
 
    set _known_=1
263
 
)
264
 
if "_%BOOST_JAM_TOOLSET%_" == "_borland_" (
265
 
    if "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
266
 
        call :Test_Path bcc32.exe ) )
267
 
if "_%BOOST_JAM_TOOLSET%_" == "_borland_" (
268
 
    if "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
269
 
        if not errorlevel 1 (
270
 
            set BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\) ) )
271
 
if "_%BOOST_JAM_TOOLSET%_" == "_borland_" (
272
 
    if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (set PATH=%BOOST_JAM_TOOLSET_ROOT%Bin;%PATH%)
273
 
    set BOOST_JAM_CC=bcc32 -WC -w- -q "-I%BOOST_JAM_TOOLSET_ROOT%Include" "-L%BOOST_JAM_TOOLSET_ROOT%Lib" /DNT -nbootstrap
274
 
    set BOOST_JAM_OPT_JAM=-ejam0
275
 
    set BOOST_JAM_OPT_MKJAMBASE=-emkjambasejam0
276
 
    set BOOST_JAM_OPT_YYACC=-eyyacc0
277
 
    set _known_=1
278
 
)
279
 
if "_%BOOST_JAM_TOOLSET%_" == "_como_" (
280
 
    set BOOST_JAM_CC=como -DNT
281
 
    set BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe
282
 
    set BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe
283
 
    set BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe
284
 
    set _known_=1
285
 
)
286
 
if "_%BOOST_JAM_TOOLSET%_" == "_gcc_" (
287
 
    set BOOST_JAM_CC=gcc -DNT
288
 
    set BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe
289
 
    set BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe
290
 
    set BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe
291
 
    set _known_=1
292
 
)
293
 
if "_%BOOST_JAM_TOOLSET%_" == "_gcc-nocygwin_" (
294
 
    set BOOST_JAM_CC=gcc -DNT -mno-cygwin
295
 
    set BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe
296
 
    set BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe
297
 
    set BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe
298
 
    set _known_=1
299
 
)
300
 
if "_%BOOST_JAM_TOOLSET%_" == "_intel-win32_" (
301
 
    set BOOST_JAM_CC=icl -DNT /nologo kernel32.lib advapi32.lib user32.lib
302
 
    set BOOST_JAM_OPT_JAM=/Febootstrap\jam0
303
 
    set BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0
304
 
    set BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0
305
 
    set _known_=1
306
 
)
307
 
if "_%BOOST_JAM_TOOLSET%_" == "_mingw_" (
308
 
    if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (set PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%)
309
 
    set BOOST_JAM_CC=gcc -DNT
310
 
    set BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe
311
 
    set BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe
312
 
    set BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe
313
 
    set _known_=1
314
 
)
 
220
:Setup_Args
 
221
if "_%1_" == "__" goto Config_Toolset
 
222
call :Test_Option "%1"
 
223
if errorlevel 1 (
 
224
    set BOOST_JAM_ARGS=%BOOST_JAM_ARGS% %1
 
225
    shift
 
226
    goto Setup_Args
 
227
)
 
228
:Config_Toolset
 
229
if NOT "_%BOOST_JAM_TOOLSET%_" == "_metrowerks_" goto :Skip_METROWERKS
 
230
if NOT "_%CWFolder%_" == "__" (
 
231
    set "BOOST_JAM_TOOLSET_ROOT=%CWFolder%\"
 
232
    )
 
233
set "PATH=%BOOST_JAM_TOOLSET_ROOT%Other Metrowerks Tools\Command Line Tools;%PATH%"
 
234
set "BOOST_JAM_CC=mwcc -runtime ss -cwd include -DNT -lkernel32.lib -ladvapi32.lib -luser32.lib"
 
235
set "BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe"
 
236
set "BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe"
 
237
set "BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe"
 
238
set "_known_=1"
 
239
:Skip_METROWERKS
 
240
if NOT "_%BOOST_JAM_TOOLSET%_" == "_msvc_" goto :Skip_MSVC
 
241
if NOT "_%MSVCDir%_" == "__" (
 
242
    set "BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\"
 
243
    )
 
244
call :Call_If_Exists "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT"
 
245
if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
 
246
    set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"
 
247
    )
 
248
set "BOOST_JAM_CC=cl /nologo /GZ /Zi /MLd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG kernel32.lib advapi32.lib user32.lib"
 
249
set "BOOST_JAM_OPT_JAM=/Febootstrap\jam0"
 
250
set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"
 
251
set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"
 
252
set "_known_=1"
 
253
:Skip_MSVC
 
254
if NOT "_%BOOST_JAM_TOOLSET%_" == "_vc7_" goto :Skip_VC7
 
255
if NOT "_%VS71COMNTOOLS%_" == "__" (
 
256
    set "BOOST_JAM_TOOLSET_ROOT=%VS71COMNTOOLS%..\..\VC7\"
 
257
    )
 
258
if "_%VCINSTALLDIR%_" == "__" call :Call_If_Exists "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT"
 
259
if NOT "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
 
260
    if "_%VCINSTALLDIR%_" == "__" (
 
261
        set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"
 
262
        ) )
 
263
set "BOOST_JAM_CC=cl /nologo /GZ /Zi /MLd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG kernel32.lib advapi32.lib user32.lib"
 
264
set "BOOST_JAM_OPT_JAM=/Febootstrap\jam0"
 
265
set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"
 
266
set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"
 
267
set "_known_=1"
 
268
:Skip_VC7
 
269
if NOT "_%BOOST_JAM_TOOLSET%_" == "_vc8_" goto :Skip_VC8
 
270
if NOT "_%VS80COMNTOOLS%_" == "__" (
 
271
    set "BOOST_JAM_TOOLSET_ROOT=%VS80COMNTOOLS%..\..\VC\"
 
272
    )
 
273
if "_%VCINSTALLDIR%_" == "__" call :Call_If_Exists "%BOOST_JAM_TOOLSET_ROOT%VCVARSALL.BAT" %BOOST_JAM_ARGS%
 
274
if NOT "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
 
275
    if "_%VCINSTALLDIR%_" == "__" (
 
276
        set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"
 
277
        ) )
 
278
set "BOOST_JAM_CC=cl /nologo /RTC1 /Zi /MTd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG -wd4996 kernel32.lib advapi32.lib user32.lib"
 
279
set "BOOST_JAM_OPT_JAM=/Febootstrap\jam0"
 
280
set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"
 
281
set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"
 
282
set "_known_=1"
 
283
:Skip_VC8
 
284
if NOT "_%BOOST_JAM_TOOLSET%_" == "_borland_" goto :Skip_BORLAND
 
285
if "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
 
286
    call :Test_Path bcc32.exe )
 
287
if "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
 
288
    if not errorlevel 1 (
 
289
        set "BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\"
 
290
        ) )
 
291
if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
 
292
    set "PATH=%BOOST_JAM_TOOLSET_ROOT%Bin;%PATH%"
 
293
    )
 
294
set "BOOST_JAM_CC=bcc32 -WC -w- -q -I%BOOST_JAM_TOOLSET_ROOT%Include -L%BOOST_JAM_TOOLSET_ROOT%Lib /DNT -nbootstrap"
 
295
set "BOOST_JAM_OPT_JAM=-ejam0"
 
296
set "BOOST_JAM_OPT_MKJAMBASE=-emkjambasejam0"
 
297
set "BOOST_JAM_OPT_YYACC=-eyyacc0"
 
298
set "_known_=1"
 
299
:Skip_BORLAND
 
300
if NOT "_%BOOST_JAM_TOOLSET%_" == "_como_" goto :Skip_COMO
 
301
set "BOOST_JAM_CC=como -DNT"
 
302
set "BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe"
 
303
set "BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe"
 
304
set "BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe"
 
305
set "_known_=1"
 
306
:Skip_COMO
 
307
if NOT "_%BOOST_JAM_TOOLSET%_" == "_gcc_" goto :Skip_GCC
 
308
set "BOOST_JAM_CC=gcc -DNT"
 
309
set "BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe"
 
310
set "BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe"
 
311
set "BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe"
 
312
set "_known_=1"
 
313
:Skip_GCC
 
314
if NOT "_%BOOST_JAM_TOOLSET%_" == "_gcc-nocygwin_" goto :Skip_GCC_NOCYGWIN
 
315
set "BOOST_JAM_CC=gcc -DNT -mno-cygwin"
 
316
set "BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe"
 
317
set "BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe"
 
318
set "BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe"
 
319
set "_known_=1"
 
320
:Skip_GCC_NOCYGWIN
 
321
if NOT "_%BOOST_JAM_TOOLSET%_" == "_intel-win32_" goto :Skip_INTEL_WIN32
 
322
set "BOOST_JAM_CC=icl -DNT /nologo kernel32.lib advapi32.lib user32.lib"
 
323
set "BOOST_JAM_OPT_JAM=/Febootstrap\jam0"
 
324
set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"
 
325
set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"
 
326
set "_known_=1"
 
327
:Skip_INTEL_WIN32
 
328
if NOT "_%BOOST_JAM_TOOLSET%_" == "_mingw_" goto :Skip_MINGW
 
329
if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
 
330
    set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"
 
331
    )
 
332
set "BOOST_JAM_CC=gcc -DNT"
 
333
set "BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe"
 
334
set "BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe"
 
335
set "BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe"
 
336
set "_known_=1"
 
337
:Skip_MINGW
 
338
setlocal & endlocal
315
339
if "_%_known_%_" == "__" (
316
340
    call :Error_Print "Unknown toolset: %BOOST_JAM_TOOLSET%"
317
341
)
326
350
set BJAM_SOURCES=
327
351
set BJAM_SOURCES=%BJAM_SOURCES% command.c compile.c debug.c execnt.c expand.c filent.c glob.c hash.c
328
352
set BJAM_SOURCES=%BJAM_SOURCES% hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c
329
 
set BJAM_SOURCES=%BJAM_SOURCES% newstr.c option.c parse.c pathunix.c regexp.c
 
353
set BJAM_SOURCES=%BJAM_SOURCES% newstr.c option.c output.c parse.c pathunix.c regexp.c
330
354
set BJAM_SOURCES=%BJAM_SOURCES% rules.c scan.c search.c subst.c timestamp.c variable.c modules.c
331
355
set BJAM_SOURCES=%BJAM_SOURCES% strings.c filesys.c builtins.c pwd.c class.c w32_getreg.c native.c
332
356
set BJAM_SOURCES=%BJAM_SOURCES% modules/set.c modules/path.c modules/regex.c