On Fri, Jan 17, 2020 at 11:00:55AM +0100, Philipp Zabel wrote:
> Add Vulkan standard validation layer package.
> 
> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de>
> ---
> New in v2.
> ---
>  rules/vulkan-validationlayers.in   | 22 ++++++++++
>  rules/vulkan-validationlayers.make | 66 ++++++++++++++++++++++++++++++
>  2 files changed, 88 insertions(+)
>  create mode 100644 rules/vulkan-validationlayers.in
>  create mode 100644 rules/vulkan-validationlayers.make
> 
> diff --git a/rules/vulkan-validationlayers.in 
> b/rules/vulkan-validationlayers.in
> new file mode 100644
> index 000000000000..f7eb3e9f68b7
> --- /dev/null
> +++ b/rules/vulkan-validationlayers.in
> @@ -0,0 +1,22 @@
> +## SECTION=multimedia_libs
> +
> +config VULKAN_VALIDATIONLAYERS
> +     tristate
> +     prompt "vulkan-validationlayers"
> +     select HOST_CMAKE
> +     select HOST_GLSLANG

HOST_GLSLANG missing.

Michael

> +     select VULKAN_LOADER
> +     select GLSLANG          if BUILDTIME
> +     select SPIRV_TOOLS      if BUILDTIME
> +     select LIBXCB           if VULKAN_VALIDATIONLAYERS_XCB
> +     select WAYLAND          if VULKAN_VALIDATIONLAYERS_WAYLAND
> +     help
> +       Vulkan Validation Layers
> +
> +config VULKAN_VALIDATIONLAYERS_XCB
> +     bool
> +     default y if VULKAN_LOADER_XCB
> +
> +config VULKAN_VALIDATIONLAYERS_WAYLAND
> +     bool
> +     default y if VULKAN_LOADER_WAYLAND
> diff --git a/rules/vulkan-validationlayers.make 
> b/rules/vulkan-validationlayers.make
> new file mode 100644
> index 000000000000..0432ca0a850e
> --- /dev/null
> +++ b/rules/vulkan-validationlayers.make
> @@ -0,0 +1,66 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2020 by Philipp Zabel <p.za...@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_VULKAN_VALIDATIONLAYERS) += vulkan-validationlayers
> +
> +#
> +# Paths and names
> +#
> +VULKAN_VALIDATIONLAYERS_VERSION      := 1.1.130
> +VULKAN_VALIDATIONLAYERS_MD5  := 25c9a2c34457ecf81c248e34c02ad983
> +VULKAN_VALIDATIONLAYERS              := 
> vulkan-validationlayers-$(VULKAN_VALIDATIONLAYERS_VERSION)
> +VULKAN_VALIDATIONLAYERS_SUFFIX       := tar.gz
> +VULKAN_VALIDATIONLAYERS_URL  := 
> https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-$(VULKAN_VALIDATIONLAYERS_VERSION).0.$(VULKAN_VALIDATIONLAYERS_SUFFIX)
> +VULKAN_VALIDATIONLAYERS_SOURCE       := 
> $(SRCDIR)/$(VULKAN_VALIDATIONLAYERS).$(VULKAN_VALIDATIONLAYERS_SUFFIX)
> +VULKAN_VALIDATIONLAYERS_DIR  := $(BUILDDIR)/$(VULKAN_VALIDATIONLAYERS)
> +VULKAN_VALIDATIONLAYERS_LICENSE      := Apache-2.0
> +VULKAN_VALIDATIONLAYERS_LICENSE_FILES := 
> file://LICENSE.txt;md5=7dbefed23242760aa3475ee42801c5ac
> +
> +# 
> ----------------------------------------------------------------------------
> +# Prepare
> +# 
> ----------------------------------------------------------------------------
> +
> +VULKAN_VALIDATIONLAYERS_CONF_TOOL    := cmake
> +VULKAN_VALIDATIONLAYERS_CONF_OPT     := \
> +     $(CROSS_CMAKE_USR) \
> +     -DCMAKE_BUILD_TYPE=Release \
> +     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
> +     -DBUILD_LAYERS=ON \
> +     -DBUILD_LAYER_SUPPORT_FILES=OFF \
> +     -DBUILD_TESTS=OFF \
> +     -DBUILD_WSI_WAYLAND_SUPPORT=$(call ptx/onoff, 
> PTXCONF_VULKAN_VALIDATIONLAYERS_WAYLAND) \
> +     -DBUILD_WSI_XCB_SUPPORT=$(call ptx/onoff, 
> PTXCONF_VULKAN_VALIDATIONLAYERS_XCB) \
> +     -DBUILD_WSI_XLIB_SUPPORT=OFF \
> +     -DGLSLANG_INSTALL_DIR=$(PTXDIST_SYSROOT_HOST)/bin
> +
> +# 
> ----------------------------------------------------------------------------
> +# Target-Install
> +# 
> ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/vulkan-validationlayers.targetinstall:
> +     @$(call targetinfo)
> +
> +     @$(call install_init, vulkan-validationlayers)
> +     @$(call install_fixup, vulkan-validationlayers, PRIORITY, optional)
> +     @$(call install_fixup, vulkan-validationlayers, SECTION, base)
> +     @$(call install_fixup, vulkan-validationlayers, AUTHOR, "Philipp Zabel 
> <p.za...@pengutronix.de>")
> +     @$(call install_fixup, vulkan-validationlayers, DESCRIPTION, Vulkan 
> Validation Layers)
> +
> +     @$(call install_lib, vulkan-validationlayers, 0, 0, 0644, 
> libVkLayer_khronos_validation)
> +
> +     @$(call install_copy, vulkan-validationlayers, 0, 0, 0644, -, 
> /usr/share/vulkan/explicit_layer.d/VkLayer_khronos_validation.json)
> +     @$(call install_copy, vulkan-validationlayers, 0, 0, 0644, -, 
> /usr/share/vulkan/explicit_layer.d/VkLayer_standard_validation.json)
> +
> +     @$(call install_finish, vulkan-validationlayers)
> +
> +     @$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to