aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2023-01-25 16:41:40 -0300
committerXavier Claessens <xclaesse@gmail.com>2023-01-26 15:34:01 -0500
commit01275fb09ec083aa8328ba100ed665bb9034c914 (patch)
treeee7948a8b040495d4ae9c9c37a6aa19d500ce21c
parenta38ad3039d0680f3ac34a6dc487776c79c48acf3 (diff)
downloadmeson-01275fb09ec083aa8328ba100ed665bb9034c914.zip
meson-01275fb09ec083aa8328ba100ed665bb9034c914.tar.gz
meson-01275fb09ec083aa8328ba100ed665bb9034c914.tar.bz2
gnome: Deduplicate include dirs to generate gir
Ensuring the order is respected
-rw-r--r--mesonbuild/modules/gnome.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index b6c9aeb..a0e5330 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -891,10 +891,10 @@ class GnomeModule(ExtensionModule):
return ret
@staticmethod
- def _get_gir_targets_inc_dirs(girtargets: T.Sequence[build.BuildTarget]) -> T.List[build.IncludeDirs]:
- ret: T.List[build.IncludeDirs] = []
+ def _get_gir_targets_inc_dirs(girtargets: T.Sequence[build.BuildTarget]) -> OrderedSet[build.IncludeDirs]:
+ ret: OrderedSet = OrderedSet()
for girtarget in girtargets:
- ret += girtarget.get_include_dirs()
+ ret.update(girtarget.get_include_dirs())
return ret
@staticmethod