libvirt/src/meson.build

37 lines
729 B
Meson
Raw Normal View History

src_inc_dir = include_directories('.')
src_dep = declare_dependency(
compile_args: [
'-DIN_LIBVIRT',
'-Dabs_top_builddir="@0@"'.format(meson.build_root()),
'-Dabs_top_srcdir="@0@"'.format(meson.source_root()),
] + coverage_flags + win32_flags,
dependencies: [
glib_dep,
libxml_dep,
],
include_directories: [
libvirt_inc,
src_inc_dir,
top_inc_dir,
],
link_args: (
libvirt_relro
+ libvirt_no_indirect
+ coverage_flags
+ driver_modules_flags
+ win32_link_flags
),
)
# define secdriver_dep
secdriver_dep = []
if conf.has('WITH_SECDRIVER_SELINUX')
secdriver_dep += selinux_dep
endif
if conf.has('WITH_SECDRIVER_APPARMOR')
secdriver_dep += apparmor_dep
endif