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.6KB

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