summaryrefslogtreecommitdiff
path: root/atk
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-12-01 02:51:25 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-12-01 02:51:25 +0530
commit04703e2e9bc6d4f9ebd680c352acfedb829a594a (patch)
treeeacdfcfa1240b105418a86d49a995d5302f3df2a /atk
parentd6f50489d8f488e6fa84fad63f2a25973e4d3d5b (diff)
downloadatk-04703e2e9bc6d4f9ebd680c352acfedb829a594a.tar.gz
meson: Fix usage of glib as a subproject dependency
We include glib headers, so we need to ensure that we also pull in the glib dependency correctly, to inherit the right include flags. Also doesn't lead to overlinking because meson uses --as-needed by default. This wasn't noticed earlier because when building against glib inside a prefix, glib and gobject headers are in the same location.
Diffstat (limited to 'atk')
-rw-r--r--atk/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/atk/meson.build b/atk/meson.build
index 191e16e..69ba6c5 100644
--- a/atk/meson.build
+++ b/atk/meson.build
@@ -127,14 +127,14 @@ libatk = shared_library('atk-@0@'.format(atk_api_version),
soversion: atk_soversion,
version: atk_libversion,
install: true,
- dependencies: gobject_dep,
+ dependencies: glib_dep,
include_directories: [ root_inc, atk_inc ],
c_args: common_cflags + atk_cflags,
link_args: common_ldflags)
libatk_dep = declare_dependency(link_with: libatk,
include_directories: [atk_inc, root_inc],
- dependencies: gobject_dep,
+ dependencies: glib_dep,
sources: atk_enum_h)
if not meson.is_cross_build() and get_option('introspection')