[vlc-commits] contrib: add glslang

Thomas Guillem git at videolan.org
Wed Nov 7 17:09:45 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jun 27 15:53:18 2018 +0200| [b0eabb2fbe379fcbf486259425082f0511346c25] | committer: Thomas Guillem

contrib: add glslang

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0eabb2fbe379fcbf486259425082f0511346c25
---

 contrib/src/glslang/rules.mak | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/contrib/src/glslang/rules.mak b/contrib/src/glslang/rules.mak
new file mode 100644
index 0000000000..f659bd5adb
--- /dev/null
+++ b/contrib/src/glslang/rules.mak
@@ -0,0 +1,29 @@
+# GLSLANG
+GLSLANG_HASH := ef1f899b5d64a9628023f1bb129198674cba2b97
+GLSLANG_BRANCH := master
+GLSLANG_GITURL := https://github.com/KhronosGroup/glslang.git
+GLSLANG_BASENAME := $(subst .,_,$(subst \,_,$(subst /,_,$(GLSLANG_HASH))))
+
+PKGS += glslang
+ifeq ($(call need_pkg,"glslang"),)
+PKGS_FOUND += glslang
+endif
+
+$(TARBALLS)/glslang-$(GLSLANG_BASENAME).tar.xz:
+	$(call download_git,$(GLSLANG_GITURL),$(GLSLANG_BRANCH),$(GLSLANG_HASH))
+
+.sum-glslang: $(TARBALLS)/glslang-$(GLSLANG_BASENAME).tar.xz
+	$(call check_githash,$(GLSLANG_HASH))
+	touch $@
+
+glslang: glslang-$(GLSLANG_BASENAME).tar.xz .sum-glslang
+	rm -Rf $@ $@-$(GLSLANG_BASENAME)
+	mkdir -p $@-$(GLSLANG_BASENAME)
+	tar xvJf "$<" --strip-components=1 -C $@-$(GLSLANG_BASENAME)
+	$(MOVE)
+
+.glslang: glslang toolchain.cmake
+	cd $< && $(HOSTVARS_PIC) CXXFLAGS="-DYYDEBUG=0" $(CMAKE) -DBUILD_SHARED_LIBS=OFF \
+	    -DENABLE_GLSLANG_BINARIES=OFF
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list