# here. List them against the individual XXX_la_CFLAGS targets
# that actually use them.
-BUILT_SOURCES =
-if WITH_DTRACE_PROBES
-tapset_DATA =
-endif WITH_DTRACE_PROBES
RPC_PROBE_FILES =
-include locking/Makefile.inc.am
include admin/Makefile.inc.am
-include lxc/Makefile.inc.am
# Keep this list synced with RPC_PROBE_FILES
check-local: check-protocol \
check-admin
.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
admin_driver_protocol = files('admin_protocol.x')
+rpc_probe_files += admin_driver_protocol
+
admin_driver_generated = []
admin_protocol_h = custom_target(
+++ /dev/null
-# vim: filetype=automake
-
-RPC_PROBE_FILES += $(srcdir)/locking/lock_protocol.x
lock_protocol = 'lock_protocol.x'
+rpc_probe_files += files(lock_protocol)
+
lock_driver_sources = [
'lock_manager.c',
'lock_driver_nop.c',
+++ /dev/null
-# vim: filetype=automake
-
-if WITH_LXC
-
-if WITH_DTRACE_PROBES
-RPC_PROBE_FILES += $(srcdir)/lxc/lxc_monitor_protocol.x
-endif
-
-endif WITH_LXC
lxc_monitor_protocol = files('lxc_monitor_protocol.x')
+rpc_probe_files += lxc_monitor_protocol
+
lxc_monitor_protocol_generated = []
lxc_monitor_protocol_generated += custom_target(
)
endif
+rpc_probe_files = []
+
# symbol files
)
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
genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@',
],
)
+
+ rpc_probe_files += files(protocol_x)
endforeach
remote_daemon_sources = files(
genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@',
],
)
+
+ rpc_probe_files += protocol_file
endforeach
rpc_server_sources = [