Package Details: mingw-w64-spirv-cross 2021.01.15-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-spirv-cross.git (read-only, click to copy)
Package Base: mingw-w64-spirv-cross
Description: A tool and library for parsing and converting SPIR-V to other shader languages (mingw-w64)
Upstream URL: https://github.com/KhronosGroup/SPIRV-Cross/
Licenses: Apache
Submitter: xantares
Maintainer: None
Last Packager: xantares
Votes: 1
Popularity: 0.000001
First Submitted: 2020-05-18 18:08 (UTC)
Last Updated: 2021-12-29 19:36 (UTC)

Latest Comments

kfg commented on 2021-12-29 14:41 (UTC) (edited on 2021-12-29 14:42 (UTC) by kfg)

Hi,

could you please enable the shared library in the PKGBUILD. libplacebo depends on the shared library for its d3d11 backend.

Patch to enable the shared library:

diff --git a/PKGBUILD b/PKGBUILD
index c11d7a7..a2e5eff 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,7 @@ build() {
   cd SPIRV-Cross-${pkgver//./-}
   for _arch in ${_architectures}; do
     mkdir -p build-${_arch} && pushd build-${_arch}
-    LDFLAGS="-lssp" ${_arch}-cmake -DSPIRV_CROSS_CLI=OFF ..
+    LDFLAGS="-lssp" ${_arch}-cmake -DSPIRV_CROSS_SHARED=ON -DSPIRV_CROSS_CLI=OFF ..
     make
     popd
   done
@@ -28,6 +28,6 @@ package() {
     cd "${srcdir}/SPIRV-Cross-${pkgver//./-}/build-${_arch}"
     make DESTDIR="${pkgdir}" install
     ${_arch}-strip -g "${pkgdir}"/usr/${_arch}/lib/*.a
-#     ${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll
+    ${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll
   done
 }