[Intel-gfx] [PATCH i-g-t 04/12] meson: Build and install intel_reg

Ville Syrjala ville.syrjala at linux.intel.com
Mon Sep 11 17:24:59 UTC 2017


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tools/meson.build | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tools/meson.build b/tools/meson.build
index 3b6d6376d2d6..9d08a0d1f986 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -55,6 +55,16 @@ foreach prog : tools_progs
 		   install : true)
 endforeach
 
+pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), 'intel-gpu-tools')
+
+intel_reg_src = [ 'intel_reg.c', 'intel_reg_decode.c', 'intel_reg_spec.c' ]
+executable('intel_reg', sources : intel_reg_src,
+           dependencies : tool_deps,
+	   install : true,
+           c_args : [
+	     '-DIGT_DATADIR="@0@"'.format(pkgdatadir),
+	   ])
+
 shared_library('intel_aubdump', 'aubdump.c', dependencies : [ igt_deps, dlsym ])
 
 subdir('null_state_gen')
-- 
2.13.5



More information about the Intel-gfx mailing list