| setlocal enabledelayedexpansion |
| echo "CMake not found. Please install it from https://cmake.org/" |
| echo "GraphViz (dot.exe) not found. Please install it from https://graphviz.gitlab.io/" |
| if "%cmake_binary_dir%" == "" ( |
| set cmake_binary_dir=..\..\build |
| rem Copy options to binary dir |
| copy /y CMakeGraphVizOptions.cmake "%cmake_binary_dir%\" |
| if %errorlevel% neq 0 exit /b %errorlevel% |
| rem Run cmake commands from the binary dir |
| cmake --graphviz=SwiftShader.dot .. |
| if %errorlevel% neq 0 exit /b %errorlevel% |
| dot -Tpng -o SwiftShader.png SwiftShader.dot |
| if %errorlevel% neq 0 exit /b %errorlevel% |