-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.bat
More file actions
48 lines (42 loc) · 853 Bytes
/
install.bat
File metadata and controls
48 lines (42 loc) · 853 Bytes
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
@echo off
set lsldir=%cd%/dependencies/lsl
echo Compiling EyeLogic LSL
echo Use LSL dependency: %lsldir%
if not exist %lsldir% (
echo LSL directory not found. Edit the path to your LSL directory in install.bat
exit /b 1
)
rmdir /Q /S build > nul
mkdir build
if ERRORLEVEL 1 (
echo ERROR: Cannot create directory build
cd ..
exit /b 1
)
cd build
if ERRORLEVEL 1 (
echo ERROR: directory build does not exist
cd ..
exit /b 1
)
echo Generating Project
cmake ../src -DLSL_DIR=%lsldir% %*
if ERRORLEVEL 1 (
echo ERROR: cmake call failed
cd ..
exit /b 1
)
echo Compiling Project
msbuild eyelogiclsl.sln "-p:Configuration=Release"
if ERRORLEVEL 1 (
echo ERROR: Compile failed, is msbuild installed?
cd ..
exit /b 1
)
cmake --install .
if ERRORLEVEL 1 (
echo ERROR: installation failed
cd ..
exit /b 1
)
cd ..