mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-08 20:58:11 +02: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')
|
message('valgrind not found, disabling valgrind test suite')
|
||||||
endif
|
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)
|
configure_file(output: 'config.h', configuration: config_h)
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
struct ei;
|
struct ei;
|
||||||
struct ei_device;
|
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