build: disable building platforms

This commit is contained in:
chyyran 2023-02-04 02:12:15 -05:00
parent 3844a7d254
commit 708f86ea6e
3 changed files with 18 additions and 3 deletions

View file

@ -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
```

View file

@ -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
)

@ -1 +1 @@
Subproject commit 873dfb673b643db7263fc77b3734aa17fa26aecd
Subproject commit 60d7e15a7e61c6d51c3fa8e26839793782a12fb4