-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@echo off | ||
|
||
set boostdir=%cd%\dependencies\boost | ||
set edkdir=%cd%\dependencies\emotiv | ||
set lsldir=%cd%\dependencies\lsl | ||
if "%VS140COMNTOOLS%"=="" ( | ||
echo "VC 2015 not found" | ||
exit /b 1 | ||
) | ||
call "%VS140COMNTOOLS%VsMSBuildCmd.bat" | ||
|
||
"msbuild.exe" /property:BOOST_DIR=%boostdir% /property:EDK_DIR=%edkdir% /property:LSL_DIR=%lsldir% /t:Build %cd%\application-networking\LSL2SocketIO\LSL2SocketIO.sln /p:OutDir="%cd%\build\LSL2SocketIO" | ||
"msbuild.exe" /property:BOOST_DIR=%boostdir% /property:EDK_DIR=%edkdir% /property:LSL_DIR=%lsldir% /t:Build %cd%\sensors\EPOC2LSL\EPOC2LSL.sln /p:OutDir="%cd%\build\EPOC2LSL" | ||
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
start "EPOC2LSL" cmd /c build\EPOC2LSL\EPOC2LSL.exe | ||
start "LSL2SocketIO" cmd /c build\LSL2SocketIO\LSL2SocketIO.exe | ||
start "Node" cmd /c "cd application-networking\SocketIO-Node & node server" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@echo off | ||
|
||
if "%~1"=="" goto edkpathnotset | ||
|
||
|
||
if not exist "%~1\Header files" goto incorrectedkpath | ||
rem EDK path OK (probably) | ||
|
||
rem setup node server | ||
if not exist %cd%\application-networking\SocketIO-Node\node_modules ( | ||
cd application-networking\SocketIO-Node & call npm install & cd ../../ | ||
) | ||
|
||
rem create directories | ||
if not exist %cd%\build mkdir build | ||
if not exist %cd%\build\EPOC2LSL mkdir build\EPOC2LSL | ||
if not exist %cd%\build\LSL2SocketIO mkdir build\LSL2SocketIO | ||
if not exist %cd%\dependencies\emotiv\include mkdir dependencies\emotiv\include | ||
if not exist %cd%\dependencies\emotiv\lib\win32 mkdir dependencies\emotiv\lib\win32 | ||
if not exist %cd%\dependencies\emotiv\lib\x64 mkdir dependencies\emotiv\lib\x64 | ||
|
||
rem copy emotiv files | ||
xcopy /s "%~1\Header files\C++" %cd%\dependencies\emotiv\include | ||
xcopy /s "%~1\x86\edk.lib" %cd%\dependencies\emotiv\lib\win32 | ||
xcopy /s "%~1\x64\edk.lib" %cd%\dependencies\emotiv\lib\x64 | ||
xcopy /s "%~1\x64\edk.dll" %cd%\build\EPOC2LSL | ||
|
||
|
||
rem move emotiv header files to correct path | ||
|
||
goto done | ||
:edkpathnotset | ||
echo Please specify path to EDK folder from emotiv premium libraries SDK as parameter | ||
|
||
:incorrectedkpath | ||
echo Incorrect path to EDK folder | ||
|
||
:done | ||
echo Success |