build: Add -Iinclude to unit tests
authorPhilip Withnall <withnall@endlessm.com>
Fri, 18 Aug 2017 08:13:33 +0000 (09:13 +0100)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 20 Aug 2017 20:51:25 +0000 (06:51 +1000)
It seems the unit tests rely on another part of <linux/input.h> which I
missed in the previous commit (5cf4b35b).

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build

index 66a187d5d3032f2eac6bdedfb24a31aedc45ebe4..f65f931591eb41ca61f7d19fc398c765c4e58172 100644 (file)
@@ -672,7 +672,7 @@ if get_option('tests')
        def_LT_VERSION = '-DLIBINPUT_LT_VERSION="@0@:@1@:@2@"'.format(libinput_lt_c, libinput_lt_r, libinput_lt_a)
        libinput_test_runner = executable('libinput-test-suite-runner',
                                          libinput_test_runner_sources,
-                                         include_directories : include_directories('src'),
+                                         include_directories : [includes_src, includes_include],
                                          dependencies : dep_litest,
                                          c_args : [ def_LT_VERSION ],
                                          install : false)
@@ -683,25 +683,25 @@ if get_option('tests')
        # build-test only
         executable('test-build-pedantic',
                   'test/build-pedantic.c',
-                  include_directories : include_directories('src'),
+                  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',
-                  include_directories : include_directories('src'),
+                  include_directories : [includes_src, includes_include],
                   c_args : ['-std=gnu90', '-Werror'],
                   install : false)
        # test for linking with the minimal linker flags
         executable('test-build-linker',
                   'test/build-pedantic.c',
-                  include_directories : include_directories('src'),
+                  include_directories : [includes_src, includes_include],
                   dependencies : [ dep_libinput, dep_libinput_util ],
                   install : false)
        # test including from C++
        executable('test-build-cxx',
                   'test/build-cxx.cc',
-                  include_directories : include_directories('src'),
+                  include_directories : [includes_src, includes_include],
                   install : false)
 
        valgrind_env = environment()