You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

windows-launch-visual-studio.cmd 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @echo off
  2. setlocal EnableDelayedExpansion
  3. setlocal enableextensions
  4. pushd %~dp0\..
  5. set root_dir=%CD%
  6. popd
  7. set VerboseOuptut=OFF
  8. set PlatformTarget=x86
  9. set PATH_DEPENDENCIES=
  10. set BuildType=Release
  11. goto parameter_parse
  12. :print_help
  13. echo Usage: windows-launch-visual-studio.cmd [--debug] [--dependencies-dir ^<path to dependencies^>]
  14. exit /b
  15. :parameter_parse
  16. if /i "%1" == "--dependencies-dir" (
  17. set "PATH_DEPENDENCIES=%2"
  18. SHIFT
  19. SHIFT
  20. Goto parameter_parse
  21. ) else if /i "%1"=="--debug" (
  22. set BuildType=Debug
  23. SHIFT
  24. ) else if /i "%1" == "--platform-target" (
  25. if "%2"=="x64" (
  26. set PlatformTarget=%2
  27. SHIFT
  28. SHIFT
  29. Goto parameter_parse
  30. )
  31. )
  32. call "windows-initialize-environment.cmd" --platform-target %PlatformTarget%
  33. SET "OV_PATH_ROOT=%root_dir%\..\openvibe-sdk-build\dist-%PlatformTarget%"
  34. SET "PATH=%OV_PATH_ROOT%\bin;%PATH%"
  35. REM for visual studio express...
  36. if not defined USE_EXPRESS (
  37. SET USE_EXPRESS=1
  38. )
  39. set SolutionPath=%root_dir%\..\openvibe-sdk-build\vs-project-%PlatformTarget%\OpenViBE.sln
  40. if %USE_EXPRESS% == 1 (
  41. echo Use %VSCMake% Express Edition
  42. if "%VSCMake%"=="Visual Studio 12 2013" (
  43. start /b "%VSINSTALLDIR%\Common7\IDE\WDExpress.exe" %SolutionPath%
  44. ) else (
  45. "%VSINSTALLDIR%\Common7\IDE\VCExpress.exe" %SolutionPath%
  46. )
  47. ) else (
  48. echo Use %VSCMake% Community Edition
  49. "%VSINSTALLDIR%\Common7\IDE\devenv.exe" %SolutionPath%
  50. )