mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-05 15:50:29 +01:00
Include stddef.h for size_t
And add the minimal build tests to make sure we build and link Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
b913e7e609
commit
bde5b37acf
3 changed files with 39 additions and 0 deletions
23
meson.build
23
meson.build
|
|
@ -208,4 +208,27 @@ else
|
|||
message('valgrind not found, disabling valgrind test suite')
|
||||
endif
|
||||
|
||||
|
||||
# build-test only
|
||||
executable('test-build-libei',
|
||||
'test/buildtest.c',
|
||||
dependencies : [dep_libei],
|
||||
include_directories : 'src',
|
||||
c_args : ['-Werror', '-DINCLUDE_LIBEI=1'],
|
||||
install : false)
|
||||
|
||||
executable('test-build-libeis',
|
||||
'test/buildtest.c',
|
||||
dependencies : [dep_libeis],
|
||||
include_directories : 'src',
|
||||
c_args : ['-Werror', '-DINCLUDE_LIBEIS=1'],
|
||||
install : false)
|
||||
|
||||
executable('test-build-libreis',
|
||||
'test/buildtest.c',
|
||||
dependencies : [dep_libreis],
|
||||
include_directories : 'src',
|
||||
c_args : ['-Werror', '-DINCLUDE_LIBREIS=1'],
|
||||
install : false)
|
||||
|
||||
configure_file(output: 'config.h', configuration: config_h)
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
struct ei;
|
||||
struct ei_device;
|
||||
|
|
|
|||
15
test/buildtest.c
Normal file
15
test/buildtest.c
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#if INCLUDE_LIBEI
|
||||
#include <libei.h>
|
||||
#endif
|
||||
|
||||
#if INCLUDE_LIBEIS
|
||||
#include <libeis.h>
|
||||
#endif
|
||||
|
||||
#if INCLUDE_LIBREIS
|
||||
#include <libreis.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue