8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 00:03:02 +01:00
firebird-mirror/builds/win32/compile.bat
Adriano dos Santos Fernandes 4173806796
Windows build with msbuild to also work with VS Build Tools. (#195)
Do not call VS set env. script ourselves, but instead expected it to be already called by user.
2019-04-25 12:20:02 -03:00

41 lines
770 B
Batchfile

@echo off
::==============
:: compile.bat solution, output, [projects...]
::
:: Note: Our projects create object files in temp/$platform/$config
:: but we call devenv with $config|$platform (note variable in reverse order
:: and odd syntax).
setlocal
set solution=%1
set output_path=%~dp2
set output=%2
set projects=
@if "%FB_DBG%"=="" (
set config=release
) else (
set config=debug
)
shift
shift
:loop_start
if "%1" == "" goto loop_end
set projects=%projects% /target:%1%FB_CLEAN%
shift
goto loop_start
:loop_end
if not exist %output_path% mkdir %output_path%
msbuild "%FB_LONG_ROOT_PATH%\%solution%.sln" /maxcpucount /p:Configuration=%config% /p:Platform=%FB_TARGET_PLATFORM% %projects% /fileLoggerParameters:LogFile=%output%
endlocal
goto :EOF