-
Notifications
You must be signed in to change notification settings - Fork 99
/
build.bat
57 lines (47 loc) · 1.13 KB
/
build.bat
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@echo off
@setlocal
set config=Release
rem prevent an error only present on HP computers
set Platform=
set platformcode=
:permissions
rem check admin permissions
net session >nul 2>&1
if not errorlevel 1 goto environment
echo Run this script as administrator.
goto done
:environment
rem set to current directory
setlocal enableextensions
cd /d "%~dp0"
rem enable Visual Studio environment
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
:submodules
echo Updating Git submodules...
git submodule update --init --recursive
if errorlevel 1 goto error
echo Done.
goto cinder
:cinder
echo.
echo Compiling cinder...
msbuild "..\cinder_master\proj\vc2015\cinder.sln" /m /p:Configuration=%config%
if errorlevel 1 goto error
echo Done.
goto samples
:samples
echo.
echo Compiling samples...
if exist build.log del /F build.log
for /R %%f in (*.sln) do (
msbuild %%f /m /p:Configuration=%config% /fl /flp:logfile=build.log;verbosity=minimal;append=true
if errorlevel 1 goto error
)
rem if errorlevel 1 goto error
echo Done.
goto done
:error
echo An error occurred. See README.md for more information.
:done
echo.
pause