-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.bat
43 lines (26 loc) · 837 Bytes
/
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
@ECHO OFF
CALL build_env.bat
IF EXIST D:\bin\Python310\python.exe SET PATH=%PATH%;D:\bin\Python310\
if %errorlevel% neq 0 exit /b %errorlevel%
IF XX%CMAKE_VS_VERSION% NEQ XX GOTO VSCHECKED
ECHO "ERROR: Visual studio version was not set."
EXIT /B 1
:VSCHECKED
IF EXIST %~DP0usr GOTO USROK
cd thirdparty
CALL build.bat
if %errorlevel% neq 0 exit /b %errorlevel%
cd %~DP0
:USROK
ECHO ON
cd %~DP0
IF NOT EXIST vsbuild mkdir vsbuild
cd vsbuild
cmake -H.. -B. -G %CMAKE_VS_VERSION% -A x64 -DCMAKE_PREFIX_PATH=%~DP0usr -DCMAKE_INSTALL_PREFIX=%~DP0usr
if %errorlevel% neq 0 exit /b %errorlevel%
devenv Open3DStream.sln /Build Debug /Project INSTALL
if %errorlevel% neq 0 exit /b %errorlevel%
devenv Open3DStream.sln /Build RelWithDebInfo /Project INSTALL
if %errorlevel% neq 0 exit /b %errorlevel%
cd %~DP0
python package.py