From 452082259d8a1c81e943e5c84918c28818f878f3 Mon Sep 17 00:00:00 2001
From: Ludovico de Nittis <ludovico.denittis@collabora.com>
Date: Thu, 4 Mar 2021 14:16:58 +0100
Subject: [PATCH] build-relocatable-install: Include Vulkan shaders

Previously we were missing to include the Vulkan shaders in the
relocatable pressure-vessel tarball. This leaded to `check-vulkan` to
fail because it didn't find the required shaders.

Fixes: #62

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
---
 pressure-vessel/build-relocatable-install.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/pressure-vessel/build-relocatable-install.py b/pressure-vessel/build-relocatable-install.py
index c51e62c71..9273fa6b6 100755
--- a/pressure-vessel/build-relocatable-install.py
+++ b/pressure-vessel/build-relocatable-install.py
@@ -364,6 +364,18 @@ def main():
                     ),
                 )
 
+            shaders = os.path.join(path, 'shaders')
+            if os.path.exists(shaders):
+                install(
+                    shaders,
+                    os.path.join(
+                        installation,
+                        'libexec',
+                        'steam-runtime-tools-0',
+                        'shaders',
+                    ),
+                )
+
         primary_architecture = subprocess.check_output([
             'dpkg', '--print-architecture',
         ]).decode('utf-8').strip()
-- 
GitLab