summaryrefslogtreecommitdiff
path: root/libevdev
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@daemonic.se>2020-07-25 21:00:28 +0200
committerNiclas Zeising <zeising@daemonic.se>2020-08-14 17:50:56 +0200
commit7ce82709aa43e7a787dba95463e88662cb4688ce (patch)
tree7d8de4c6439aba264a0b4f1e19bf7ca4d64dbbdc /libevdev
parentdb01b2d6062d4c28cd82a32f42e566d05480d06e (diff)
downloadlibevdev-7ce82709aa43e7a787dba95463e88662cb4688ce.tar.gz
Add FreeBSD compatible input.h and uinput.h
Add FreeBSD compatible input.h and uinput.h files. This is done by moving the linux files to include/linux/linux, adding the freebsd versions in include/linux/freebsd, and then changing include/linux/[u]input.h to pull in the right one depending on which OS we are compiling on. Make sure that the build infrastructure in meson.build and autoconf.ac/Makefile.am uses the correct files when building and as dependency for targets, and ensure that make-event-names.py get the correct files as arguments. A similar change has been done in libinput in 61f3e3854458c556a01fb05d7abb22733fd2b7c1 Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Diffstat (limited to 'libevdev')
-rw-r--r--libevdev/Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/libevdev/Makefile.am b/libevdev/Makefile.am
index f2757de..106cc31 100644
--- a/libevdev/Makefile.am
+++ b/libevdev/Makefile.am
@@ -12,9 +12,11 @@ libevdev_la_SOURCES = \
libevdev-uinput-int.h \
libevdev.c \
libevdev-names.c \
- ../include/linux/input-event-codes.h \
../include/linux/input.h \
- ../include/linux/uinput.h
+ ../include/linux/uinput.h \
+ ../include/linux/@OS@/input-event-codes.h \
+ ../include/linux/@OS@/input.h \
+ ../include/linux/@OS@/uinput.h
libevdev_la_LDFLAGS = \
$(AM_LDFLAGS) \
@@ -28,7 +30,7 @@ libevdevincludedir = $(includedir)/libevdev-1.0/libevdev
libevdevinclude_HEADERS = libevdev.h libevdev-uinput.h
event-names.h: Makefile make-event-names.py
- $(PYTHON) $(srcdir)/make-event-names.py $(top_srcdir)/include/linux/input.h $(top_srcdir)/include/linux/input-event-codes.h > $@
+ $(PYTHON) $(srcdir)/make-event-names.py $(top_srcdir)/include/linux/@OS@/input.h $(top_srcdir)/include/linux/@OS@/input-event-codes.h > $@
EXTRA_DIST = make-event-names.py libevdev.sym