mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Two components are added here: a test driver that takes a struct ratbag_test_device and sets that device up as a ratbag device. That device is returned to the tests and then checked for sanity. The ratbag_device_new_test_device() requires the environment variable RATBAG_TEST set, otherwise we abort. It's also 'hidden' in a separate source file, so it won't show up in doxygen. And if the test are disabled, this function does nothing and the test driver never gets registered. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
45 lines
1014 B
Makefile
45 lines
1014 B
Makefile
lib_LTLIBRARIES = libratbag.la
|
|
|
|
include_HEADERS = \
|
|
libratbag.h
|
|
|
|
libratbag_la_SOURCES = \
|
|
driver-etekcity.c \
|
|
driver-hidpp20.c \
|
|
driver-hidpp10.c \
|
|
driver-test.c \
|
|
hidpp-generic.h \
|
|
hidpp-generic.c \
|
|
hidpp10.c \
|
|
hidpp10.h \
|
|
hidpp20.c \
|
|
hidpp20.h \
|
|
libratbag.c \
|
|
libratbag.h \
|
|
libratbag-hidraw.c \
|
|
libratbag-hidraw.h \
|
|
libratbag-util.c \
|
|
libratbag-private.h \
|
|
libratbag-util.h \
|
|
libratbag-test.c \
|
|
libratbag-test.h
|
|
|
|
libratbag_la_LIBADD = $(LIBUDEV_LIBS) $(LIBEVDEV_LIBS)
|
|
|
|
libratbag_la_CFLAGS = -I$(top_srcdir)/include \
|
|
$(LIBUDEV_CFLAGS) \
|
|
$(LIBEVDEV_CFLAGS) \
|
|
$(GCC_CFLAGS)
|
|
EXTRA_libratbag_la_DEPENDENCIES = $(srcdir)/libratbag.sym
|
|
|
|
libratbag_la_LDFLAGS = -version-info $(LIBRATBAG_LT_VERSION) -shared \
|
|
-Wl,--version-script=$(srcdir)/libratbag.sym
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = libratbag.pc
|
|
|
|
AM_CFLAGS = $(GCC_CFLAGS)
|
|
|
|
DISTCLEANFILES = libratbag-version.h
|
|
EXTRA_DIST = libratbag-version.h.in libratbag.sym
|