From 9c02e57f8864aa019b477f87529efcce7fe518b5 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 2 Jul 2017 16:55:12 +0300 Subject: [PATCH] Qapla' --- mesonbuild/modules/gnome.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 5dfd57255..a2274f2e9 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -342,9 +342,11 @@ class GnomeModule(ExtensionModule): ldflags.update(extdepflags[1]) gi_includes.update(extdepflags[2]) for source in dep.sources: - if hasattr(source, 'held_object') and isinstance(source.held_object, GirTarget): + if hasattr(source, 'held_object'): + source = source.held_object + if isinstance(source, GirTarget): gi_includes.update([os.path.join(state.environment.get_build_dir(), - source.held_object.get_subdir())]) + source.get_subdir())]) # This should be any dependency other than an internal one. elif isinstance(dep, Dependency): cflags.update(dep.get_compile_args())