configure.bat
来自「symbian 上的stl_port进过编译的。」· Batch 代码 · 共 542 行 · 第 1/2 页
BAT
542 行
@ECHO OFFREM **************************************************************************REM *REM * configure.bat for setting up compiling STLport under WindowsREM * to see available options, call with option --helpREM *REM * Copyright (C) 2004,2005 Michael FinkREM *REM **************************************************************************REM Attention! Batch file labels only have 8 significant characters!echo STLport Configuration Tool for Windowsecho.REM no options at all?if NOT "%1xyz123" == "xyz123" goto initecho Please specify some options or use "configure --help" to see theecho available options.goto skp_comp:initREM initially create/overwrite config.makecho # STLport Configuration Tool for Windows > ..\Makefiles\config.makecho # >> ..\Makefiles\config.makecho # config.mak generated with command line: >> ..\Makefiles\config.makecho # configure %1 %2 %3 %4 %5 %6 %7 %8 %9 >> ..\Makefiles\config.makecho # >> ..\Makefiles\config.makREMREM option loopREM:loopREM help optionif "%1" == "-?" goto opt_helpif "%1" == "-h" goto opt_helpif "%1" == "/?" goto opt_helpif "%1" == "/h" goto opt_helpif "%1" == "--help" goto opt_helpREM compiler optionif "%1" == "-c" goto opt_compif "%1" == "/c" goto opt_compif "%1" == "--compiler" goto opt_compREM cross compilingif "%1" == "-x" goto opt_xif "%1" == "/x" goto opt_xif "%1" == "--cross" goto opt_xREM C runtime libraryif "%1" == "--rtl-static" goto opt_rtlif "%1" == "--rtl-dynamic" goto opt_rtlREM boost supportif "%1" == "--use-boost" goto opt_bstREM multithreading supportif "%1" == "--not-thread-safe" goto opt_stREM rtti supportif "%1" == "--no-rtti" goto opt_rttiREM additional compiler optionsif "%1" == "--extra-cxxflag" goto opt_xtraREM library name customizationif "%1" == "--lib-motif" goto opt_motfREM clean ruleif "%1" == "--clean" goto opt_clnecho Unknown option: %1:cont_lpecho.shiftREM no more options?if "%1xyz123" == "xyz123" goto end_loopgoto loopREM **************************************************************************REM *REM * HelpREM *REM **************************************************************************:opt_helpecho The following options are available:echo.echo "-c <compiler>" or "--compiler <compiler>"echo Uses specified compiler to compile STLport. The following keywordsecho are available:echo msvc6 Microsoft Visual C++ 6.0echo msvc7 Microsoft Visual C++ .NET 2002echo msvc71 Microsoft Visual C++ .NET 2003echo msvc8 Microsoft Visual C++ 2005echo icl Intel C++ Compilerecho evc3 Microsoft eMbedded Visual C++ 3 (*)echo evc4 Microsoft eMbedded Visual C++ .NET (*)echo evc8 Microsoft Visual C++ 2005 compiling for CEecho gcc GNU C++ Compiler (MinGW package)echo dmc Digital Mars Compilerecho bcc Borland C++ Compilerecho (*) For these compilers the target processor is determined automatically.echo You must run the WCE*.BAT file you wish to build STLport for beforeecho running configure.echo.echo "-x"echo Enables cross-compiling; the result is that all built files that areecho normally put under "bin" and "lib" get extra subfolders depending onecho the compiler name.echo.echo "--rtl-static"echo "--rtl-dynamic"echo Enables usage of static (libc.lib family) or dynamic (msvcrt.lib family)echo C/C++ runtime library when linking with STLport. If you want your appli/dllecho to link statically with STLport but using the dynamic C runtime useecho --rtl-dynamic; if you want to link dynamicaly with STLport but using theecho static C runtime use --rtl-static. See README.options for details.echo Don't forget to signal the link method when building your appli or dll, inecho stlport/stl/config/host.h set the following macro depending on the configureecho option:echo "--rtl-dynamic -> _STLP_USE_STATIC_LIB"echo "--rtl-static -> _STLP_USE_DYNAMIC_LIB"echo This is a Microsoft Visual Studio only option.echo.echo "--use-boost <boost install path>"echo Request use of boost support (www.boost.org). For the moment only the boostecho type_traits library is used to get type information and to implement someecho specific workaround not directly implemented by STLport. To use the sameecho support using STLport don't forget to define _STLP_USE_BOOST_SUPPORT inecho stlport/stl/config/user_config.h file.echo.echo "--not-thread-safe"echo Per default STLport libraries are built in order to be usable in a multithreadedecho context. If you don't need this you can ask for a not thread safe version withecho this option.echo.echo "--no-rtti"echo Remove rtti (run time type information) support if available.echo.echo "--extra-cxxflag <additional compilation options>"echo Use this option to add any compilation flag to the build system. For instanceecho it can be used to activate a specific processor optimization depending on yourecho processor. For Visual C++ .Net 2003, to activate pentium 3 optim you will use:echo --extra-cxxflag /G7echo If you have several options use several --extra-cxxflag options. For instanceecho to also force use of wchar_t as an intrinsic type:echo --extra-cxxflag /G7 --extra-cxxflag /Zc:wchar_techo.echo "--lib-motif <motif>"echo Use this option to customize the generated library name. The motif will be usedecho in the last place before version information, separated by an underscore, ex:echo stlportd_MOTIF.5.0.libecho stlportstld_static_MOTIF.5.1.libecho Do not forget to define _STLP_LIB_NAME_MOTIF macro in STLport configuration fileecho to the same value if you want to keep the auto link feature.echo.echo "--clean"echo Removes the build configuration file.goto skp_compREM **************************************************************************REM *REM * Compiler configurationREM *REM **************************************************************************:opt_compif "%2" == "msvc6" goto oc_msvc6if "%2" == "msvc71" goto oc_msv71if "%2" == "msvc7" goto oc_msvc7if "%2" == "msvc8" goto oc_msvc8if "%2" == "icl" goto oc_iclif "%2" == "evc3" goto oc_evc3if "%2" == "evc4" goto oc_evc4if "%2" == "evc8" goto oc_evc8if "%2" == "gcc" goto oc_gccif "%2" == "dmc" goto oc_dmcif "%2" == "bcc" goto oc_bccecho Unknown compiler: %2goto oc_end:oc_msvc6echo Setting compiler: Microsoft Visual C++ 6.0echo COMPILER_NAME=vc6 >> ..\Makefiles\config.makset SELECTED_COMPILER_VERSION=60goto oc_msvc:oc_msvc7echo Setting compiler: Microsoft Visual C++ .NET 2002echo COMPILER_NAME=vc70 >> ..\Makefiles\config.makset SELECTED_COMPILER_VERSION=70goto oc_msvc:oc_msv71echo Setting compiler: Microsoft Visual C++ .NET 2003echo COMPILER_NAME=vc71 >> ..\Makefiles\config.makset SELECTED_COMPILER_VERSION=71goto oc_msvc:oc_msvc8echo Setting compiler: Microsoft Visual C++ 2005echo COMPILER_NAME=vc8 >> ..\Makefiles\config.makset SELECTED_COMPILER_VERSION=80goto oc_msvc:oc_msvcecho TARGET_OS=x86 >> ..\Makefiles\config.makset STLPORT_COMPILE_COMMAND=nmake /fmsvc.makset SELECTED_COMPILER=msvcgoto oc_end:oc_iclecho Setting compiler: Intel C++ Compilerecho COMPILER_NAME=icl >> ..\Makefiles\config.makecho TARGET_OS=x86 >> ..\Makefiles\config.makset STLPORT_COMPILE_COMMAND=nmake /ficl.makset SELECTED_COMPILER=iclgoto oc_end:oc_evc3echo Setting compiler: Microsoft eMbedded Visual C++ 3echo COMPILER_NAME=evc3 >> ..\Makefiles\config.makrem TODO: branch on OSVERSION like below?echo CEVERSION=300 >> ..\Makefiles\config.makset SELECTED_COMPILER_VERSION=3goto oc_evc:oc_evc4echo Setting compiler: Microsoft eMbedded Visual C++ .NETecho COMPILER_NAME=evc4 >> ..\Makefiles\config.makif "%OSVERSION%"=="" ( echo OSVERSION not set, assuming target is CE 4.2 echo CEVERSION=420 >> ..\Makefiles\config.mak) else if "%OSVERSION%"=="WCE400" ( echo CEVERSION=400 >> ..\Makefiles\config.mak) else if "%OSVERSION%"=="WCE420" ( echo CEVERSION=420 >> ..\Makefiles\config.mak) else if "%OSVERSION%"=="WCE500" ( echo CEVERSION=500 >> ..\Makefiles\config.mak) else ( echo Unknown value for OSVERSION. exit /b 1)set SELECTED_COMPILER_VERSION=4goto oc_evc:oc_evc8echo Setting compiler: Microsoft Visual C++ .NET 2005 for Windows CEecho COMPILER_NAME=evc8 >> ..\Makefiles\config.makset SELECTED_COMPILER_VERSION=80if "%OSVERSION%"=="" ( echo OSVERSION not set, assuming target is CE 5.0 echo CEVERSION=500 >> ..\Makefiles\config.mak) else if "%OSVERSION%"=="WCE400" ( echo CEVERSION=400 >> ..\Makefiles\config.mak) else if "%OSVERSION%"=="WCE420" ( echo CEVERSION=420 >> ..\Makefiles\config.mak) else if "%OSVERSION%"=="WCE500" ( echo CEVERSION=500 >> ..\Makefiles\config.mak) else (
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?