mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v3 4/4] vulkan-validationlayers: new package
Date: Tue,  4 Feb 2020 10:51:34 +0100	[thread overview]
Message-ID: <20200204095134.7115-4-p.zabel@pengutronix.de> (raw)
In-Reply-To: <20200204095134.7115-1-p.zabel@pengutronix.de>

Add Vulkan standard validation layer package.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
Changes since v2:
 - version bump 1.1.130 -> 1.2.131.1
---
 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
+	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..d19da0b84c3a
--- /dev/null
+++ b/rules/vulkan-validationlayers.make
@@ -0,0 +1,66 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2020 by Philipp Zabel <p.zabel@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.2.131.1
+VULKAN_VALIDATIONLAYERS_MD5	:= 359b7a2ed430c59a31fa20388508b120
+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).$(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.zabel@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

      parent reply	other threads:[~2020-02-04  9:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-04  9:51 [ptxdist] [PATCH v3 1/4] vulkan-loader: version bump 1.2.131.0 -> 1.2.131.1 Philipp Zabel
2020-02-04  9:51 ` [ptxdist] [PATCH v3 2/4] spirv-tools: version bump 2019.5 -> 2020-01-14-g323a81fc5e30 Philipp Zabel
2020-02-04  9:51 ` [ptxdist] [PATCH v3 3/4] glslang: new package Philipp Zabel
2020-02-04  9:51 ` Philipp Zabel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200204095134.7115-4-p.zabel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox