tools: move the remaining tools from test to here
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>master
parent
f525f9f040
commit
3adbe54eac
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
|
@ -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().
|
||||
|
|
Loading…
Reference in New Issue