mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-11 05:24:44 -05: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:
+23
-21
@@ -206,27 +206,29 @@ executable(
|
||||
install_rpath: libvirt_rpath,
|
||||
)
|
||||
|
||||
executable(
|
||||
'virt-admin',
|
||||
[
|
||||
'virt-admin.c',
|
||||
'virt-admin-completer.c',
|
||||
],
|
||||
dependencies: [
|
||||
tools_dep,
|
||||
readline_dep,
|
||||
],
|
||||
link_args: [
|
||||
coverage_flags,
|
||||
],
|
||||
link_with: [
|
||||
libvirt_admin_lib,
|
||||
libvirt_shell_lib,
|
||||
],
|
||||
install: true,
|
||||
install_dir: bindir,
|
||||
install_rpath: libvirt_rpath,
|
||||
)
|
||||
if conf.has('WITH_REMOTE')
|
||||
executable(
|
||||
'virt-admin',
|
||||
[
|
||||
'virt-admin.c',
|
||||
'virt-admin-completer.c',
|
||||
],
|
||||
dependencies: [
|
||||
tools_dep,
|
||||
readline_dep,
|
||||
],
|
||||
link_args: [
|
||||
coverage_flags,
|
||||
],
|
||||
link_with: [
|
||||
libvirt_admin_lib,
|
||||
libvirt_shell_lib,
|
||||
],
|
||||
install: true,
|
||||
install_dir: bindir,
|
||||
install_rpath: libvirt_rpath,
|
||||
)
|
||||
endif
|
||||
|
||||
tools_conf = configuration_data()
|
||||
tools_conf.set('PACKAGE', meson.project_name())
|
||||
|
||||
Reference in New Issue
Block a user