Commit 1b796a7209b4962db69a9de2096464d117d9b0ef

Peter Hutterer 2020-07-09T13:52:58

meson.build: move registry-list tool down to the tools section Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

diff --git a/meson.build b/meson.build
index ec1dbe2..4ac397b 100644
--- a/meson.build
+++ b/meson.build
@@ -344,12 +344,6 @@ if get_option('enable-xkbregistry')
                                 include_directories: include_directories('xkbcommon'),
                                 link_with: libxkbregistry
                                 )
-    if have_getopt_long
-        executable('xkbcommon-registry-list',
-                   'tools/registry-list.c',
-                   dependencies: dep_libxkbregistry,
-                   install: false)
-    endif
 endif
 
 # Tests
@@ -589,6 +583,13 @@ if build_tools
                    xdg_shell_sources,
                    dependencies: [tools_dep, wayland_client_dep])
     endif
+
+    if have_getopt_long and get_option('enable-xkbregistry')
+        executable('xkbcommon-registry-list',
+                   'tools/registry-list.c',
+                   dependencies: dep_libxkbregistry,
+                   install: false)
+    endif
 endif
 
 # xkeyboard-config "verifier"