From b8a3a735fec4def1bdc98e775568fdd250d5a0a2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 9 Aug 2022 09:45:27 -0400 Subject: Allow programs to be used from subproject --- tools/meson.build | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/meson.build b/tools/meson.build index 59249f2..5e4333d 100644 --- a/tools/meson.build +++ b/tools/meson.build @@ -13,7 +13,7 @@ basic_tools = [ ] foreach tool : basic_tools - executable( + exe = executable( tool, files(tool + '.c'), c_args: c_suppressions, @@ -22,6 +22,8 @@ foreach tool : basic_tools install: true, ) + meson.override_find_program(tool, exe) + install_man(files('..' / 'doc' / tool + '.1')) endforeach @@ -42,7 +44,7 @@ sndfile_dep = dependency( ) if sndfile_dep.found() - executable( + lv2apply = executable( 'lv2apply', files('lv2apply.c'), c_args: c_suppressions, @@ -51,6 +53,8 @@ if sndfile_dep.found() install: true, ) + meson.override_find_program('lv2apply', lv2apply) + install_man(files('..' / 'doc' / 'lv2apply.1')) endif @@ -69,7 +73,7 @@ int main(void) { struct timespec t; return clock_gettime(CLOCK_MONOTONIC, &t); } args: platform_defines, dependencies: [rt_dep], name: 'clock_gettime') - executable( + lv2bench = executable( 'lv2bench', files('lv2bench.c'), c_args: c_suppressions, @@ -78,6 +82,8 @@ int main(void) { struct timespec t; return clock_gettime(CLOCK_MONOTONIC, &t); } install: true, ) + meson.override_find_program('lv2bench', lv2bench) + install_man(files('..' / 'doc' / 'lv2bench.1')) endif endif -- cgit v1.2.1