[PATCH i-g-t] tests/kms_histogram: Add check for ghe api call
Mohammed Thasleem
mohammed.thasleem at intel.com
Mon Jan 6 09:51:54 UTC 2025
Check ghe algo for the function called by ghe igt while compiling.
Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
---
meson.build | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 8b2a2a64a..96f010fe2 100644
--- a/meson.build
+++ b/meson.build
@@ -198,8 +198,19 @@ else
endif
libghe = dependency('libghe', required : false)
+
if libghe.found()
- config.set('HAVE_LIBGHE', 1)
+
+ cc = meson.get_compiler('c')
+
+ if cc.has_function('histogram_compute_generate_data_bin', dependencies: libghe)
+ message('libghe provides the required function')
+ config.set('HAVE_LIBGHE', 1)
+ else
+ warning('libghe does not provide the required function')
+ endif
+else
+ warning('libghe not found')
endif
build_info += 'Build Chamelium test: @0@'.format(chamelium.found())
--
2.25.1
More information about the igt-dev
mailing list