Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 1 | From 1f00d5026118ebd48e4ccf83d32d67155c4e7f60 Mon Sep 17 00:00:00 2001 |
| 2 | From: Naveen Saini <naveen.kumar.saini@intel.com> |
| 3 | Date: Wed, 30 Dec 2020 16:37:47 +0800 |
| 4 | Subject: [PATCH] msdk: fix includedir path |
| 5 | |
| 6 | In cross compilation, need to prepend PKG_CONFIG_SYSROOT_DIR to the dir path. |
| 7 | |
| 8 | Upstream-Status: Inappropriate [OE-specific] |
| 9 | |
| 10 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> |
| 11 | --- |
| 12 | sys/msdk/meson.build | 2 ++ |
| 13 | 1 file changed, 2 insertions(+) |
| 14 | |
| 15 | diff --git a/sys/msdk/meson.build b/sys/msdk/meson.build |
| 16 | index 6346c9451..068f38548 100644 |
| 17 | --- a/sys/msdk/meson.build |
| 18 | +++ b/sys/msdk/meson.build |
| 19 | @@ -40,7 +40,9 @@ endif |
| 20 | |
| 21 | mfx_dep = dependency('libmfx', required: false) |
| 22 | if mfx_dep.found() |
| 23 | + pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip() |
| 24 | mfx_incdir = mfx_dep.get_pkgconfig_variable('includedir') |
| 25 | + mfx_incdir = pkgconf_sysroot + mfx_incdir |
| 26 | mfx_inc = [] |
| 27 | else |
| 28 | # Old versions of MediaSDK don't provide a pkg-config file |
| 29 | -- |
| 30 | 2.17.1 |
| 31 | |