2020-07-27 06:22:41 +00:00
|
|
|
admin_driver_sources = [
|
|
|
|
'admin_server.c',
|
|
|
|
'admin_server_dispatch.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
admin_driver_protocol = files('admin_protocol.x')
|
|
|
|
|
2020-07-27 07:12:34 +00:00
|
|
|
rpc_probe_files += admin_driver_protocol
|
|
|
|
|
2020-07-27 06:22:41 +00:00
|
|
|
admin_driver_generated = []
|
|
|
|
|
2020-06-24 11:28:43 +00:00
|
|
|
admin_protocol_h = custom_target(
|
2020-07-27 06:22:41 +00:00
|
|
|
'admin_protocol.h',
|
|
|
|
input: admin_driver_protocol,
|
|
|
|
output: 'admin_protocol.h',
|
|
|
|
command: [
|
|
|
|
genprotocol_prog, rpcgen_prog, '-h', '@INPUT@', '@OUTPUT@',
|
|
|
|
],
|
|
|
|
)
|
2020-06-24 11:28:43 +00:00
|
|
|
admin_driver_generated += admin_protocol_h
|
2020-07-27 06:22:41 +00:00
|
|
|
|
|
|
|
admin_driver_generated += custom_target(
|
|
|
|
'admin_protocol.c',
|
|
|
|
input: admin_driver_protocol,
|
|
|
|
output: 'admin_protocol.c',
|
|
|
|
command: [
|
|
|
|
genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
admin_driver_generated += custom_target(
|
|
|
|
'admin_server_dispatch_stubs.h',
|
|
|
|
input: admin_driver_protocol,
|
|
|
|
output: 'admin_server_dispatch_stubs.h',
|
|
|
|
command: [
|
|
|
|
gendispatch_prog, '--mode=server', 'admin', 'ADMIN', '@INPUT@',
|
|
|
|
],
|
|
|
|
capture: true,
|
|
|
|
)
|
|
|
|
|
2020-07-27 06:41:59 +00:00
|
|
|
admin_sources = files(
|
|
|
|
'libvirt-admin.c',
|
|
|
|
)
|
|
|
|
|
|
|
|
admin_client_generated = custom_target(
|
|
|
|
'admin_client.h',
|
|
|
|
input: admin_driver_protocol,
|
|
|
|
output: 'admin_client.h',
|
|
|
|
command: [
|
|
|
|
gendispatch_prog, '--mode=client', 'admin', 'ADMIN', '@INPUT@',
|
|
|
|
],
|
|
|
|
capture: true,
|
|
|
|
)
|
|
|
|
|
2020-06-25 15:49:12 +00:00
|
|
|
libvirt_admin_public_syms = files(
|
|
|
|
'libvirt_admin_public.syms',
|
|
|
|
)
|
|
|
|
|
2020-06-23 14:20:27 +00:00
|
|
|
libvirt_admin_private_syms = files(
|
|
|
|
'libvirt_admin_private.syms',
|
|
|
|
)
|
|
|
|
|
2020-07-27 06:41:59 +00:00
|
|
|
libvirt_admin_syms = custom_target(
|
|
|
|
'libvirt_admin.syms',
|
|
|
|
input: [
|
2020-06-25 15:49:12 +00:00
|
|
|
libvirt_admin_public_syms,
|
2020-06-23 14:20:27 +00:00
|
|
|
libvirt_admin_private_syms,
|
2020-07-27 06:41:59 +00:00
|
|
|
],
|
|
|
|
output: 'libvirt_admin.syms',
|
|
|
|
command: [
|
2020-11-09 13:52:10 +00:00
|
|
|
meson_python_prog, python3_prog, meson_gen_sym_prog,
|
2020-07-27 06:41:59 +00:00
|
|
|
'@OUTPUT@', 'LIBVIRT_ADMIN_PRIVATE_' + meson.project_version(), '@INPUT@',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
libvirt_admin_syms_file = libvirt_admin_syms
|
|
|
|
if host_machine.system() == 'windows'
|
|
|
|
libvirt_admin_def = custom_target(
|
|
|
|
'libvirt_admin.def',
|
|
|
|
input: libvirt_admin_syms,
|
|
|
|
output: 'libvirt_admin.def',
|
|
|
|
command: [
|
2020-11-09 13:52:10 +00:00
|
|
|
meson_python_prog, python3_prog, meson_gen_def_prog,
|
2020-07-27 06:41:59 +00:00
|
|
|
'@INPUT@', '@OUTPUT@',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
libvirt_admin_syms_file = libvirt_admin_def
|
|
|
|
endif
|
|
|
|
|
|
|
|
libvirt_admin_syms_flags = '@0@@1@'.format(
|
|
|
|
version_script_flags,
|
|
|
|
libvirt_admin_syms_file.full_path(),
|
|
|
|
)
|
|
|
|
|
2020-07-27 06:22:41 +00:00
|
|
|
admin_driver_lib = static_library(
|
|
|
|
'virt_admin_driver',
|
|
|
|
[
|
|
|
|
admin_driver_sources,
|
|
|
|
admin_driver_generated,
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
rpc_dep,
|
|
|
|
sasl_dep,
|
|
|
|
src_dep,
|
|
|
|
xdr_dep,
|
|
|
|
],
|
|
|
|
)
|
2020-07-27 06:41:59 +00:00
|
|
|
|
2020-07-28 11:50:04 +00:00
|
|
|
check_protocols += {
|
|
|
|
'name': 'admin_protocol',
|
|
|
|
'lib': admin_driver_lib,
|
|
|
|
}
|
|
|
|
|
2020-07-27 06:52:17 +00:00
|
|
|
virt_conf_files += files('libvirt-admin.conf')
|
|
|
|
|
2020-07-27 06:41:59 +00:00
|
|
|
admin_inc_dir = include_directories('.')
|
2020-06-24 11:28:43 +00:00
|
|
|
|
|
|
|
admin_dep = declare_dependency(
|
|
|
|
include_directories: admin_inc_dir,
|
|
|
|
sources: [ admin_protocol_h ],
|
|
|
|
)
|