mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
admin: Build only when RPC is available
The admin module is very closely tied to RPC. If we are building without RPC support there's not much use for the admin module, in fact it fails to build. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
b7ccae7f1f
commit
de617ce96b
@ -8,6 +8,7 @@ example_admin_files = [
|
||||
'threadpool_params',
|
||||
]
|
||||
|
||||
if conf.has('WITH_REMOTE')
|
||||
foreach name : example_admin_files
|
||||
source_file = '@0@.c'.format(name)
|
||||
executable(
|
||||
@ -25,3 +26,4 @@ foreach name : example_admin_files
|
||||
)
|
||||
install_data(source_file, install_dir: example_dir / 'c' / 'admin')
|
||||
endforeach
|
||||
endif
|
||||
|
@ -91,6 +91,7 @@ libvirt_admin_syms_flags = '@0@@1@'.format(
|
||||
libvirt_admin_syms_file.full_path(),
|
||||
)
|
||||
|
||||
if conf.has('WITH_REMOTE')
|
||||
admin_driver_lib = static_library(
|
||||
'virt_admin_driver',
|
||||
[
|
||||
@ -109,6 +110,7 @@ check_protocols += {
|
||||
'name': 'admin_protocol',
|
||||
'lib': admin_driver_lib,
|
||||
}
|
||||
endif
|
||||
|
||||
virt_conf_files += files('libvirt-admin.conf')
|
||||
|
||||
|
@ -517,7 +517,7 @@ libvirt_lxc_lib = shared_library(
|
||||
|
||||
|
||||
# libvirt-admin.so
|
||||
|
||||
if conf.has('WITH_REMOTE')
|
||||
libvirt_admin_lib = shared_library(
|
||||
'virt-admin',
|
||||
[
|
||||
@ -558,7 +558,7 @@ libvirt_admin_lib = shared_library(
|
||||
version: libvirt_lib_version,
|
||||
soversion: libvirt_so_version,
|
||||
)
|
||||
|
||||
endif
|
||||
|
||||
# build libvirt shared modules
|
||||
|
||||
@ -919,6 +919,7 @@ if host_machine.system() == 'linux'
|
||||
env: runutf8,
|
||||
)
|
||||
|
||||
if conf.has('WITH_REMOTE')
|
||||
test(
|
||||
'check-admin-symfile',
|
||||
python3_prog,
|
||||
@ -926,6 +927,7 @@ if host_machine.system() == 'linux'
|
||||
env: runutf8,
|
||||
)
|
||||
endif
|
||||
endif
|
||||
|
||||
test(
|
||||
'check-symsorting',
|
||||
|
@ -206,6 +206,7 @@ executable(
|
||||
install_rpath: libvirt_rpath,
|
||||
)
|
||||
|
||||
if conf.has('WITH_REMOTE')
|
||||
executable(
|
||||
'virt-admin',
|
||||
[
|
||||
@ -227,6 +228,7 @@ executable(
|
||||
install_dir: bindir,
|
||||
install_rpath: libvirt_rpath,
|
||||
)
|
||||
endif
|
||||
|
||||
tools_conf = configuration_data()
|
||||
tools_conf.set('PACKAGE', meson.project_name())
|
||||
|
Loading…
Reference in New Issue
Block a user