aboutsummaryrefslogtreecommitdiff
path: root/modules/gnome.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gnome.py')
-rw-r--r--modules/gnome.py4
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}