diff --git a/README.md b/README.md index 9087407..ad4be7f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ # spirv-to-dxil-rs Safe Rust bindings to [spirv-to-dxil](https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/microsoft/spirv_to_dxil/spirv_to_dxil.h). + +## Building + +spirv-to-dxil-rs builds a copy of spirv-to-dxil statically from Mesa. Many of the build requirements are [the same as needed to build Mesa](https://docs.mesa3d.org/install.html). + +* [Meson](https://mesonbuild.com/) +* A compatible C and C++ compiler + * [MSVC 2019 16.11 or later](https://docs.mesa3d.org/install.html) is required to build on Windows. +* [Python 3.6](https://www.python.org/) or later. + +Lex and Yacc are not required. Additionally, [CMake 3.6](https://cmake.org/) or later is required to run the build script. + +```bash +$ git submodule update --init +$ cargo build +``` \ No newline at end of file diff --git a/spirv-to-dxil-sys/native/CMakeLists.txt b/spirv-to-dxil-sys/native/CMakeLists.txt index f6a1b6d..ef2b941 100644 --- a/spirv-to-dxil-sys/native/CMakeLists.txt +++ b/spirv-to-dxil-sys/native/CMakeLists.txt @@ -27,7 +27,6 @@ set(MESA_EXTRA_FLAGS -Dgallium-drivers=zink # set min-windows-version to 7 to remove need to link against synchronization.lib (we don't need futexes for the compiler) -Dmin-windows-version=7 - # disable everything we don't need. -Dvulkan-drivers= -Dopengl=false @@ -40,7 +39,7 @@ set(MESA_EXTRA_FLAGS -Dgles2=disabled -Dllvm=disabled -Dshared-llvm=disabled - -Dplatforms=auto + -Dplatforms= -Dzlib=disabled ) diff --git a/spirv-to-dxil-sys/native/mesa b/spirv-to-dxil-sys/native/mesa index 873dfb6..60d7e15 160000 --- a/spirv-to-dxil-sys/native/mesa +++ b/spirv-to-dxil-sys/native/mesa @@ -1 +1 @@ -Subproject commit 873dfb673b643db7263fc77b3734aa17fa26aecd +Subproject commit 60d7e15a7e61c6d51c3fa8e26839793782a12fb4