diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-02 16:55:12 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-02 16:55:12 +0300 |
commit | 9c02e57f8864aa019b477f87529efcce7fe518b5 (patch) | |
tree | f2c775a34a2c6479bac202161bcb027bdf88fe00 | |
parent | ad3dc937f11af894576032dcad4fb88042bdf253 (diff) | |
download | meson-9c02e57f8864aa019b477f87529efcce7fe518b5.zip meson-9c02e57f8864aa019b477f87529efcce7fe518b5.tar.gz meson-9c02e57f8864aa019b477f87529efcce7fe518b5.tar.bz2 |
Qapla'
-rw-r--r-- | mesonbuild/modules/gnome.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 5dfd572..a2274f2 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()) |