gnome: Deduplicate include dirs to generate gir

Ensuring the order is respected
pull/11216/head^2
Thibault Saunier 2 years ago committed by Xavier Claessens
parent a38ad3039d
commit 01275fb09e
  1. 6
      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

Loading…
Cancel
Save