mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
meson: src: build libvirt_functions.stp
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
c7029de306
commit
b5dcd4af55
@ -20,15 +20,9 @@
|
|||||||
# here. List them against the individual XXX_la_CFLAGS targets
|
# here. List them against the individual XXX_la_CFLAGS targets
|
||||||
# that actually use them.
|
# that actually use them.
|
||||||
|
|
||||||
BUILT_SOURCES =
|
|
||||||
if WITH_DTRACE_PROBES
|
|
||||||
tapset_DATA =
|
|
||||||
endif WITH_DTRACE_PROBES
|
|
||||||
RPC_PROBE_FILES =
|
RPC_PROBE_FILES =
|
||||||
|
|
||||||
include locking/Makefile.inc.am
|
|
||||||
include admin/Makefile.inc.am
|
include admin/Makefile.inc.am
|
||||||
include lxc/Makefile.inc.am
|
|
||||||
|
|
||||||
|
|
||||||
# Keep this list synced with RPC_PROBE_FILES
|
# Keep this list synced with RPC_PROBE_FILES
|
||||||
@ -88,24 +82,3 @@ endif !WITH_REMOTE
|
|||||||
check-local: check-protocol \
|
check-local: check-protocol \
|
||||||
check-admin
|
check-admin
|
||||||
.PHONY: check-protocol $(PROTOCOL_STRUCTS:structs=struct)
|
.PHONY: check-protocol $(PROTOCOL_STRUCTS:structs=struct)
|
||||||
|
|
||||||
|
|
||||||
if WITH_DTRACE_PROBES
|
|
||||||
|
|
||||||
BUILT_SOURCES += libvirt_functions.stp
|
|
||||||
|
|
||||||
tapset_DATA += libvirt_functions.stp
|
|
||||||
|
|
||||||
# Keep this list synced with PROTOCOL_STRUCTS
|
|
||||||
RPC_PROBE_FILES += $(srcdir)/rpc/virnetprotocol.x \
|
|
||||||
$(srcdir)/rpc/virkeepaliveprotocol.x \
|
|
||||||
$(srcdir)/remote/remote_protocol.x \
|
|
||||||
$(srcdir)/remote/lxc_protocol.x \
|
|
||||||
$(srcdir)/remote/qemu_protocol.x \
|
|
||||||
$(srcdir)/admin/admin_protocol.x
|
|
||||||
|
|
||||||
libvirt_functions.stp: $(RPC_PROBE_FILES) $(top_srcdir)/scripts/gensystemtap.py
|
|
||||||
$(AM_V_GEN)$(RUNUTF8) $(PYTHON) $(top_srcdir)/scripts/gensystemtap.py \
|
|
||||||
$(RPC_PROBE_FILES) > $@
|
|
||||||
|
|
||||||
endif WITH_DTRACE_PROBES
|
|
||||||
|
@ -5,6 +5,8 @@ admin_driver_sources = [
|
|||||||
|
|
||||||
admin_driver_protocol = files('admin_protocol.x')
|
admin_driver_protocol = files('admin_protocol.x')
|
||||||
|
|
||||||
|
rpc_probe_files += admin_driver_protocol
|
||||||
|
|
||||||
admin_driver_generated = []
|
admin_driver_generated = []
|
||||||
|
|
||||||
admin_protocol_h = custom_target(
|
admin_protocol_h = custom_target(
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
# vim: filetype=automake
|
|
||||||
|
|
||||||
RPC_PROBE_FILES += $(srcdir)/locking/lock_protocol.x
|
|
@ -1,5 +1,7 @@
|
|||||||
lock_protocol = 'lock_protocol.x'
|
lock_protocol = 'lock_protocol.x'
|
||||||
|
|
||||||
|
rpc_probe_files += files(lock_protocol)
|
||||||
|
|
||||||
lock_driver_sources = [
|
lock_driver_sources = [
|
||||||
'lock_manager.c',
|
'lock_manager.c',
|
||||||
'lock_driver_nop.c',
|
'lock_driver_nop.c',
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
# vim: filetype=automake
|
|
||||||
|
|
||||||
if WITH_LXC
|
|
||||||
|
|
||||||
if WITH_DTRACE_PROBES
|
|
||||||
RPC_PROBE_FILES += $(srcdir)/lxc/lxc_monitor_protocol.x
|
|
||||||
endif
|
|
||||||
|
|
||||||
endif WITH_LXC
|
|
@ -13,6 +13,8 @@ lxc_driver_sources = [
|
|||||||
|
|
||||||
lxc_monitor_protocol = files('lxc_monitor_protocol.x')
|
lxc_monitor_protocol = files('lxc_monitor_protocol.x')
|
||||||
|
|
||||||
|
rpc_probe_files += lxc_monitor_protocol
|
||||||
|
|
||||||
lxc_monitor_protocol_generated = []
|
lxc_monitor_protocol_generated = []
|
||||||
|
|
||||||
lxc_monitor_protocol_generated += custom_target(
|
lxc_monitor_protocol_generated += custom_target(
|
||||||
|
@ -84,6 +84,8 @@ if conf.has('WITH_DTRACE_PROBES')
|
|||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
rpc_probe_files = []
|
||||||
|
|
||||||
|
|
||||||
# symbol files
|
# symbol files
|
||||||
|
|
||||||
@ -832,6 +834,21 @@ foreach sysconf : sysconf_files
|
|||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
if conf.has('WITH_DTRACE_PROBES')
|
||||||
|
custom_target(
|
||||||
|
'libvirt_functions.stp',
|
||||||
|
input: rpc_probe_files,
|
||||||
|
output: 'libvirt_functions.stp',
|
||||||
|
command: [
|
||||||
|
meson_python_prog, python3_prog.path(), gensystemtap_prog.path(),
|
||||||
|
'@INPUT@',
|
||||||
|
],
|
||||||
|
capture: true,
|
||||||
|
install: true,
|
||||||
|
install_dir: systemtap_dir,
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Install empty directories
|
# Install empty directories
|
||||||
|
|
||||||
|
@ -37,6 +37,8 @@ foreach name : [ 'remote', 'qemu', 'lxc' ]
|
|||||||
genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@',
|
genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rpc_probe_files += files(protocol_x)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
remote_daemon_sources = files(
|
remote_daemon_sources = files(
|
||||||
|
@ -45,6 +45,8 @@ foreach name : [ 'virnet', 'virkeepalive' ]
|
|||||||
genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@',
|
genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rpc_probe_files += protocol_file
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
rpc_server_sources = [
|
rpc_server_sources = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user