Skip to content

Instantly share code, notes, and snippets.

@cdwfs
Last active June 25, 2018 17:55
Show Gist options
  • Save cdwfs/43f41b69bbfc178507a6664d3158214f to your computer and use it in GitHub Desktop.
Save cdwfs/43f41b69bbfc178507a6664d3158214f to your computer and use it in GitHub Desktop.
Windows batch script to build the Vulkan-ValidationLayers repo
REM Variables: Release/Debug, VS version, VS arch, path to python?
IF NOT EXIST Vulkan-Headers (
git clone https://github.com/KhronosGroup/Vulkan-Headers.git
)
IF NOT EXIST glslang (
git clone https://github.com/KhronosGroup/glslang.git
)
REM Update Vulkan-Headers & dependencies to known-good revisions and build
cd Vulkan-Headers
if EXIST build (
rd /s /q build
)
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_INSTALL_PREFIX=install ..
cmake --build . --config Debug --target install -- /maxcpucount
cd ..\..
REM Update glslang & dependencies to known-good revisions and build
cd glslang
python update_glslang_sources.py
if EXIST build (
rd /s /q build
)
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_INSTALL_PREFIX=install ..
cmake --build . --config Debug --target install -- /maxcpucount
cd ..\..
REM update layers
if EXIST build (
rd /s /q build
)
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" -DVULKAN_HEADERS_INSTALL_DIR=C:\users\cort\code\VVL\Vulkan-Headers\build\install -DGLSLANG_INSTALL_DIR=C:\users\cort\code\VVL\glslang\build\install -DPYTHON_EXECUTABLE=C:\python_36_amd64\files\python.exe ..
cmake --build . --config Debug -- /maxcpucount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment