[PATCH i-g-t] meson: Add check for libghe histogram function
Kamil Konieczny
kamil.konieczny at linux.intel.com
Wed Jan 8 23:00:17 UTC 2025
From: Mohammed Thasleem <mohammed.thasleem at intel.com>
From: Mohammed Thasleem <mohammed.thasleem at intel.com>
Check libghe for the function needed by igt test at compiling.
It should solve a problem when package version do not match
values set in github repo.
v1: Update subject and description, change message. (Kamil)
Cc: Mohammed Thasleem <mohammed.thasleem at intel.com>
Cc: Arun R Murthy <arun.r.murthy at intel.com>
Cc: Nemesa Garg <nemesa.garg at intel.com>
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
meson.build | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meson.build b/meson.build
index 5eda2d582..7c42531d1 100644
--- a/meson.build
+++ b/meson.build
@@ -199,7 +199,13 @@ endif
libghe = dependency('libghe', version : '>=0.2.0', required : false)
if libghe.found()
+ cc = meson.get_compiler('c')
+
+ if cc.has_function('histogram_compute_generate_data_bin', dependencies: libghe)
config.set('HAVE_LIBGHE', 1)
+ else
+ message('libghe do not have the required function')
+ endif
endif
build_info += 'Build Chamelium test: @0@'.format(chamelium.found())
--
2.47.1
More information about the igt-dev
mailing list