Debian Codegraph @

builds/win32/compile.bat

raw
1 @echo off
2 ::==============
3 :: compile.bat solution, output, [projects...]
4 ::
5 :: Note: Our projects create object files in temp/$platform/$config
6 :: but we call devenv with $config|$platform (note variable in reverse order
7 :: and odd syntax).
8
9 setlocal
10 set solution=%1
11 set output_path=%~dp2
12 set output=%2
13 set projects=
14
15 @if "%FB_DBG%"=="" (
16 set config=release
17 ) else (
18 set config=debug
19 )
20
21 shift
22 shift
23
24 :loop_start
25
26 if "%1" == "" goto loop_end
27
28 set projects=%projects% /target:%1%FB_CLEAN%
29
30 shift
31 goto loop_start
32
33 :loop_end
34
35 if not exist "%output_path%" mkdir "%output_path%"
36 msbuild "%FB_LONG_ROOT_PATH%\%solution%.sln" /maxcpucount /p:Configuration=%config% /p:Platform=%FB_TARGET_PLATFORM% %projects% /fileLoggerParameters:LogFile=%output%
37
38 endlocal
39
40 goto :EOF