Skip to content

Commit

Permalink
added scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
liarosge committed Jul 8, 2016
1 parent 501674a commit e1f6101
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.bat
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
3 changes: 3 additions & 0 deletions run.bat
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"
39 changes: 39 additions & 0 deletions setup.bat
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

0 comments on commit e1f6101

Please # to comment.