diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-16 03:29:52 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-16 03:29:52 +0200 |
commit | 5bb3c6039c798e4e4c903b798cd9b8988d5b6bb9 (patch) | |
tree | 50e2f01a3b8af84e63c08c327b74f7e055706127 /bin/build-msvc.cmd | |
parent | e2abcc623f2c12caee4a3e9a1f6ebb500ae81f60 (diff) |
add batch script for building with msvc
Diffstat (limited to 'bin/build-msvc.cmd')
-rw-r--r-- | bin/build-msvc.cmd | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/build-msvc.cmd b/bin/build-msvc.cmd new file mode 100644 index 00000000..3b7e4ea0 --- /dev/null +++ b/bin/build-msvc.cmd @@ -0,0 +1,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%
+
|