summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2017-12-01 09:27:05 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-12-01 09:29:31 +1000
commit01917805fa97a53f8e68f325ec4b770db11bc260 (patch)
treeed746e892988e95d1afcb7884e7d1f829705dcb7
parent0b8372962b425437ac7d1248cffccf4a7890a556 (diff)
meson.build: add missing udev dependencies and linux/input.h includes
Almost everything requires libudev because libinput.h pulls it in. Make this an explicit dependency. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 35419ccb..b82fd42e 100644
--- a/meson.build
+++ b/meson.build
@@ -145,7 +145,9 @@ src_libfilter = [
'src/filter.h',
'src/filter-private.h'
]
-libfilter = static_library('filter', src_libfilter)
+libfilter = static_library('filter', src_libfilter,
+ dependencies : dep_udev,
+ include_directories : includes_include)
dep_libfilter = declare_dependency(link_with : libfilter)
############ libinput.so ############
@@ -690,12 +692,14 @@ if get_option('tests')
# build-test only
executable('test-build-pedantic',
'test/build-pedantic.c',
+ dependencies : [dep_udev],
include_directories : [includes_src, includes_include],
c_args : ['-std=c99', '-pedantic', '-Werror'],
install : false)
# build-test only
executable('test-build-std-gnuc90',
'test/build-pedantic.c',
+ dependencies : [dep_udev],
include_directories : [includes_src, includes_include],
c_args : ['-std=gnu90', '-Werror'],
install : false)
@@ -708,6 +712,7 @@ if get_option('tests')
# test including from C++
executable('test-build-cxx',
'test/build-cxx.cc',
+ dependencies : [dep_udev],
include_directories : [includes_src, includes_include],
install : false)