@echo off setlocal EnableDelayedExpansion setlocal enableextensions pushd %~dp0\.. set root_dir=%CD% popd set VerboseOuptut=OFF set PlatformTarget=x86 set PATH_DEPENDENCIES= set BuildType=Release goto parameter_parse :print_help echo Usage: windows-launch-visual-studio.cmd [--debug] [--dependencies-dir ^] exit /b :parameter_parse if /i "%1" == "--dependencies-dir" ( set "PATH_DEPENDENCIES=%2" SHIFT SHIFT Goto parameter_parse ) else if /i "%1"=="--debug" ( set BuildType=Debug SHIFT ) else if /i "%1" == "--platform-target" ( if "%2"=="x64" ( set PlatformTarget=%2 SHIFT SHIFT Goto parameter_parse ) ) call "windows-initialize-environment.cmd" --platform-target %PlatformTarget% SET "OV_PATH_ROOT=%root_dir%\..\openvibe-sdk-build\dist-%PlatformTarget%" SET "PATH=%OV_PATH_ROOT%\bin;%PATH%" REM for visual studio express... if not defined USE_EXPRESS ( SET USE_EXPRESS=1 ) set SolutionPath=%root_dir%\..\openvibe-sdk-build\vs-project-%PlatformTarget%\OpenViBE.sln if %USE_EXPRESS% == 1 ( echo Use %VSCMake% Express Edition if "%VSCMake%"=="Visual Studio 12 2013" ( start /b "%VSINSTALLDIR%\Common7\IDE\WDExpress.exe" %SolutionPath% ) else ( "%VSINSTALLDIR%\Common7\IDE\VCExpress.exe" %SolutionPath% ) ) else ( echo Use %VSCMake% Community Edition "%VSINSTALLDIR%\Common7\IDE\devenv.exe" %SolutionPath% )