diff options
author | Colin Walters <walters@verbum.org> | 2013-03-06 12:16:24 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-03-06 17:15:45 -0500 |
commit | 7639a440b43ea1197de96035304404b0c87db608 (patch) | |
tree | b0d54d2ba3302a43b5424ad6a2bde4a85dd4046e /giscanner/sourcescanner.py | |
parent | 3b6de4492d03e69bb29b09b4b1db9960cee9c7d0 (diff) | |
download | gobject-introspection-7639a440b43ea1197de96035304404b0c87db608.tar.gz |
scanner: Allow CFLAGS to contain arbitrary preprocessor commands like -include
Newer spidermonkey .pc file contains a -include argument, which
g-ir-scanner doesn't understand. Rather than us attempting to replicate
all of cpp's options, use wrapper arguments in Makefile.introspection
to pass them through.
https://bugzilla.gnome.org/show_bug.cgi?id=695182
Diffstat (limited to 'giscanner/sourcescanner.py')
-rw-r--r-- | giscanner/sourcescanner.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index 9eb4ab4f..de137767 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -223,7 +223,8 @@ class SourceScanner(object): # Public API - def set_cpp_options(self, includes, defines, undefines): + def set_cpp_options(self, includes, defines, undefines, cflags=[]): + self._cpp_options.extend(cflags) for prefix, args in [('-I', includes), ('-D', defines), ('-U', undefines)]: |