[igt-dev] [PATCH i-g-t 1/1] meson'd igt_kcov
Petri Latvala
petri.latvala at intel.com
Mon Apr 23 13:06:45 UTC 2018
---
TODO: Figure out how to make meson _not_ force the module name to have
a 'lib' prefix.
meson.build | 1 +
tools/meson.build | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/meson.build b/meson.build
index 5b783e5d..8cb029ad 100644
--- a/meson.build
+++ b/meson.build
@@ -89,6 +89,7 @@ math = cc.find_library('m')
realtime = cc.find_library('rt')
dlsym = cc.find_library('dl')
zlib = cc.find_library('z')
+yaml = cc.find_library('yaml', required: false)
if cc.has_header('linux/kd.h')
config.set('HAVE_LINUX_KD_H', 1)
diff --git a/tools/meson.build b/tools/meson.build
index bd2d313d..757f9c23 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -105,6 +105,18 @@ executable('intel_reg', sources : intel_reg_src,
'-DIGT_DATADIR="@0@"'.format(join_paths(prefix, datadir)),
])
+if yaml.found()
+ igt_kcov_src = [ 'igt_kcov.c' ]
+ executable('igt_kcov', sources : igt_kcov_src,
+ dependencies : [ igt_deps, zlib, realtime, math, yaml ],
+ install : true)
+
+ igt_kcov_edges_src = [ 'igt_kcov_edges.c' ]
+ shared_module('igt_kcov_edges', sources : igt_kcov_edges_src,
+ dependencies : [ dlsym ],
+ install : true)
+endif
+
install_data('intel_gpu_abrt', install_dir : bindir)
install_subdir('registers', install_dir : datadir,
--
2.14.1
More information about the igt-dev
mailing list