. "$GRIMOIRE"/MESON_DEPENDS &&
depends PKG-CONFIG                &&
depends libarchive                &&
depends gpgme                     &&
depends python3                   &&
depends libcap             	  &&
depends appstream                 &&
depends appstream-glib            &&
depends glib2                     &&
depends json-glib                 &&
depends libassuan                 &&
depends libxml2                   &&
depends pyparsing                 &&
depends gsettings-desktop-schemas &&
depends dbus                      &&
depends FUSE                      &&
depends gdk-pixbuf2               &&

depends xdg-dbus-proxy "system_dbus_proxy=${INSTALL_ROOT}/usr/bin/xdg-dbus-proxy" &&

optional_depends dconf                                                      \
                 "dconf=enabled"                                            \
                 "dconf=disabled"                                           \
                 "Use dconf?"                                               &&

optional_depends gobject-introspection                                      \
                 "gir=enabled"                                              \
                 "gir=disabled"                                             \
                 "Build GObject-Introspection metadata?"                    \

optional_depends gtk-doc                                                    \
                 "gtkdoc=enabled"                                           \
                 "gtkdoc=disabled"                                          \
                 "build API reference documentation?"                       &&

optional_depends libsoup                                                    \
                 "http_backend=soup"                                        \
                 ""                                                         \
                 "Use libsoup as http backend (curl otherwise)?"            &&

if is_depends_enabled $SPELL libsoup; then
  depends -sub WITH_SOUP ostree
else
  depends curl "http_backend=curl" &&
  depends -sub WITH_CURL ostree
fi &&

optional_depends zstd                                                       \
                 "libzstd=enabled"                                          \
                 "libzstd=disabled"                                         \
                 "Use zstd?"                                                &&

optional_depends libseccomp                                                 \
                 "seccomp=enabled"                                          \
                 "seccomp=disabled"                                         \
                 "Enabled seccomp?"                                         &&

optional_depends bubblewrap                                                 \
                 "system_bubblewrap=${INSTALL_ROOT}/usr/bin/bwrap"          \
                 ""                                                         \
                 "Use system bubblewrap? (recommended)"                     &&

optional_depends systemd                                                    \
                 "systemd=enabled"                                          \
                 "systemd=disabled"                                         \
                 "Build with systemd support?"                              &&

optional_depends policykit                                                  \
                 ""                                                         \
                 "system_helper=disabled"                                   \
                 "Enable system helper?"                                    &&

optional_depends xauth                                                      \
                 ""                                                         \
                 "xauth=disabled"                                           \
                 "Enabled Xauth use?"                                       &&

if is_depends_enabled $SPELL xauth; then
  depends libxau
fi &&

optional_depends libxslt                                                    \
                 "man=enabled"                                              \
                 "man=disabled"                                             \
                 "Generate man-pages?"                                      &&

optional_depends xmlto                                                      \
                 "docbook_docs=enabled"                                     \
                 "docbook_docs=disabled"                                    \
                 "Build documentation?"                                     &&

suggest_depends xdg-desktop-portal "" "" "portal front-end service for flatpak"
