2020-05-05 08:14:34 +00:00
|
|
|
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
|
|
|
|
),
|
|
|
|
)
|
2020-06-25 13:50:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|