forked from microsoft/DirectXShaderCompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhctvs.cmd
33 lines (27 loc) · 833 Bytes
/
hctvs.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
if "%1"=="/?" goto :showhelp
if "%1"=="-?" goto :showhelp
if "%1"=="-help" goto :showhelp
if "%1"=="--help" goto :showhelp
if "%HLSL_BLD_DIR%"=="" (
echo Missing build directory.
exit /b 1
)
if not exist "%HLSL_BLD_DIR%\LLVM.sln" (
echo Missing solution file at %HLSL_BLD_DIR%\LLVM.sln
exit /b 1
)
if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" (
start %HLSL_BLD_DIR%\LLVM.sln
) else (
start "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" %HLSL_BLD_DIR%\LLVM.sln
)
goto :eof
:showhelp
echo Launches Visual Studio and opens the solution file.
echo.
echo hctvs
echo.
echo VS is expected to be at "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe"
echo The solution is expected to be at %HLSL_BLD_DIR%\LLVM.sln
echo.