-
Notifications
You must be signed in to change notification settings - Fork 4
/
buildWindows.bat
50 lines (41 loc) · 1.39 KB
/
buildWindows.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
@echo off
call "%PROGRAMFILES(X86)%\Microsoft Visual Studio 14.0\vc\vcvarsall.bat" x86
set WindowsSdkDir=
REM Windows
if not exist build\Windows\x86 mkdir build\Windows\x86
pushd build\Windows\x86
cmake ..\..\..\ -G "Visual Studio 14"
msbuild libNativePath.sln /p:Configuration=Release
if %ERRORLEVEL% neq 0 GOTO :error_popd
popd
REM Windows x64
if not exist build\Windows\x64 mkdir build\Windows\x64
pushd build\Windows\x64
cmake ..\..\..\ -G "Visual Studio 14 Win64"
msbuild libNativePath.sln /p:Configuration=Release
if %ERRORLEVEL% neq 0 GOTO :error_popd
popd
REM Windows UWP
if not exist build\UWP\x86 mkdir build\UWP\x86
pushd build\UWP\x86
cmake ..\..\..\ -G "Visual Studio 14" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0
msbuild libNativePath.sln /p:Configuration=Release
if %ERRORLEVEL% neq 0 GOTO :error_popd
popd
if not exist build\UWP\x64 mkdir build\UWP\x64
pushd build\UWP\x64
cmake ..\..\..\ -G "Visual Studio 14 Win64" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0
msbuild libNativePath.sln /p:Configuration=Release
if %ERRORLEVEL% neq 0 GOTO :error_popd
popd
if not exist build\UWP\ARM mkdir build\UWP\ARM
pushd build\UWP\ARM
cmake ..\..\..\ -G "Visual Studio 14 ARM" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0
msbuild libNativePath.sln /p:Configuration=Release
if %ERRORLEVEL% neq 0 GOTO :error_popd
popd
goto :exit
:error_popd
popd
:exit
@echo on