summaryrefslogtreecommitdiff
path: root/Makefile.introspection
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-03-06 12:16:24 -0500
committerColin Walters <walters@verbum.org>2013-03-06 17:15:45 -0500
commit7639a440b43ea1197de96035304404b0c87db608 (patch)
treeb0d54d2ba3302a43b5424ad6a2bde4a85dd4046e /Makefile.introspection
parent3b6de4492d03e69bb29b09b4b1db9960cee9c7d0 (diff)
downloadgobject-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 'Makefile.introspection')
-rw-r--r--Makefile.introspection2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.introspection b/Makefile.introspection
index 567d5e96..b3473377 100644
--- a/Makefile.introspection
+++ b/Makefile.introspection
@@ -142,7 +142,9 @@ $(1): $$($(_gir_name)_FILES)
$(_gir_program) \
$(_gir_libraries) \
$($(_gir_name)_SCANNERFLAGS) \
+ --cflags-begin \
$($(_gir_name)_CFLAGS) \
+ --cflags-end \
$($(_gir_name)_LDFLAGS) \
$$^ \
--output $(1)