summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorPetri Latvala <petri.latvala@intel.com>2018-01-15 13:14:56 +0200
committerPetri Latvala <petri.latvala@intel.com>2018-01-17 14:03:18 +0200
commit4ebf6877926d35c27738d79b127e93c1d1cee5d5 (patch)
treea66cd4721581b44430356186b7b5a7fe56e2b9d7 /benchmarks
parentd4e5b77b341010ae1aac8624175650c32913e3fd (diff)
meson: Refactor get_option() calls for directories
Fetch the configuration values in the toplevel meson.build for all subdirs to share. v2: Also remember tests/intel-ci/meson.build Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/benchmarks/meson.build b/benchmarks/meson.build
index 26d65c4b..27836c1d 100644
--- a/benchmarks/meson.build
+++ b/benchmarks/meson.build
@@ -27,16 +27,18 @@ if libdrm_intel.found()
]
endif
+benchmarksdir = join_paths(libexecdir, 'benchmarks')
+
foreach prog : benchmark_progs
# FIXME meson doesn't like binaries with the same name
# meanwhile just suffix with _bench
executable(prog + '_bench', prog + '.c',
install : true,
- install_dir : join_paths(get_option('libexecdir'), 'intel-gpu-tools', 'benchmarks'),
+ install_dir : benchmarksdir,
dependencies : test_deps)
endforeach
executable('gem_wsim_bench', 'gem_wsim.c',
install : true,
- install_dir : join_paths(get_option('libexecdir'), 'intel-gpu-tools', 'benchmarks'),
+ install_dir : benchmarksdir,
dependencies : test_deps + [ lib_igt_perf ])