]> git.proxmox.com Git - mirror_qemu.git/blame - subprojects/libvhost-user/meson.build
plugins: Move function pointer in qemu_plugin_dyn_cb
[mirror_qemu.git] / subprojects / libvhost-user / meson.build
CommitLineData
0df750e9
MAL
1project('libvhost-user', 'c',
2 license: 'GPL-2.0-or-later',
722b62d9
MH
3 default_options: ['warning_level=1', 'c_std=gnu99'])
4
5cc = meson.get_compiler('c')
6add_project_arguments(cc.get_supported_arguments('-Wsign-compare',
7 '-Wdeclaration-after-statement',
8 '-Wstrict-aliasing'),
9 native: false, language: 'c')
0df750e9 10
0ba78195 11threads = dependency('threads')
0df750e9 12glib = dependency('glib-2.0')
0df750e9
MAL
13
14vhost_user = static_library('vhost-user',
15 files('libvhost-user.c'),
0ba78195 16 dependencies: threads,
0df750e9
MAL
17 c_args: '-D_GNU_SOURCE')
18
e0193568 19executable('link-test', files('link-test.c'),
3f55f97b 20 link_whole: vhost_user)
e0193568 21
0df750e9
MAL
22vhost_user_glib = static_library('vhost-user-glib',
23 files('libvhost-user-glib.c'),
0df750e9
MAL
24 link_with: vhost_user,
25 dependencies: glib)
26
27vhost_user_dep = declare_dependency(link_with: vhost_user_glib,
0ba78195 28 dependencies: glib,
0df750e9 29 include_directories: include_directories('.'))