. "$GRIMOIRE"/MESON_DEPENDS &&
. "$GRIMOIRE"/VDEPENDS &&
<-! vdepends &&
	libhandy >= 1.5.0
!
depends libxml2           &&
depends glib2             &&
depends cairo             &&
depends gtk+3             &&
depends gconf2            &&
depends hicolor-icon-theme &&
depends adwaita-icon-theme &&
depends itstool           &&
depends freetype2 &&
depends gdk-pixbuf2 &&
depends pango &&
depends zlib &&
depends libx11 &&
depends libxi &&
depends GETTEXT &&

runtime_depends gnome-icon-theme &&
runtime_depends gsettings-desktop-schemas &&

optional_depends  dbus-glib                           \
                  "dbus=true"                         \
                  "dbus=false"                        \
                  "for DBUS support?"                 &&

optional_depends  poppler                             \
                  "pdf=enabled"                       \
                  "pdf=disabled"                      \
                  "Enable PDF support?"               &&

optional_depends  libgxps                             \
                  "xps=enabled"                       \
                  "xps=disabled"                      \
                  "Enable XPS support?"               &&

optional_depends  libspectre                          \
                  "ps=enabled"                        \
                  "ps=disabled"                       \
                  "for postscript support"            &&

optional_depends  tiff                                \
                  "tiff=enabled"                      \
                  "tiff=disabled"                     \
                  "Enable support of multipage tiff"  &&

optional_depends  djvulibre                           \
                  "djvu=enabled"                      \
                  "djvu=disabled"                     \
                  "Enable support of djvu viewer"     &&

optional_depends  nautilus2                           \
                  "nautilus=true"                     \
                  "nautilus=false"                    \
                  "Enable Nautilus plugin"            &&

optional_depends  libgnome-keyring                    \
                  "keyring=enabled"                   \
                  "keyring=disabled"                  \
                  "Use gnome-keyring?"                &&

if is_depends_enabled $SPELL libgnome-keyring; then
  depends libsecret
fi &&

optional_depends  gtk-doc                             \
                  "gtk_doc=true"                      \
                  "gtk_doc=false"                     \
                  "Build devhelp docs?"               &&

optional_depends  gobject-introspection               \
                  "introspection=true"                \
                  "introspection=false"               \
                  "to enable introspection"           &&

if is_depends_enabled $SPELL dbus-glib; then
  depends dbus
fi
