gnome: Pass girtarget include dirs to g-ir-scanner

pull/112/head
Thibault Saunier 10 years ago
parent 28476aa719
commit 8460917418
  1. 6
      modules/gnome.py

@ -55,10 +55,16 @@ class GnomeModule:
nsversion = kwargs.pop('nsversion')
libsources = kwargs.pop('sources')
girfile = '%s-%s.gir' % (ns, nsversion)
scan_command = ['g-ir-scanner', '@INPUT@']
scan_command += pkgargs
scan_command += ['--namespace='+ns, '--nsversion=' + nsversion, '--warn-all',
'--output', '@OUTPUT@']
for incdirs in girtarget.include_dirs:
for incdir in incdirs.get_incdirs():
scan_command += ['-I%s' % os.path.join(state.environment.get_source_dir(), incdir)]
if 'includes' in kwargs:
includes = kwargs.pop('includes')
if isinstance(includes, str):

Loading…
Cancel
Save