diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a97f203c63..74c19d642f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,7 @@ stages: variables: COMMON_MESON_FLAGS: "--fatal-meson-warnings --werror" BACKEND_FLAGS: "-Dx11-backend=true -Dwayland-backend=true -Dbroadway-backend=true -Dvulkan=yes" + FEATURE_FLAGS: "-Dcloudproviders=true" MESON_TEST_TIMEOUT_MULTIPLIER: 2 FEDORA_IMAGE: "registry.gitlab.gnome.org/gnome/gtk/fedora:v17" FLATPAK_IMAGE: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master" @@ -70,7 +71,7 @@ fedora-x86_64: variables: EXTRA_MESON_FLAGS: "--buildtype=debug --default-library=both" script: - - meson ${COMMON_MESON_FLAGS} ${EXTRA_MESON_FLAGS} ${BACKEND_FLAGS} + - meson ${COMMON_MESON_FLAGS} ${EXTRA_MESON_FLAGS} ${BACKEND_FLAGS} ${FEATURE_FLAGS} -Dprofiler=true _build - ninja -C _build @@ -84,7 +85,7 @@ release-build: variables: EXTRA_MESON_FLAGS: "--buildtype=release" script: - - meson ${COMMON_MESON_FLAGS} ${EXTRA_MESON_FLAGS} ${BACKEND_FLAGS} + - meson ${COMMON_MESON_FLAGS} ${EXTRA_MESON_FLAGS} ${BACKEND_FLAGS} ${FEATURE_FLAGS} _build - ninja -C _build - .gitlab-ci/run-tests.sh _build x11 diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 2dc9c42116..f016612ef0 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -25,9 +25,7 @@ #include #ifdef HAVE_CLOUDPROVIDERS -#include -#include -#include +#include #endif #include "gtkplacessidebarprivate.h" diff --git a/gtk/gtksidebarrow.c b/gtk/gtksidebarrow.c index 0a2749a122..fbd90b66bb 100644 --- a/gtk/gtksidebarrow.c +++ b/gtk/gtksidebarrow.c @@ -30,7 +30,7 @@ #include "gtkspinner.h" #ifdef HAVE_CLOUDPROVIDERS -#include +#include #endif struct _GtkSidebarRow diff --git a/meson.build b/meson.build index 9d9e4e37b2..3453551c36 100644 --- a/meson.build +++ b/meson.build @@ -37,7 +37,7 @@ wayland_proto_req = '>= 1.20' wayland_req = '>= 1.14.91' graphene_req = '>= 1.9.1' epoxy_req = '>= 1.4' -cloudproviders_req = '>= 0.2.5' +cloudproviders_req = '>= 0.3.1' xkbcommon_req = '>= 0.2.0' gnome = import('gnome') @@ -666,7 +666,15 @@ endif cloudproviders_enabled = get_option('cloudproviders') if cloudproviders_enabled - cloudproviders_dep = dependency('cloudproviders', required: true) + cloudproviders_dep = dependency('cloudproviders', + version: cloudproviders_req, + fallback: [ + 'libcloudproviders', + 'libcloudproviders_dep', + ], + default_options: [ + 'vapigen=false', + ]) if cloudproviders_dep.found() cdata.set('HAVE_CLOUDPROVIDERS', cloudproviders_dep.found()) else diff --git a/subprojects/libcloudproviders.wrap b/subprojects/libcloudproviders.wrap new file mode 100644 index 0000000000..2b47d8cad6 --- /dev/null +++ b/subprojects/libcloudproviders.wrap @@ -0,0 +1,4 @@ +[wrap-git] +directory=libcloudproviders +url=https://gitlab.gnome.org/World/libcloudproviders.git +revision=master