2005-05-28 00:45:31 +02:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
|
2005-06-27 15:54:02 +02:00
|
|
|
::Set up the compiler environment
|
2006-09-12 07:55:56 +02:00
|
|
|
if DEFINED VS80COMNTOOLS (
|
|
|
|
@devenv /? >nul 2>nul
|
2006-11-09 10:25:33 +01:00
|
|
|
@if errorlevel 9009 (call "%VS80COMNTOOLS%vsvars32.bat") else ( echo The file: & echo "%VS80COMNTOOLS%vsvars32.bat" & echo has already been executed.)
|
2006-09-12 07:55:56 +02:00
|
|
|
) else (
|
2005-06-27 15:54:02 +02:00
|
|
|
if DEFINED VS71COMNTOOLS (
|
|
|
|
@devenv /? >nul 2>nul
|
2006-11-09 10:25:33 +01:00
|
|
|
@if errorlevel 9009 (call "%VS71COMNTOOLS%vsvars32.bat") else ( echo The file: & echo "%VS71COMNTOOLS%vsvars32.bat" & echo has already been executed.)
|
2005-06-27 15:54:02 +02:00
|
|
|
) else (
|
|
|
|
@msdev /? >nul 2>nul
|
|
|
|
@if errorlevel 9009 (call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat") else (echo MSVC6 vcvars.bat has already been executed.)
|
|
|
|
)
|
2006-09-12 07:55:56 +02:00
|
|
|
)
|
2005-06-27 15:54:02 +02:00
|
|
|
@echo.
|
|
|
|
|
|
|
|
:: Set env vars
|
|
|
|
@call setenvvar.bat
|
|
|
|
|
|
|
|
::===========
|
|
|
|
:: Read input values
|
|
|
|
@set DBG=
|
|
|
|
@set DBG_DIR=release
|
|
|
|
@set CLEAN=/build
|
|
|
|
@if "%1"=="DEBUG" ((set DBG=TRUE) && (set DBG_DIR=debug))
|
|
|
|
@if "%2"=="DEBUG" ((set DBG=TRUE) && (set DBG_DIR=debug))
|
|
|
|
@if "%1"=="CLEAN" (set CLEAN=/rebuild)
|
|
|
|
@if "%2"=="CLEAN" (set CLEAN=/rebuild)
|
|
|
|
|
|
|
|
::==========
|
|
|
|
:: MAIN
|
|
|
|
|
2006-11-19 15:24:09 +01:00
|
|
|
@echo Building %DBG_DIR%
|
2005-06-27 15:54:02 +02:00
|
|
|
|
2006-11-19 15:24:09 +01:00
|
|
|
if "%VS_VER%"=="msvc8" (
|
|
|
|
@call compile.bat %ROOT_PATH%\extern\icu\source\allinone\allinone_8 make_icu.log
|
2006-09-12 07:55:56 +02:00
|
|
|
) else (
|
2006-11-19 15:24:09 +01:00
|
|
|
@call compile.bat %ROOT_PATH%\extern\icu\source\allinone\allinone make_icu.log
|
2005-05-28 00:45:31 +02:00
|
|
|
)
|
2005-06-27 15:54:02 +02:00
|
|
|
|
2006-11-19 15:24:09 +01:00
|
|
|
if errorlevel 1 call :ERROR build failed - see make_icu.log for details
|
2005-06-27 15:54:02 +02:00
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:ERROR
|
|
|
|
::====
|
|
|
|
@echo.
|
|
|
|
@echo An error occurred while running make_icu.bat -
|
|
|
|
@echo %*
|
|
|
|
@echo.
|
|
|
|
set ERRLEV=1
|
|
|
|
cancel_script > nul 2>&1
|
|
|
|
::End of ERROR
|
|
|
|
::------------
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|