blob: 838ca1a7d42fc23aee2267f47a54339276932e4f [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 06240574626eb21af37cf7dde5bf81e892dff467 Mon Sep 17 00:00:00 2001
2From: Emmanuele Bassi <ebassi@gnome.org>
3Date: Wed, 5 Oct 2022 22:15:37 +0100
4Subject: [PATCH] build: Use the appropriate dependency object
5
6Just using `link_with` will not ensure that the GOA web extension shared
7module is properly built against libgoa-backend and libgoa; the
8generated headers must be transitively available by the time we build
9the shared module.
10
11Fixes: #226
12Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/commit/fe86bfb0271735c8130367c46536b08dad5c20d8]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/goabackend/meson.build | 3 +--
16 1 file changed, 1 insertion(+), 2 deletions(-)
17
18diff --git a/src/goabackend/meson.build b/src/goabackend/meson.build
19index f5382b3..865b2d2 100644
20--- a/src/goabackend/meson.build
21+++ b/src/goabackend/meson.build
22@@ -157,9 +157,8 @@ libgoa_web_extension = shared_module(
23 'goawebextension',
24 libgoawebextension_sources,
25 include_directories: common_incs + [goa_inc],
26- dependencies: deps,
27+ dependencies: [deps, libgoa_backend_dep],
28 c_args: cflags,
29- link_with: libgoa_backend,
30 install: true,
31 install_dir: join_paths(goa_pkglibdir, 'web-extensions')
32 )
33--
342.39.0
35