Created
February 13, 2020 10:56
-
-
Save nico-lab/27192535b78a9c0bf70d29c5536c1943 to your computer and use it in GitHub Desktop.
--enable-vulkan --enable-libglslang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# libglslang | |
cd build | |
git clone https://github.com/KhronosGroup/SPIRV-Headers | |
cd SPIRV-Headers | |
mkdir build | |
cd build | |
cmake -G "MSYS Makefiles" .. -DCMAKE_INSTALL_PREFIX=/local64 -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE="Release" | |
make && make install | |
cd ../.. | |
git clone https://github.com/KhronosGroup/SPIRV-Tools | |
cd SPIRV-Tools | |
git clone https://github.com/KhronosGroup/SPIRV-Headers.git external/spirv-headers | |
git clone https://github.com/google/effcee.git external/effcee | |
git clone https://github.com/google/re2.git external/re2 | |
git clone https://github.com/google/googletest.git external/googletest | |
mkdir build | |
cd build | |
cmake -G "MSYS Makefiles" .. -DCMAKE_INSTALL_PREFIX=/local64 -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE="Release" | |
make && make install | |
cd ../.. | |
git clone https://github.com/KhronosGroup/glslang | |
cd glslang | |
mkdir build | |
cd build | |
cmake -G "MSYS Makefiles" .. -DCMAKE_INSTALL_PREFIX=/local64 -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE="Release" | |
make && make install | |
cd ../.. | |
# vulkan | |
git clone https://github.com/KhronosGroup/Vulkan-Headers | |
cd Vulkan-Headers | |
mkdir build | |
cd build | |
cmake -G "MSYS Makefiles" .. -DCMAKE_INSTALL_PREFIX=/local64 -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE="Release" | |
make && make install | |
cd ../.. | |
git clone https://github.com/KhronosGroup/Vulkan-Loader | |
cd Vulkan-Loader | |
wget https://raw.githubusercontent.com/shinchiro/mpv-winbuild-cmake/master/packages/vulkan-0001-cross-compile-static-linking-hacks.patch | |
patch -p1 < vulkan-0001-cross-compile-static-linking-hacks.patch | |
cd loader | |
wget https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/additional_headers/d3dkmthk.h | |
wget https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/additional_headers/d3dukmdt.h | |
cd .. | |
mkdir build | |
cd build | |
cmake -G "MSYS Makefiles" .. -DCMAKE_INSTALL_PREFIX=/local64 -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE="Release" -DVULKAN_HEADERS_INSTALL_DIR=/local64 -DBUILD_TESTS=no -DCMAKE_SYSTEM_NAME=Windows -DUSE_CCACHE=OFF -DCMAKE_ASM_COMPILER=nasm -DENABLE_STATIC_LOADER=ON -DUNIX=off | |
make && make install | |
cd ../.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment