Commit 979b752b authored by Jakub Janků's avatar Jakub Janků Committed by Frediano Ziglio
Browse files

build: define HAVE_PHODAV_VIRTUAL if phodav >= 2.5



Phodav 2.5 brings PhodavVirtualDir API needed for the
file copy and paste functionality.

If the library version is not sufficient, this new feature
will be disabled, but the standard shared folders can still
be used.
Signed-off-by: Jakub Janků's avatarJakub Janků <jjanku@redhat.com>
Acked-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
parent 4b9092b9
......@@ -177,14 +177,17 @@ endif
# webdav
spice_gtk_has_phodav = false
d = dependency('libphodav-2.0', required: get_option('webdav'))
if d.found()
spice_glib_deps += d
phodav_dep = dependency('libphodav-2.0', required: get_option('webdav'))
if phodav_dep.found()
spice_glib_deps += phodav_dep
d = dependency('libsoup-2.4', version : '>= 2.49.91', required: get_option('webdav'))
if d.found()
spice_glib_deps += d
spice_gtk_config_data.set('USE_PHODAV', '1')
spice_gtk_has_phodav = true
if phodav_dep.version().version_compare('>= 2.5')
spice_gtk_config_data.set('HAVE_PHODAV_VIRTUAL', '1')
endif
endif
endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment