package/libinput: enable installation of python tools

Now that we have a python-libevdev package, let's allow the
installation of the libinput Python tools, using a new
BR2_PACKAGE_LIBINPUT_PYTHON_TOOLS option.

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Romain Naour 2022-08-09 15:27:30 +02:00 committed by Thomas Petazzoni
parent f052047095
commit 8bf3d6a1b7
2 changed files with 24 additions and 0 deletions

View File

@ -13,5 +13,27 @@ config BR2_PACKAGE_LIBINPUT
http://freedesktop.org/wiki/Software/libinput/ http://freedesktop.org/wiki/Software/libinput/
if BR2_PACKAGE_LIBINPUT
config BR2_PACKAGE_LIBINPUT_PYTHON_TOOLS
bool "install python tools "
depends on BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_PYTHON_LIBEVDEV # runtime
select BR2_PACKAGE_PYTHON_PYUDEV # runtime
select BR2_PACKAGE_PYTHON_PYYAML # runtime
help
Install python tools:
libinput-analyze-per-slot-delta,
libinput-analyze-recording,
libinput-analyze-touch-down-state,
libinput-measure-fuzz,
libinput-measure-touchpad-pressure,
libinput-measure-touchpad-size,
libinput-measure-touchpad-tap,
libinput-measure-touch-size,
libinput-replay
endif
comment "libinput needs udev /dev management" comment "libinput needs udev /dev management"
depends on !BR2_PACKAGE_HAS_UDEV depends on !BR2_PACKAGE_HAS_UDEV

View File

@ -30,6 +30,7 @@ else
LIBINPUT_CONF_OPTS += -Ddebug-gui=false LIBINPUT_CONF_OPTS += -Ddebug-gui=false
endif endif
ifeq ($(BR2_PACKAGE_LIBINPUT_PYTHON_TOOLS),)
LIBINPUT_PYTHON_TOOLS = libinput-analyze-per-slot-delta \ LIBINPUT_PYTHON_TOOLS = libinput-analyze-per-slot-delta \
libinput-analyze-recording \ libinput-analyze-recording \
libinput-analyze-touch-down-state \ libinput-analyze-touch-down-state \
@ -46,5 +47,6 @@ define LIBINPUT_REMOVE_UNNEEDED_FILES
) )
endef endef
LIBINPUT_POST_INSTALL_TARGET_HOOKS += LIBINPUT_REMOVE_UNNEEDED_FILES LIBINPUT_POST_INSTALL_TARGET_HOOKS += LIBINPUT_REMOVE_UNNEEDED_FILES
endif
$(eval $(meson-package)) $(eval $(meson-package))