mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
meson: src: build libvirt_driver_log.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>
This commit is contained in:
parent
5766b091ff
commit
1a996a9ece
@ -9,11 +9,6 @@ LOG_DAEMON_GENERATED = \
|
||||
logging/log_daemon_dispatch_stubs.h
|
||||
$(NULL)
|
||||
|
||||
LOG_DRIVER_SOURCES = \
|
||||
logging/log_manager.c \
|
||||
logging/log_manager.h \
|
||||
$(NULL)
|
||||
|
||||
LOG_DAEMON_SOURCES = \
|
||||
logging/log_daemon.h \
|
||||
logging/log_daemon.c \
|
||||
@ -50,22 +45,6 @@ OPENRC_INIT_FILES_IN += \
|
||||
logging/virtlogd.init.in \
|
||||
$(NULL)
|
||||
|
||||
noinst_LTLIBRARIES += libvirt_driver_log.la
|
||||
|
||||
libvirt_la_BUILT_LIBADD += libvirt_driver_log.la
|
||||
libvirt_driver_log_la_SOURCES = \
|
||||
$(LOG_DRIVER_SOURCES) \
|
||||
$(NULL)
|
||||
nodist_libvirt_driver_log_la_SOURCES = \
|
||||
$(LOG_PROTOCOL_GENERATED) \
|
||||
$(NULL)
|
||||
libvirt_driver_log_la_CFLAGS = \
|
||||
-I$(builddir)/logging \
|
||||
-I$(builddir)/rpc \
|
||||
$(AM_CFLAGS) \
|
||||
$(XDR_CFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
if WITH_LIBVIRTD
|
||||
sbin_PROGRAMS += virtlogd
|
||||
|
||||
|
38
src/logging/meson.build
Normal file
38
src/logging/meson.build
Normal file
@ -0,0 +1,38 @@
|
||||
log_driver_sources = [
|
||||
'log_manager.c',
|
||||
]
|
||||
|
||||
log_protocol = 'log_protocol.x'
|
||||
|
||||
log_protocol_generated = []
|
||||
|
||||
log_protocol_generated += custom_target(
|
||||
'log_protocol.h',
|
||||
input: log_protocol,
|
||||
output: 'log_protocol.h',
|
||||
command: [
|
||||
genprotocol_prog, rpcgen_prog, '-h', '@INPUT@', '@OUTPUT@'
|
||||
],
|
||||
)
|
||||
|
||||
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,
|
||||
],
|
||||
)
|
@ -97,6 +97,7 @@ subdir('vmx')
|
||||
|
||||
subdir('admin')
|
||||
subdir('locking')
|
||||
subdir('logging')
|
||||
|
||||
subdir('esx')
|
||||
subdir('hyperv')
|
||||
|
Loading…
Reference in New Issue
Block a user