diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-01-17 14:16:40 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-01-17 14:16:40 +0100 |
commit | 6a42ed6aae69067dfd4c09aa5139499d64bcdf47 (patch) | |
tree | de8924664d49645082eea3bf87851aa981875233 /meson.build | |
parent | 8aaa26cf50574707abd682cd3bc0a95461d50640 (diff) | |
download | vconsole-6a42ed6aae69067dfd4c09aa5139499d64bcdf47.tar.gz |
avahi conditional build, specfile update
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/meson.build b/meson.build index 5b5edda..bdc03fc 100644 --- a/meson.build +++ b/meson.build @@ -16,8 +16,8 @@ gtk3_dep = dependency('gtk+-3.0') vte_dep = dependency('vte-2.91') libvirt_dep = dependency('libvirt') libxml_dep = dependency('libxml-2.0') -avahi_client_dep = dependency('avahi-client') -avahi_glib_dep = dependency('avahi-glib') +avahi_client_dep = dependency('avahi-client', required : false) +avahi_glib_dep = dependency('avahi-glib', required : false) # finish & write configuration configure_file(output : 'config.h', configuration : config) @@ -47,8 +47,9 @@ install_man('vconsole.1') install_data('vconsole.desktop', install_dir : 'share/applications') - -executable('vpublish', - sources : vpublish_srcs, - dependencies : vpublish_deps, - install : true) +if avahi_glib_dep.found() + executable('vpublish', + sources : vpublish_srcs, + dependencies : vpublish_deps, + install : true) +endif |