qemu-patch-raspberry4/subprojects/libvhost-user/meson.build
Marc-André Lureau 3f55f97b14 meson: fix meson 0.58 warning with libvhost-user subproject
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>
2021-07-29 10:15:52 +02:00

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('.'))