diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..c45ba6d --- /dev/null +++ b/build.bat @@ -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 diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..1315e5f --- /dev/null +++ b/run.bat @@ -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" diff --git a/setup.bat b/setup.bat new file mode 100644 index 0000000..bd28344 --- /dev/null +++ b/setup.bat @@ -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