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