libinput/udev/Makefile.am
Peter Hutterer e09705522a udev: add the hwdb_parser.py test from systemd
upstream for this file lives in systemd, any changes to the actual parser
should flow back there.

libinput's matches are fairly simple. We have the various LIBINPUT_MODEL_ tags
that just take a "1" and the two attributes that are dimensions.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2016-11-02 09:03:48 +10:00

50 lines
1.4 KiB
Makefile

udevdir=$(UDEV_DIR)
udev_PROGRAMS = libinput-device-group \
libinput-model-quirks
litest_rules = 80-libinput-device-groups-litest.rules \
90-libinput-model-quirks-litest.rules
noinst_SCRIPTS = $(litest_rules)
libinput_device_group_SOURCES = libinput-device-group.c
libinput_device_group_CFLAGS = -I$(top_srcdir)/src \
$(LIBUDEV_CFLAGS) \
$(GCC_CFLAGS)
libinput_device_group_LDADD = $(LIBUDEV_LIBS)
if HAVE_LIBWACOM_GET_PAIRED_DEVICE
libinput_device_group_CFLAGS += $(LIBWACOM_CFLAGS)
libinput_device_group_LDADD += $(LIBWACOM_LIBS)
endif
libinput_model_quirks_SOURCES = libinput-model-quirks.c
libinput_model_quirks_CFLAGS = \
-I$(top_srcdir)/src \
$(LIBUDEV_CFLAGS) \
$(GCC_CFLAGS)
libinput_model_quirks_LDADD = $(LIBUDEV_LIBS)
udev_rulesdir=$(UDEV_DIR)/rules.d
dist_udev_rules_DATA = \
80-libinput-device-groups.rules \
90-libinput-model-quirks.rules
udev_hwdbdir=$(UDEV_DIR)/hwdb.d
dist_udev_hwdb_DATA = \
90-libinput-model-quirks.hwdb
%-litest.rules: %.rules.in
$(SED) -e "s|\@UDEV_TEST_PATH\@|$(abs_builddir)/|" < $^ > $@
CLEANFILES = $(litest_rules)
DISTCLEANFILES = \
80-libinput-device-groups.rules \
90-libinput-model-quirks.rules
EXTRA_DIST = 80-libinput-test-device.rules
if HAVE_PYTHON
TESTS = parse_hwdb.py
TEST_EXTENSIONS = .py
PY_LOG_COMPILER = $(PYTHON)
endif
EXTRA_DIST += parse_hwdb.py