From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iyGWS-0007IB-C6 for ptxdist@pengutronix.de; Sun, 02 Feb 2020 15:46:52 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iyGWS-0004Xu-3N for ptxdist@pengutronix.de; Sun, 02 Feb 2020 15:46:52 +0100 Date: Sun, 2 Feb 2020 15:46:51 +0100 From: Michael Olbrich Message-ID: <20200202144651.GA1523473@localhost> References: <20200117100055.9110-1-p.zabel@pengutronix.de> <20200117100055.9110-5-p.zabel@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200117100055.9110-5-p.zabel@pengutronix.de> Subject: Re: [ptxdist] [PATCH v2 5/7] glslang: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Fri, Jan 17, 2020 at 11:00:53AM +0100, Philipp Zabel wrote: > Add reference SPIR-V generator, required to build Vulkan validation > layers. > > Signed-off-by: Philipp Zabel > --- > New in v2. > --- > rules/glslang.in | 25 +++++++++++++++ > rules/glslang.make | 77 ++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 102 insertions(+) > create mode 100644 rules/glslang.in > create mode 100644 rules/glslang.make > > diff --git a/rules/glslang.in b/rules/glslang.in > new file mode 100644 > index 000000000000..c2a660243d31 > --- /dev/null > +++ b/rules/glslang.in > @@ -0,0 +1,25 @@ > +## SECTION=multimedia_libs > + > +menuconfig GLSLANG > + tristate > + prompt "glslang" > + select HOST_CMAKE > + help > + Khronos-reference SPIR-V generator > + > +if GLSLANG > + > +config GLSLANG_TOOLS > + bool > + prompt "install tools" > + help > + Install glslangValidator and spirv-remap tools. > + > +config GLSLANG_LIBS > + bool > + prompt "install shared libraries" > + help > + Install libglslang, libHLSL, libSPIRV, and libSPVRemapper shared > + libraries. > + > +endif > diff --git a/rules/glslang.make b/rules/glslang.make > new file mode 100644 > index 000000000000..b4752f0235e1 > --- /dev/null > +++ b/rules/glslang.make > @@ -0,0 +1,77 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2020 by Philipp Zabel > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_GLSLANG) += glslang > + > +# > +# Paths and names > +# > +GLSLANG_VERSION := 8.13.3559 > +GLSLANG_MD5 := cb32322377cee2bc1cee5b60ebe46133 > +GLSLANG := glslang-$(GLSLANG_VERSION) > +GLSLANG_SUFFIX := tar.gz > +GLSLANG_URL := https://github.com/KhronosGroup/glslang/archive/$(GLSLANG_VERSION).$(GLSLANG_SUFFIX) > +GLSLANG_SOURCE := $(SRCDIR)/$(GLSLANG).$(GLSLANG_SUFFIX) > +GLSLANG_DIR := $(BUILDDIR)/$(GLSLANG) > +GLSLANG_LICENSE := BSD-3-clause AND MIT AND Apple-MIT-License > +GLSLANG_LICENSE_FILES := file://LICENSE.txt;md5=918e668376010a04448a312fb37ae69b > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +GLSLANG_CONF_TOOL := cmake > +GLSLANG_CONF_OPT := \ > + $(CROSS_CMAKE_USR) \ > + -DCMAKE_BUILD_TYPE=Release \ > + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ > + -DBUILD_SHARED_LIBS=ON \ > + -DBUILD_EXTERNAL=OFF \ > + -DSKIP_GLSLANG_INSTALL=OFF \ > + -DENABLE_SPVREMAPPER=ON \ > + -DENABLE_GLSLANG_BINARIES=ON \ > + -DENABLE_GLSLANG_WEB=OFF \ > + -DENABLE_GLSLANG_WEB_DEVEL=OFF \ > + -DENABLE_OPT=ON \ > + -DENABLE_PCH=ON \ > + -DENABLE_CTEST=OFF > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/glslang.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, glslang) > + @$(call install_fixup, glslang, PRIORITY, optional) > + @$(call install_fixup, glslang, SECTION, base) > + @$(call install_fixup, glslang, AUTHOR, "Philipp Zabel ") > + @$(call install_fixup, glslang, DESCRIPTION, Khronos-reference SPIR-V generator) > + > +ifdef GLSLANG_TOOLS > + @$(call install_file, glslang, 0, 0, 0755, -, /usr/bin/glslangValidator) > + @$(call install_file, glslang, 0, 0, 0755, -, /usr/bin/spirv-remap) install_copy Michael > +endif > + > +ifdef GLSLANG_LIBS > + @$(call install_lib, glslang, 0, 0, 0644, libglslang-default-resource-limits) > + @$(call install_lib, glslang, 0, 0, 0644, libglslang) > + @$(call install_lib, glslang, 0, 0, 0644, libHLSL) > + @$(call install_lib, glslang, 0, 0, 0644, libSPIRV) > + @$(call install_lib, glslang, 0, 0, 0644, libSPVRemapper) > +endif > + > + @$(call install_finish, glslang) > + > + @$(call touch) > + > +# vim: syntax=make > -- > 2.20.1 > > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de