mirror of
https://github.com/qemu/qemu.git
synced 2024-12-13 14:33:31 +08:00
3f55f97b14
Meson now checks that subprojects do not access files from parent project. While we all agree this is best practice, libvhost-user also want to share a few headers with QEMU, and libvhost-user isn't really a standalone project at this point (although this is making the dependency a bit more explicit). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210505151313.203258-1-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
24 lines
885 B
Meson
24 lines
885 B
Meson
project('libvhost-user', 'c',
|
|
license: 'GPL-2.0-or-later',
|
|
default_options: ['c_std=gnu99'])
|
|
|
|
threads = dependency('threads')
|
|
glib = dependency('glib-2.0')
|
|
|
|
vhost_user = static_library('vhost-user',
|
|
files('libvhost-user.c'),
|
|
dependencies: threads,
|
|
c_args: '-D_GNU_SOURCE')
|
|
|
|
executable('link-test', files('link-test.c'),
|
|
link_whole: vhost_user)
|
|
|
|
vhost_user_glib = static_library('vhost-user-glib',
|
|
files('libvhost-user-glib.c'),
|
|
link_with: vhost_user,
|
|
dependencies: glib)
|
|
|
|
vhost_user_dep = declare_dependency(link_with: vhost_user_glib,
|
|
dependencies: glib,
|
|
include_directories: include_directories('.'))
|