2020-06-24 19:32:04 +08:00
|
|
|
tools_inc_dir = include_directories('.')
|
|
|
|
|
|
|
|
tools_dep = declare_dependency(
|
|
|
|
compile_args: coverage_flags,
|
|
|
|
dependencies: [
|
|
|
|
libxml_dep,
|
|
|
|
glib_dep,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
libvirt_inc,
|
|
|
|
src_inc_dir,
|
|
|
|
util_inc_dir,
|
|
|
|
top_inc_dir,
|
|
|
|
],
|
|
|
|
link_args: (
|
|
|
|
libvirt_relro
|
|
|
|
+ libvirt_no_indirect
|
|
|
|
+ libvirt_no_undefined
|
|
|
|
),
|
|
|
|
)
|
2020-06-24 19:32:30 +08:00
|
|
|
|
|
|
|
libvirt_shell_lib = static_library(
|
|
|
|
'virt_shell',
|
|
|
|
[
|
|
|
|
'vsh.c',
|
|
|
|
'vsh-table.c',
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
tools_dep,
|
|
|
|
readline_dep,
|
|
|
|
],
|
|
|
|
link_with: [
|
|
|
|
libvirt_lib,
|
|
|
|
],
|
|
|
|
link_args: [
|
|
|
|
coverage_flags,
|
|
|
|
],
|
|
|
|
)
|