summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-10-09 14:29:06 +0200
committerBastien Nocera <hadess@hadess.net>2020-10-09 14:30:29 +0200
commit805cf6e1237c1f5073d52a434001ca5af382df47 (patch)
tree5ade71d839e145c8f67eb94d6f9197a659c20d0d
parent23e876a9d2d2a215bd6719ac7a3d6ae955e19fe0 (diff)
downloadgnome-desktop-wip/hadess/install-debug-tools.tar.gz
build: Install test apps when installing debug toolswip/hadess/install-debug-tools
When debug tools are enabled, install all the test and debug utilities to $libexecdir/gnome-desktop-debug/. This makes exercising gnome-desktop's utilities easier.
-rw-r--r--libgnome-desktop/meson.build14
1 files changed, 4 insertions, 10 deletions
diff --git a/libgnome-desktop/meson.build b/libgnome-desktop/meson.build
index b10a18df..483f1ff6 100644
--- a/libgnome-desktop/meson.build
+++ b/libgnome-desktop/meson.build
@@ -129,16 +129,8 @@ desktop_pc = pkg.generate(
subdirs: 'gnome-desktop-3.0'
)
-if get_option('debug_tools')
- executable('gnome-rr-debug',
- sources: 'gnome-rr-debug.c',
- dependencies: libgnome_desktop_dep,
- install_dir: libexecdir,
- install: true
- )
-endif
-
test_programs = [
+ 'gnome-rr-debug',
'test-xkb-info',
'test-pnp-ids',
'test-wall-clock',
@@ -149,6 +141,8 @@ test_programs = [
foreach program : test_programs
executable(program, program + '.c',
- dependencies: libgnome_desktop_dep
+ dependencies: libgnome_desktop_dep,
+ install: get_option('debug_tools'),
+ install_dir: libexecdir / 'gnome-desktop-debug',
)
endforeach