From b4a876b3a1a871f43070c8756e440004c97f829a Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 22 Apr 2021 21:40:54 +0300 Subject: lib/i915/perf: have python scripts a custom_target input That way when changing the scripts, the generated files are regenerated. This change makes python3 an explicit hard dependency, but that was already the case for lib/i915/perf. Signed-off-by: Lionel Landwerlin Reviewed-by: Umesh Nerlige Ramappa --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 5d9655f7..06e76189 100644 --- a/meson.build +++ b/meson.build @@ -262,6 +262,7 @@ libexecdir = join_paths(get_option('libexecdir'), 'igt-gpu-tools') amdgpudir = join_paths(libexecdir, 'amdgpu') mandir = get_option('mandir') pkgconfigdir = join_paths(libdir, 'pkgconfig') +python3 = find_program('python3', required : true) if get_option('use_rpath') # Set up runpath for the test executables towards libigt.so. @@ -316,8 +317,7 @@ subdir('overlay') subdir('man') gtk_doc = dependency('gtk-doc', required : build_docs) -python3 = find_program('python3', required : build_docs) -if build_tests and gtk_doc.found() and python3.found() +if build_tests and gtk_doc.found() subdir('docs') elif build_docs.enabled() error('Documentation requires building tests') -- cgit v1.2.3