-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: install our list-devices helper tool
Build it twice, once as list-devices, once as libwacom-list-devices. The former uses the source tree's data files, the latter the installed data files. Having this as installed tools makes it easier to debug situations where it's not clear whether the data file is picked up correctly or whether it's not applied correctly to the device. It also makes it easier to figure out "is this device supported by my libwacom version". Fixes #367 Signed-off-by: Peter Hutterer <[email protected]>
- Loading branch information
Showing
5 changed files
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,13 +156,21 @@ configure_file(input: 'tools/65-libwacom.rules.in', | |
install: true, | ||
install_dir: join_paths(dir_udev, 'rules.d')) | ||
|
||
# The non-installed version of list-devices uses the git tree's data files | ||
executable('list-devices', | ||
'tools/list-devices.c', | ||
dependencies: [dep_libwacom, dep_glib], | ||
include_directories: [includes_src], | ||
c_args: tools_cflags, | ||
install: false) | ||
|
||
# The installed version of list-devices uses the installed data files | ||
executable('libwacom-list-devices', | ||
'tools/list-devices.c', | ||
dependencies: [dep_libwacom, dep_glib], | ||
include_directories: [includes_src], | ||
install: true) | ||
|
||
executable('list-compatible-styli', | ||
'tools/list-compatible-styli.c', | ||
dependencies: [dep_libwacom, dep_glib], | ||
|
@@ -174,6 +182,10 @@ install_man(configure_file(input: 'tools/libwacom-list-local-devices.man', | |
output: '@[email protected]', | ||
copy: true)) | ||
|
||
install_man(configure_file(input: 'tools/libwacom-list-devices.man', | ||
output: '@[email protected]', | ||
copy: true)) | ||
|
||
showstylus_config = configuration_data() | ||
showstylus_config.set('DATADIR', dir_data) | ||
showstylus_config.set('ETCDIR', dir_etc) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.TH libwacom-list-devices 1 | ||
|
||
.SH NAME | ||
libwacom-list-devices - utility to list supported tablet devices | ||
|
||
.SH SYNOPSIS | ||
.B libwacom-list-devices [--format=oneline|datafile] | ||
|
||
.SH DESCRIPTION | ||
libwacom-list-devices is a debug utility to list all supported tablet | ||
devices identified by libwacom. It is usually used to check whether a | ||
libwacom installation is correct after adding custom data files. | ||
.SH OPTIONS | ||
.TP 8 | ||
.B --format=oneline|datafile | ||
Sets the output format to be used. If \fIoneline\fR, the output format is a | ||
one-line format comprising the bus type, vendor and product ID and the | ||
device name. If \fIdatafile\fR, the output format matches | ||
the tablet data files. The default is \fIoneline\fR. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters