configure.bat

来自「symbian 上的stl_port进过编译的。」· Batch 代码 · 共 542 行 · 第 1/2 页

BAT
542
字号
    echo Unknown value for OSVERSION.    exit /b 1)set STLPORT_COMPILE_COMMAND=nmake /fevc.makset SELECTED_COMPILER=msvcgoto proc:oc_evcset STLPORT_COMPILE_COMMAND=nmake /fevc.makset SELECTED_COMPILER=evcgoto proc:oc_gccecho Setting compiler: GNU C++ Compilerset STLPORT_COMPILE_COMMAND=make -fgcc.makset SELECTED_COMPILER=gccshiftgoto oc_gmake:oc_dmcecho Setting compiler: Digital Mars C++ Compilerset STLPORT_COMPILE_COMMAND=make -fdmc.makset SELECTED_COMPILER=dmcshiftgoto oc_gmake:oc_bccecho Setting compiler: Borland C++ Compilerset STLPORT_COMPILE_COMMAND=make -fbcc.makset SELECTED_COMPILER=bccshiftgoto oc_gmake:oc_gmakeecho In order to build STLport with this compiler you need a GNU make tool.echo You can get one from www.mingw.org or www.cygwin.comecho Setting up for building using GNU make.echo include $(SRCROOT)\Makefiles\gmake\windows\sysid.mak >> ..\Makefiles\config.makgoto cont_lp:oc_endshiftgoto cont_lpREM **************************************************************************REM *REM * Target processor configuration (automatic)REM *REM **************************************************************************:procif "%TARGETCPU%" == "ARM" goto pr_armif "%TARGETCPU%" == "ARMV4" goto pr_armif "%TARGETCPU%" == "ARMV4I" goto pr_armif "%TARGETCPU%" == "ARMV4T" goto pr_armif "%TARGETCPU%" == "X86" goto pr_x86REM Type from evc3 and/or PocketPC 2002 SDK reported hereREM to correctly check the platform:if "%TARGETCPU%" == "X86EMnset CFG=none" goto pr_emulif "%TARGETCPU%" == "x86" goto pr_x86if "%TARGETCPU%" == "emulator" goto pr_emulif "%TARGETCPU%" == "R4100" goto pr_mipsif "%TARGETCPU%" == "R4111" goto pr_mipsif "%TARGETCPU%" == "R4300" goto pr_mipsif "%TARGETCPU%" == "MIPS16" goto pr_mipsif "%TARGETCPU%" == "MIPSII" goto pr_mipsif "%TARGETCPU%" == "MIPSII_FP" goto pr_mipsif "%TARGETCPU%" == "MIPSIV" goto pr_mipsif "%TARGETCPU%" == "MIPSIV_FP" goto pr_mipsif "%TARGETCPU%" == "SH3" goto pr_sh3if "%TARGETCPU%" == "SH4" goto pr_sh4:pr_errecho Unknown target CPU: %TARGETCPU%goto pr_end:pr_armecho Target processor: ARMecho TARGET_PROC=arm >> ..\Makefiles\config.makecho TARGET_PROC_SUBTYPE=%TARGETCPU% >> ..\Makefiles\config.makgoto pr_end:pr_x86echo Target processor: x86echo TARGET_PROC=x86 >> ..\Makefiles\config.makgoto pr_end:pr_emulecho Target processor: Emulatorecho TARGET_PROC=x86 >> ..\Makefiles\config.makecho TARGET_PROC_SUBTYPE=emulator >> ..\Makefiles\config.makgoto pr_end:pr_mipsecho Target processor: MIPSecho TARGET_PROC=mips >> ..\Makefiles\config.makecho TARGET_PROC_SUBTYPE=%TARGETCPU% >> ..\Makefiles\config.makgoto pr_end:pr_sh3echo Target processor: %TARGETCPU%echo TARGET_PROC=sh3 >> ..\Makefiles\config.makgoto pr_end:pr_sh4echo Target processor: %TARGETCPU%echo TARGET_PROC=sh4 >> ..\Makefiles\config.makgoto pr_end:pr_endgoto oc_endREM **************************************************************************REM *REM * Cross Compiling optionREM *REM **************************************************************************:opt_xecho Setting up for cross compiling.echo CROSS_COMPILING=1 >> ..\Makefiles\config.makgoto cont_lpREM **************************************************************************REM *REM * C runtime library selectionREM *REM **************************************************************************:opt_rtlif "%SELECTED_COMPILER%" == "" goto or_err1if "%SELECTED_COMPILER%" == "msvc" goto or_okif "%SELECTED_COMPILER%" == "bcc" goto or_okif "%SELECTED_COMPILER%" == "dmc" goto or_okgoto or_err2:or_err1echo Error: Please give used compiler first in order to check other options correctness.goto or_end:or_err2echo Error: Setting C runtime library for compiler other than microsoft ones!goto or_end:or_okif "%1" == "--rtl-static" echo Selecting static C runtime library for STLportif "%1" == "--rtl-static" echo STLP_BUILD_FORCE_STATIC_RUNTIME=1 >> ..\Makefiles\config.makif "%1" == "--rtl-dynamic" echo Selecting dynamic C runtime library for STLportif "%1" == "--rtl-dynamic" echo STLP_BUILD_FORCE_DYNAMIC_RUNTIME=1 >> ..\Makefiles\config.mak:or_endgoto cont_lpREM **************************************************************************REM *REM * boost supportREM *REM **************************************************************************:opt_bstREM if (Exists("%2")) goto ob_okREM if !("%2" == "") goto ob_okgoto ob_okecho Error: Invalid boost intallation folder ("%2").goto ob_end:ob_okecho Activating boost support using "%2" pathecho STLP_BUILD_BOOST_PATH="%2" >> ..\Makefiles\config.mak:ob_endshiftgoto cont_lpREM **************************************************************************REM *REM * Multithreading supportREM *REM **************************************************************************:opt_stecho Removing thread safety supportecho STLP_BUILD_NO_THREAD=1 >> ..\Makefiles\config.makgoto cont_lpREM **************************************************************************REM *REM * rtti supportREM *REM **************************************************************************:opt_rttiecho Removing rtti supportecho STLP_BUILD_NO_RTTI=1 >> ..\Makefiles\config.makgoto cont_lpREM **************************************************************************REM *REM * Extra compilation flagsREM *REM **************************************************************************:opt_xtraecho Adding '%2' compilation optionif "%ONE_OPTION_ADDED%" == "1" goto ox_necho DEFS = %2 >> ..\Makefiles\config.makset ONE_OPTION_ADDED=1goto ox_end:ox_necho DEFS = $(DEFS) %2 >> ..\Makefiles\config.mak:ox_endshiftgoto cont_lpREM **************************************************************************REM *REM * Library name configurationREM *REM **************************************************************************:opt_motfecho Using '%2' in generated library namesecho STLP_BUILD_LIB_MOTIF = %2 >> ..\Makefiles\config.makshiftgoto cont_lpREM **************************************************************************REM *REM * CleanREM *REM **************************************************************************:opt_clndel ..\Makefiles\config.makecho STLport configuration file removed.goto skp_compREM **************************************************************************REM *REM * End loopREM *REM **************************************************************************:end_loopecho Done configuring STLport.echo.if "%STLPORT_COMPILE_COMMAND%" == "" goto skp_compecho Please type "%STLPORT_COMPILE_COMMAND%" to build STLport.echo Type "%STLPORT_COMPILE_COMMAND% install" to install STLport to the "lib"echo and "bin" folder when done.echo.:skp_compset STLPORT_COMPILE_COMMAND=set SELECTED_COMPILER=set SELECTED_COMPILER_VERSION=set ONE_OPTION_ADDED=

⌨️ 快捷键说明

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