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