tools: move the remaining tools from test to here
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 23 Jun 2020 06:20:08 +0000 (16:20 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 25 Jun 2020 00:32:08 +0000 (10:32 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
doc/quick-guide.md
meson.build
tools/interactive-evdev.c [moved from test/interactive-evdev.c with 100% similarity]
tools/interactive-wayland.c [moved from test/interactive-wayland.c with 100% similarity]
tools/interactive-x11.c [moved from test/interactive-x11.c with 99% similarity]
xkbcommon/xkbcommon-x11.h

index 9d66475..eb1a757 100644 (file)
@@ -16,11 +16,11 @@ the library. We will employ a few use-cases to lead the examples:
 The snippets are not complete, and some support code is omitted. You
 can find complete and more complex examples in the source directory:
 
-1. test/interactive-evdev.c contains an interactive evdev client.
+1. tools/interactive-evdev.c contains an interactive evdev client.
 
-2. test/interactive-x11.c contains an interactive X11 client.
+2. tools/interactive-x11.c contains an interactive X11 client.
 
-3. test/interactive-wayland.c contains an interactive Wayland client.
+3. tools/interactive-wayland.c contains an interactive Wayland client.
 
 Also, the library contains many more functions for examining and using
 the library context, the keymap and the keyboard state. See the
index b89d58f..3f2d8ca 100644 (file)
@@ -462,7 +462,7 @@ if cc.has_header_symbol('getopt.h', 'getopt_long', prefix: '#define _GNU_SOURCE'
     executable('how-to-type', 'tools/how-to-type.c', dependencies: tools_dep)
 endif
 if cc.has_header('linux/input.h')
-    executable('interactive-evdev', 'test/interactive-evdev.c', dependencies: tools_dep)
+    executable('interactive-evdev', 'tools/interactive-evdev.c', dependencies: tools_dep)
 endif
 if get_option('enable-x11')
     x11_tools_dep = declare_dependency(
@@ -473,7 +473,7 @@ if get_option('enable-x11')
             xcb_xkb_dep,
         ],
     )
-    executable('interactive-x11', 'test/interactive-x11.c', dependencies: x11_tools_dep)
+    executable('interactive-x11', 'tools/interactive-x11.c', dependencies: x11_tools_dep)
 endif
 if get_option('enable-wayland')
     wayland_client_dep = dependency('wayland-client', version: '>=1.2.0', required: false)
@@ -502,7 +502,7 @@ You can disable the Wayland demo programs with -Denable-wayland=false.''')
         wayland_scanner_client_header_gen.process(xdg_shell_xml),
     ]
     executable('interactive-wayland',
-               'test/interactive-wayland.c',
+               'tools/interactive-wayland.c',
                xdg_shell_sources,
                dependencies: [tools_dep, wayland_client_dep])
 endif
similarity index 99%
rename from test/interactive-x11.c
rename to tools/interactive-x11.c
index 8d312b7..4cc24d8 100644 (file)
@@ -33,7 +33,7 @@
 /*
  * Note: This program only handles the core keyboard device for now.
  * It should be straigtforward to change struct keyboard to a list of
- * keyboards with device IDs, as in test/interactive-evdev.c. This would
+ * keyboards with device IDs, as in tools/interactive-evdev.c. This would
  * require:
  *
  * - Initially listing the keyboard devices.
index cf244d2..4eb716a 100644 (file)
@@ -54,7 +54,7 @@ extern "C" {
  * can be used as a replacement for Xlib's keyboard handling.
  *
  * Following is an example workflow using xkbcommon-x11.  A complete
- * example may be found in the test/interactive-x11.c file in the
+ * example may be found in the tools/interactive-x11.c file in the
  * xkbcommon source repository.  On startup:
  *
  * 1. Connect to the X server using xcb_connect().