Skip to content

Commit 3f55f97

Browse files
elmarcobonzini
authored andcommitted
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 <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent f594bfb commit 3f55f97

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../include/qemu/atomic.h

subprojects/libvhost-user/libvhost-user.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
#endif
4242

43-
#include "qemu/atomic.h"
43+
#include "include/atomic.h"
4444

4545
#include "libvhost-user.h"
4646

subprojects/libvhost-user/meson.build

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@ project('libvhost-user', 'c',
44

55
threads = dependency('threads')
66
glib = dependency('glib-2.0')
7-
inc = include_directories('../../include', '../../linux-headers')
87

98
vhost_user = static_library('vhost-user',
109
files('libvhost-user.c'),
11-
include_directories: inc,
1210
dependencies: threads,
1311
c_args: '-D_GNU_SOURCE')
1412

1513
executable('link-test', files('link-test.c'),
16-
link_whole: vhost_user,
17-
include_directories: inc)
14+
link_whole: vhost_user)
1815

1916
vhost_user_glib = static_library('vhost-user-glib',
2017
files('libvhost-user-glib.c'),
21-
include_directories: inc,
2218
link_with: vhost_user,
2319
dependencies: glib)
2420

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../include/standard-headers/linux

0 commit comments

Comments
 (0)