diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2015-05-15 17:45:39 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2015-05-15 17:45:39 +0200 |
commit | 84609174186f0d44de517b7b29e19d082eea128d (patch) | |
tree | 27e78857a8b0c76bc9a7abb66301bdb90c3a2b71 /modules/gnome.py | |
parent | 28476aa719845094b20c9ebb58506da7b514b789 (diff) | |
download | meson-84609174186f0d44de517b7b29e19d082eea128d.zip meson-84609174186f0d44de517b7b29e19d082eea128d.tar.gz meson-84609174186f0d44de517b7b29e19d082eea128d.tar.bz2 |
gnome: Pass girtarget include dirs to g-ir-scanner
Diffstat (limited to 'modules/gnome.py')
-rw-r--r-- | modules/gnome.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gnome.py b/modules/gnome.py index afd07a0..e3174bb 100644 --- a/modules/gnome.py +++ b/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): |