summaryrefslogtreecommitdiffhomepage
path: root/bin/build-msvc.cmd
blob: 3b7e4ea02f0481833b1db3ffcf5f8a06031c24a4 (plain)
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
@setlocal ENABLEDELAYEDEXPANSION
@echo off

call msvc

taskkill -f -im trackir.exe 2>%SystemDrive%\NUL

call:check cmake .
call:check ninja i18n
call:check "d:/cygwin64/bin/dash.exe" -c "git checkout -f -- ../*/lang/ ../*/*/lang/"
call:check ninja -j4 install
call:check "d:/cygwin64/bin/dash.exe" -c "git checkout -f -- ../*/lang/ ../*/*/lang/"

exit /b 0

:check

cmd /c "msvc d:/cygwin64/bin/nice.exe -n 20 -- %*"

if %ERRORLEVEL% EQU 0 (
    GOTO:EOF
)

rem echo error %ERRORLEVEL%
exit %ERRORLEVEL%