libvirt/src/logging/meson.build
Pavel Hrdina 7f61b2e4c9 meson: src: build libvirt_driver_qemu_impl.a static library
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
2020-08-03 09:27:04 +02:00

49 lines
923 B
Meson

log_driver_sources = [
'log_manager.c',
]
log_protocol = 'log_protocol.x'
log_protocol_generated = []
log_protocol_header_generated = custom_target(
'log_protocol.h',
input: log_protocol,
output: 'log_protocol.h',
command: [
genprotocol_prog, rpcgen_prog, '-h', '@INPUT@', '@OUTPUT@'
],
)
log_protocol_generated += log_protocol_header_generated
log_protocol_generated += custom_target(
'log_protocol.c',
input: log_protocol,
output: 'log_protocol.c',
command: [
genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@'
],
)
log_driver_lib = static_library(
'virt_log_driver',
[
log_driver_sources,
log_protocol_generated,
],
dependencies: [
rpc_dep,
src_dep,
xdr_dep,
],
)
libvirt_libs += log_driver_lib
log_inc_dir = include_directories('.')
log_dep = declare_dependency(
include_directories: log_inc_dir,
sources: log_protocol_header_generated,
)