hctvs.cmd 833 B

123456789101112131415161718192021222324252627282930313233
  1. @echo off
  2. if "%1"=="/?" goto :showhelp
  3. if "%1"=="-?" goto :showhelp
  4. if "%1"=="-help" goto :showhelp
  5. if "%1"=="--help" goto :showhelp
  6. if "%HLSL_BLD_DIR%"=="" (
  7. echo Missing build directory.
  8. exit /b 1
  9. )
  10. if not exist "%HLSL_BLD_DIR%\LLVM.sln" (
  11. echo Missing solution file at %HLSL_BLD_DIR%\LLVM.sln
  12. exit /b 1
  13. )
  14. if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" (
  15. start %HLSL_BLD_DIR%\LLVM.sln
  16. ) else (
  17. start "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" %HLSL_BLD_DIR%\LLVM.sln
  18. )
  19. goto :eof
  20. :showhelp
  21. echo Launches Visual Studio and opens the solution file.
  22. echo.
  23. echo hctvs
  24. echo.
  25. echo VS is expected to be at "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe"
  26. echo The solution is expected to be at %HLSL_BLD_DIR%\LLVM.sln
  27. echo.