meta-digi/meta-digi-dey/recipes-graphics/vulkan/vkmark/0002-src-meson.build-Prepen...

30 lines
939 B
Diff

From 316d477d0f8dc0936b4e057545ff83f1993047a6 Mon Sep 17 00:00:00 2001
From: Neena Busireddy <neenareddy.busireddy@nxp.com>
Date: Mon, 3 May 2021 11:44:46 -0700
Subject: [PATCH] src/meson.build: Prepend sysroot for the includedir
Need to prepend PKG_CONFIG_SYSROOT_DIR to the dir path for cross compilation
Upstream-Status: Inappropriate [OE-specific]
Signed-off-by: Neena Busireddy <neenareddy.busireddy@nxp.com>
---
src/meson.build | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/meson.build b/src/meson.build
index 35813c5..9032706 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -6,6 +6,9 @@ vulkan_hpp = join_paths([
'vulkan.hpp'
])
+pkgconf_sysroot = run_command(prog_python, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
+vulkan_hpp = pkgconf_sysroot + vulkan_hpp
+
format_map_gen_h = custom_target(
'format_map_gen.h',
output: 'format_map_gen.h',