diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2021-12-08 12:16:28 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2021-12-15 12:12:44 +0100 |
commit | de617ce96b9576e461e1d15a96cdd3f1b2477456 (patch) | |
tree | 3ea5c2c5c726a9c5f593287d84ad5de7a7abc517 /examples | |
parent | b7ccae7f1f6f62c311620c7649c7669ebbec0031 (diff) | |
download | libvirt-de617ce96b9576e461e1d15a96cdd3f1b2477456.tar.gz |
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>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c/admin/meson.build | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/examples/c/admin/meson.build b/examples/c/admin/meson.build index 094408a63c..aa7811ebe5 100644 --- a/examples/c/admin/meson.build +++ b/examples/c/admin/meson.build @@ -8,20 +8,22 @@ example_admin_files = [ 'threadpool_params', ] -foreach name : example_admin_files - source_file = '@0@.c'.format(name) - executable( - name, - [ - source_file, - ], - include_directories: [ - libvirt_inc, - ], - link_with: [ - libvirt_lib, - libvirt_admin_lib, - ], - ) - install_data(source_file, install_dir: example_dir / 'c' / 'admin') -endforeach +if conf.has('WITH_REMOTE') + foreach name : example_admin_files + source_file = '@0@.c'.format(name) + executable( + name, + [ + source_file, + ], + include_directories: [ + libvirt_inc, + ], + link_with: [ + libvirt_lib, + libvirt_admin_lib, + ], + ) + install_data(source_file, install_dir: example_dir / 'c' / 'admin') + endforeach +endif |