From f1d2827bcec84e855428733cd55c42d0ece8c6ff Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 24 Mar 2015 11:06:17 +0300 Subject: modules/gnome: inherit global cflags to g-ir-scanner. Closes #74 Signed-off-by: Igor Gnatenko --- modules/gnome.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/gnome.py') 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} -- cgit v1.1