Adds Lua plugin support. Auto-loading is disabled so the compositor
can decide whether plugins are loaded via the API.

https://gitlab.freedesktop.org/libinput/libinput/-/releases/1.30.0

Signed-off-by: Philipp Zabel <[email protected]>
---
 rules/libinput.in   | 8 ++++++++
 rules/libinput.make | 8 +++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/rules/libinput.in b/rules/libinput.in
index c775567f108c..216a17ef7d18 100644
--- a/rules/libinput.in
+++ b/rules/libinput.in
@@ -5,6 +5,8 @@ menuconfig LIBINPUT
        select HOST_MESON
        select MTDEV
        select LIBEVDEV
+       select LUA                      if LIBINPUT_LUA
+       select LUA_INSTALL_LIBLUA       if LIBINPUT_LUA
        select UDEV
        select UDEV_LIBUDEV
        select PYTHON3                  if LIBINPUT_TOOL_REPLAY && RUNTIME
@@ -21,6 +23,12 @@ menuconfig LIBINPUT
 
 if LIBINPUT
 
+config LIBINPUT_LUA
+       bool
+       prompt "lua plugins"
+       help
+         Enable support for Lua plugins.
+
 config LIBINPUT_QUIRKS
        bool
        prompt "install device quirks"
diff --git a/rules/libinput.make b/rules/libinput.make
index f8e74ad419ef..fdd0c190b950 100644
--- a/rules/libinput.make
+++ b/rules/libinput.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_LIBINPUT) += libinput
 #
 # Paths and names
 #
-LIBINPUT_VERSION       := 1.29.2
-LIBINPUT_MD5           := c0caf71d5ad9cd2258474824abad81db
+LIBINPUT_VERSION       := 1.30.0
+LIBINPUT_MD5           := 701702bea2e86b071639aa6582c0a5b7
 LIBINPUT               := libinput-$(LIBINPUT_VERSION)
 LIBINPUT_SUFFIX                := tar.gz
 LIBINPUT_URL           := 
https://gitlab.freedesktop.org/libinput/libinput/-/archive/$(LIBINPUT_VERSION)/$(LIBINPUT).$(LIBINPUT_SUFFIX)
@@ -42,7 +42,9 @@ LIBINPUT_CONF_OPT     := \
        -Ddocumentation=false \
        -Dcoverity=false \
        -Dzshcompletiondir=no \
-       -Dinternal-event-debugging=false
+       -Dinternal-event-debugging=false \
+       -Dautoload-plugins=false \
+       -Dlua-plugins=$(call ptx/endis, PTXCONF_LIBINPUT_LUA)d
 
 # ----------------------------------------------------------------------------
 # Target-Install
-- 
2.47.3


Reply via email to