8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 00:03:02 +01:00
firebird-mirror/builds/win32/set_build_target.bat
2016-03-25 09:47:14 +03:00

22 lines
635 B
Batchfile

@echo off
set FB_DBG=
set FB_OBJ_DIR=release
set FB_CLEAN=/build
set FB_ICU=
set FB_VC_CRT_ARCH=%FB_PROCESSOR_ARCHITECTURE%
for %%v in ( %* ) do (
( if /I "%%v"=="DEBUG" ( (set FB_DBG=TRUE) && (set FB_OBJ_DIR=debug) ) )
( if /I "%%v"=="CLEAN" (set FB_CLEAN=/rebuild) )
( if /I "%%v"=="ICU" ( (set FB_ICU=1) && (set FB_DBG=) ) )
( if /I "%%v"=="RELEASE" ( (set FB_DBG=) && (set FB_OBJ_DIR=release) ) )
)
set FB_OBJ_DIR=%FB_TARGET_PLATFORM%\%FB_OBJ_DIR%
if %MSVC_VERSION% GEQ 10 ( if %FB_VC_CRT_ARCH% == AMD64 ( set FB_VC_CRT_ARCH=x64))
@set FB_BIN_DIR=%FB_ROOT_PATH%\temp\%FB_OBJ_DIR%\firebird\
@echo Executed %0
@echo.