[vlc-commits] [Git][videolan/vlc][master] contrib: add spirv-tools
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Mar 8 06:47:14 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
56cdd8b5 by Fatih Uzunoglu at 2024-03-08T05:52:28+00:00
contrib: add spirv-tools
spirv-opt provided by spirv-tools is used by
Qt Shader Builder (qsb) for shader optimization.
- - - - -
2 changed files:
- + contrib/src/spirv-tools/SHA512SUMS
- + contrib/src/spirv-tools/rules.mak
Changes:
=====================================
contrib/src/spirv-tools/SHA512SUMS
=====================================
@@ -0,0 +1,2 @@
+988f5e31508e3f19c1dd9d9a013c8e9ff89eba86207a769d7d804f9ee0201c794f412a874c860167b2c040b2c5e1fb1c835ae3684c70feaac86e47f90c1a5010 SPIRV-Tools-2023.2.tar.gz
+436c6ce11d918091ce4a5ef2821f51af811c9a289e220b4a2b0bb4417b1f9f3b1f56a6366cfdf56848a9b1fb612ee3ba31d35c3d73d3d24de964ee05f96a7bbc SPIRV-Headers-sdk-1.3.246.1.tar.gz
=====================================
contrib/src/spirv-tools/rules.mak
=====================================
@@ -0,0 +1,39 @@
+# spirv-tools
+
+SPIRVTOOLS_VERSION := 2023.2
+SPIRVTOOLS_URL := $(GITHUB)/KhronosGroup/SPIRV-Tools/archive/refs/tags/v$(SPIRVTOOLS_VERSION).tar.gz
+
+SPIRVHEADERS_VERSION := 1.3.246.1
+SPIRVHEADERS_URL := $(GITHUB)/KhronosGroup/SPIRV-Headers/archive/refs/tags/sdk-$(SPIRVHEADERS_VERSION).tar.gz
+
+PKGS_TOOLS += spirv-tools
+ifeq ($(call need_pkg,"SPIRV-Tools >= $(SPIRVTOOLS_VERSION).1"),)
+PKGS_FOUND += spirv-tools
+endif
+
+$(TARBALLS)/SPIRV-Headers-sdk-$(SPIRVHEADERS_VERSION).tar.gz:
+ $(call download,$(SPIRVHEADERS_URL))
+
+$(TARBALLS)/SPIRV-Tools-$(SPIRVTOOLS_VERSION).tar.gz:
+ $(call download,$(SPIRVTOOLS_URL))
+
+.sum-spirv-tools: SPIRV-Tools-$(SPIRVTOOLS_VERSION).tar.gz SPIRV-Headers-sdk-$(SPIRVHEADERS_VERSION).tar.gz
+
+spirv-tools: SPIRV-Tools-$(SPIRVTOOLS_VERSION).tar.gz .sum-spirv-tools
+ $(UNPACK)
+ $(MOVE)
+
+spirv-tools/external/spirv-headers: SPIRV-Headers-sdk-$(SPIRVHEADERS_VERSION).tar.gz .sum-spirv-tools
+ $(UNPACK)
+ $(MOVE)
+
+SPIRVTOOLS_CONFIG := -DSPIRV_SKIP_TESTS=ON
+
+.spirv-tools: BUILD_DIR=$</vlc_native
+.spirv-tools: spirv-tools spirv-tools/external/spirv-headers
+ $(CMAKECLEAN)
+ $(BUILDVARS) $(CMAKE_NATIVE) $(SPIRVTOOLS_CONFIG)
+ +$(CMAKEBUILD)
+ $(CMAKEINSTALL)
+
+ touch $@
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/56cdd8b579534d01d03fb3a6167cd71c424505bd
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/56cdd8b579534d01d03fb3a6167cd71c424505bd
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list