1 project('libvhost-user', 'c',
2 license: 'GPL-2.0-or-later',
3 default_options: ['c_std=gnu99'])
5 threads = dependency('threads')
6 glib = dependency('glib-2.0')
8 vhost_user = static_library('vhost-user',
9 files('libvhost-user.c'),
10 dependencies: threads,
11 c_args: '-D_GNU_SOURCE')
13 executable('link-test', files('link-test.c'),
14 link_whole: vhost_user)
16 vhost_user_glib = static_library('vhost-user-glib',
17 files('libvhost-user-glib.c'),
18 link_with: vhost_user,
21 vhost_user_dep = declare_dependency(link_with: vhost_user_glib,
23 include_directories: include_directories('.'))