⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build.bat

📁 Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
💻 BAT
📖 第 1 页 / 共 2 页
字号:
REM is a single command, even though it's in multiple lines here.:Setup_Argsif "_%1_" == "__" goto Config_Toolsetcall :Test_Option "%1"if errorlevel 1 (    set BOOST_JAM_ARGS=%BOOST_JAM_ARGS% %1    shift    goto Setup_Args):Config_Toolsetif NOT "_%BOOST_JAM_TOOLSET%_" == "_metrowerks_" goto :Skip_METROWERKSif NOT "_%CWFolder%_" == "__" (    set "BOOST_JAM_TOOLSET_ROOT=%CWFolder%\"    )set "PATH=%BOOST_JAM_TOOLSET_ROOT%Other Metrowerks Tools\Command Line Tools;%PATH%"set "BOOST_JAM_CC=mwcc -runtime ss -cwd include -DNT -lkernel32.lib -ladvapi32.lib -luser32.lib"set "BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe"set "BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe"set "BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe"set "_known_=1":Skip_METROWERKSif NOT "_%BOOST_JAM_TOOLSET%_" == "_msvc_" goto :Skip_MSVCif NOT "_%MSVCDir%_" == "__" (    set "BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\"    )call :Call_If_Exists "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT"if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (    set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"    )set "BOOST_JAM_CC=cl /nologo /GZ /Zi /MLd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG kernel32.lib advapi32.lib user32.lib"set "BOOST_JAM_OPT_JAM=/Febootstrap\jam0"set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"set "_known_=1":Skip_MSVCif NOT "_%BOOST_JAM_TOOLSET%_" == "_vc7_" goto :Skip_VC7if NOT "_%VS71COMNTOOLS%_" == "__" (    set "BOOST_JAM_TOOLSET_ROOT=%VS71COMNTOOLS%..\..\VC7\"    )if "_%VCINSTALLDIR%_" == "__" call :Call_If_Exists "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT"if NOT "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (    if "_%VCINSTALLDIR%_" == "__" (        set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"        ) )set "BOOST_JAM_CC=cl /nologo /GZ /Zi /MLd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG kernel32.lib advapi32.lib user32.lib"set "BOOST_JAM_OPT_JAM=/Febootstrap\jam0"set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"set "_known_=1":Skip_VC7if NOT "_%BOOST_JAM_TOOLSET%_" == "_vc8_" goto :Skip_VC8if NOT "_%VS80COMNTOOLS%_" == "__" (    set "BOOST_JAM_TOOLSET_ROOT=%VS80COMNTOOLS%..\..\VC\"    )if "_%VCINSTALLDIR%_" == "__" call :Call_If_Exists "%BOOST_JAM_TOOLSET_ROOT%VCVARSALL.BAT" %BOOST_JAM_ARGS%if NOT "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (    if "_%VCINSTALLDIR%_" == "__" (        set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"        ) )set "BOOST_JAM_CC=cl /nologo /RTC1 /Zi /MTd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG -wd4996 kernel32.lib advapi32.lib user32.lib"set "BOOST_JAM_OPT_JAM=/Febootstrap\jam0"set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"set "_known_=1":Skip_VC8if NOT "_%BOOST_JAM_TOOLSET%_" == "_vc9_" goto :Skip_VC9if NOT "_%VS90COMNTOOLS%_" == "__" (    set "BOOST_JAM_TOOLSET_ROOT=%VS90COMNTOOLS%..\..\VC\"    )if "_%VCINSTALLDIR%_" == "__" call :Call_If_Exists "%BOOST_JAM_TOOLSET_ROOT%VCVARSALL.BAT" %BOOST_JAM_ARGS%if NOT "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (    if "_%VCINSTALLDIR%_" == "__" (        set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"        ) )set "BOOST_JAM_CC=cl /nologo /RTC1 /Zi /MTd /Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG -wd4996 kernel32.lib advapi32.lib user32.lib"set "BOOST_JAM_OPT_JAM=/Febootstrap\jam0"set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"set "_known_=1":Skip_VC9if NOT "_%BOOST_JAM_TOOLSET%_" == "_borland_" goto :Skip_BORLANDif "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (    call :Test_Path bcc32.exe )if "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (    if not errorlevel 1 (        set "BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\"        ) )if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (    set "PATH=%BOOST_JAM_TOOLSET_ROOT%Bin;%PATH%"    )set "BOOST_JAM_CC=bcc32 -WC -w- -q -I%BOOST_JAM_TOOLSET_ROOT%Include -L%BOOST_JAM_TOOLSET_ROOT%Lib /DNT -nbootstrap"set "BOOST_JAM_OPT_JAM=-ejam0"set "BOOST_JAM_OPT_MKJAMBASE=-emkjambasejam0"set "BOOST_JAM_OPT_YYACC=-eyyacc0"set "_known_=1":Skip_BORLANDif NOT "_%BOOST_JAM_TOOLSET%_" == "_como_" goto :Skip_COMOset "BOOST_JAM_CC=como -DNT"set "BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe"set "BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe"set "BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe"set "_known_=1":Skip_COMOif NOT "_%BOOST_JAM_TOOLSET%_" == "_gcc_" goto :Skip_GCCset "BOOST_JAM_CC=gcc -DNT"set "BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe"set "BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe"set "BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe"set "_known_=1":Skip_GCCif NOT "_%BOOST_JAM_TOOLSET%_" == "_gcc-nocygwin_" goto :Skip_GCC_NOCYGWINset "BOOST_JAM_CC=gcc -DNT -mno-cygwin"set "BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe"set "BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe"set "BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe"set "_known_=1":Skip_GCC_NOCYGWINif NOT "_%BOOST_JAM_TOOLSET%_" == "_intel-win32_" goto :Skip_INTEL_WIN32set "BOOST_JAM_CC=icl -DNT /nologo kernel32.lib advapi32.lib user32.lib"set "BOOST_JAM_OPT_JAM=/Febootstrap\jam0"set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"set "_known_=1":Skip_INTEL_WIN32if NOT "_%BOOST_JAM_TOOLSET%_" == "_mingw_" goto :Skip_MINGWif not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (    set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"    )set "BOOST_JAM_CC=gcc -DNT"set "BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe"set "BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe"set "BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe"set "_known_=1":Skip_MINGWsetlocal & endlocalif "_%_known_%_" == "__" (    call :Error_Print "Unknown toolset: %BOOST_JAM_TOOLSET%")if errorlevel 1 goto Finishecho ###echo ### Using '%BOOST_JAM_TOOLSET%' toolset.echo ###set YYACC_SOURCES=yyacc.cset MKJAMBASE_SOURCES=mkjambase.cset BJAM_SOURCES=set BJAM_SOURCES=%BJAM_SOURCES% command.c compile.c debug.c execnt.c expand.c filent.c glob.c hash.cset BJAM_SOURCES=%BJAM_SOURCES% hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.cset BJAM_SOURCES=%BJAM_SOURCES% newstr.c option.c output.c parse.c pathunix.c regexp.cset BJAM_SOURCES=%BJAM_SOURCES% rules.c scan.c search.c subst.c timestamp.c variable.c modules.cset BJAM_SOURCES=%BJAM_SOURCES% strings.c filesys.c builtins.c pwd.c class.c w32_getreg.c native.cset BJAM_SOURCES=%BJAM_SOURCES% modules/set.c modules/path.c modules/regex.c set BJAM_SOURCES=%BJAM_SOURCES% modules/property-set.c modules/sequence.c modules/order.cset BJAM_UPDATE=if "_%1" == "_--update" (    set BJAM_UPDATE=update)if "_%2" == "_--update" (    set BJAM_UPDATE=update)if "_%3" == "_--update" (    set BJAM_UPDATE=update)if "_%4" == "_--update" (    set BJAM_UPDATE=update)if "_%BJAM_UPDATE%_" == "_update_" (    if not exist ".\bootstrap\jam0.exe" (        set BJAM_UPDATE=    ))@echo ON@if "_%BJAM_UPDATE%_" == "_update_" goto Skip_Bootstraprd /S /Q bootstrapmd bootstrap@if not exist jamgram.y goto Bootstrap_GrammarPrep@if not exist jamgramtab.h goto Bootstrap_GrammarPrep@goto Skip_GrammarPrep:Bootstrap_GrammarPrep%BOOST_JAM_CC% %BOOST_JAM_OPT_YYACC% %YYACC_SOURCES%@if not exist ".\bootstrap\yyacc0.exe" goto Skip_GrammarPrep.\bootstrap\yyacc0 jamgram.y jamgramtab.h jamgram.yy:Skip_GrammarPrep@if not exist jamgram.c goto Bootstrap_GrammarBuild@if not exist jamgram.h goto Bootstrap_GrammarBuild@goto Skip_GrammarBuild:Bootstrap_GrammarBuild@echo OFFif "_%YACC%_" == "__" (    call :Guess_Yacc)if errorlevel 1 goto Finish@echo ON%YACC% jamgram.y@if errorlevel 1 goto Finishdel /f jamgram.crename y.tab.c jamgram.cdel /f jamgram.hrename y.tab.h jamgram.h:Skip_GrammarBuild@echo ON@if exist jambase.c goto Skip_Jambase%BOOST_JAM_CC% %BOOST_JAM_OPT_MKJAMBASE% %MKJAMBASE_SOURCES%@if not exist ".\bootstrap\mkjambase0.exe" goto Skip_Jambase.\bootstrap\mkjambase0 jambase.c Jambase:Skip_Jambase%BOOST_JAM_CC% %BOOST_JAM_OPT_JAM% %BJAM_SOURCES%:Skip_Bootstrap@if not exist ".\bootstrap\jam0.exe" goto Skip_Jam@if "_%BJAM_UPDATE%_" == "_update_" goto Skip_Clean.\bootstrap\jam0 -f build.jam --toolset=%BOOST_JAM_TOOLSET% "--toolset-root=%BOOST_JAM_TOOLSET_ROOT% " clean:Skip_Clean@set args=:Set_Args@if not "_%1_" == "__" (    set args=%args% %1    shift    goto Set_Args).\bootstrap\jam0 -f build.jam --toolset=%BOOST_JAM_TOOLSET% "--toolset-root=%BOOST_JAM_TOOLSET_ROOT% " %args%:Skip_Jam:Finish

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -