gnome: Fix includedir cflags

Include directories are passed with the -I flag to both the compiler
and g-ir-scanner, not as input files.
pull/1919/head
Florian Müllner 8 years ago
parent f792641b34
commit 4b8dc3b746
  1. 3
      mesonbuild/modules/gnome.py

@ -367,7 +367,8 @@ class GnomeModule(ExtensionModule):
gi_includes.update([girdir])
elif isinstance(dep, (build.StaticLibrary, build.SharedLibrary)):
for incd in dep.get_include_dirs():
cflags.update(incd.get_incdirs())
for idir in incd.get_incdirs():
cflags.update(["-I%s" % idir])
else:
mlog.log('dependency %s not handled to build gir files' % dep)
continue

Loading…
Cancel
Save