diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-24 11:06:17 +0300 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-24 11:06:48 +0300 |
commit | f1d2827bcec84e855428733cd55c42d0ece8c6ff (patch) | |
tree | d02c034d641a2d044ca3f0c735fe54a7c9f59662 /modules | |
parent | 7d0c38257d28e66cd93cb563194a96fcb03458d1 (diff) | |
download | meson-f1d2827bcec84e855428733cd55c42d0ece8c6ff.zip meson-f1d2827bcec84e855428733cd55c42d0ece8c6ff.tar.gz meson-f1d2827bcec84e855428733cd55c42d0ece8c6ff.tar.bz2 |
modules/gnome: inherit global cflags to g-ir-scanner. Closes #74
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gnome.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gnome.py b/modules/gnome.py index bfae555..539ed27 100644 --- a/modules/gnome.py +++ b/modules/gnome.py @@ -68,6 +68,10 @@ class GnomeModule: scan_command += ['--include=%s' % inc for inc in includes] else: raise MesonException('Gir includes must be str or list') + if state.global_args.get('c'): + scan_command += ['--cflags-begin'] + scan_command += state.global_args['c'] + scan_command += ['--cflags-end'] scankwargs = {'output' : girfile, 'input' : libsources, 'command' : scan_command} |