8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:43:04 +01:00
firebird-mirror/builds/win32/make_icu.bat

63 lines
1.5 KiB
Batchfile

@echo off
::Set up the compiler environment
if DEFINED VS80COMNTOOLS (
@devenv /? >nul 2>nul
@if errorlevel 9009 (call "%VS80COMNTOOLS%vsvars32.bat") else ( echo The file: & echo "%VS80COMNTOOLS%vsvars32.bat" & echo has already been executed.)
) else (
if DEFINED VS71COMNTOOLS (
@devenv /? >nul 2>nul
@if errorlevel 9009 (call "%VS71COMNTOOLS%vsvars32.bat") else ( echo The file: & echo "%VS71COMNTOOLS%vsvars32.bat" & echo has already been executed.)
) 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.)
)
)
@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
@echo Building %DBG_DIR%
if "%VS_VER%"=="msvc8" (
@call compile.bat %ROOT_PATH%\extern\icu\source\allinone\allinone_8 make_icu.log
) else (
@call compile.bat %ROOT_PATH%\extern\icu\source\allinone\allinone make_icu.log
)
if errorlevel 1 call :ERROR build failed - see make_icu.log for details
@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