@echo off
SET GENERATOR="Visual Studio 15 2017"
SET GENERATOR64="Visual Studio 15 2017 Win64"

cd ../foreign/

cd SPIRV-Tools

mkdir build
cd build
cmake -G%GENERATOR% -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers ..
cmake --build .
cmake --build . --config Release
cd ..

mkdir build64
cd build64
cmake -G%GENERATOR64% -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers ..
cmake --build .
cmake --build . --config Release
cd ..

cd ..

cd SPIRV-Cross

mkdir build
cd build
cmake -G%GENERATOR% ..
cmake --build .
cmake --build . --config Release
cd ..

mkdir build64
cd build64
cmake -G%GENERATOR64% ..
cmake --build .
cmake --build . --config Release
cd ..

cd ..

cd ../windows

@echo off
SET GENERATOR="Visual Studio 16 2019"

cd ../foreign/

cd SPIRV-Tools

mkdir build
cd build
cmake -G%GENERATOR% -A Win32 -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers ..
cmake --build .
cmake --build . --config Release
cd ..

mkdir build64
cd build64
cmake -G%GENERATOR% -A x64 -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers ..
cmake --build .
cmake --build . --config Release
cd ..

cd ..

cd SPIRV-Cross

mkdir build
cd build
cmake -G%GENERATOR%  -A Win32 ..
cmake --build .
cmake --build . --config Release
cd ..

mkdir build64
cd build64
cmake -G%GENERATOR% -A x64 ..
cmake --build .
cmake --build . --config Release
cd ..

cd ..

cd ../windows

Update windows build bat for new CMake / Visual Studio
Update windows build bat for new CMake / Visual Studio
