32 lines
950 B
Diff
32 lines
950 B
Diff
From 3e3da71c62a36516fa16cfb1d5d55e9e5c86e573 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',
|
|
--
|
|
2.17.1
|
|
|