-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathbuild.bat
More file actions
27 lines (19 loc) · 549 Bytes
/
build.bat
File metadata and controls
27 lines (19 loc) · 549 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off & call .tools\gnt & if [%~1]==[#] exit /B0
echo Usage: %~n0 [ DBG or REL or RCI [ SDKs numbers ] ]
::::: Default :::::
set SDKs=10,15,17
set "cfg=%~1" & if not defined cfg set "cfg=REL"
:::::
if "%cfg%"=="RCI" ( set "IsRCI=1" & set "cfg=REL" ) else set "IsRCI="
set "SDK=%~2" & if not defined SDK (
call :act %cfg% %SDKs% & goto ok
)
:act
set "SDK=%~2" & if not defined SDK goto ok
call packages\vsSolutionBuildEvent\cim.cmd -cs ~x ~c %cfg%_SDK%~2 || goto err
shift & goto act
:err
echo. Build failed>&2
exit /B 1
:ok
exit /B 0