summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Nemerson <evan@coeus-group.com>2012-06-24 19:39:57 -0700
committerRico Tzschichholz <ricotz@ubuntu.com>2017-02-16 23:12:56 +0100
commit76ea47cfff778a215e982d86b6c6458bcf69354b (patch)
tree969c4de182c04f625ea9b9fc3755e7b67ebcf3f8
parente0a8e1975c873c7c47dba5e96a0b1d5f65e10ebf (diff)
downloadgobject-introspection-76ea47cfff778a215e982d86b6c6458bcf69354b.tar.gz
Makefile.introspection: Add variable for C includes
https://bugzilla.gnome.org/show_bug.cgi?id=678749
-rw-r--r--Makefile.introspection4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.introspection b/Makefile.introspection
index 57bec209..042cc65e 100644
--- a/Makefile.introspection
+++ b/Makefile.introspection
@@ -62,6 +62,7 @@ _gir_libraries = $(foreach lib,$($(_gir_name)_LIBS),--library=$(lib))
_gir_packages = $(foreach pkg,$($(_gir_name)_PACKAGES),--pkg=$(pkg))
_gir_includes = $(foreach include,$($(_gir_name)_INCLUDES),--include=$(include))
_gir_export_packages = $(foreach pkg,$($(_gir_name)_EXPORT_PACKAGES),--pkg-export=$(pkg))
+_gir_c_includes = $(foreach include,$($(_gir_name)_C_INCLUDES),--c-include=$(include))
# Reuse the LIBTOOL variable from automake if it's set, but
# work around MSYS weirdness: When running g-ir-scanner, MSYS changes
@@ -117,6 +118,8 @@ _gir_default_scanner_env = CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(
# provides introspection information.
# EXPORT_PACKAGES - list of pkg-config names that are provided by this gir.
# By default the names in the PACKAGES variable will be used.
+# C_INCLUDES - List of public C headers which need to be included by
+# consumers at compile time to make use of the API
#
define introspection-scanner
@@ -141,6 +144,7 @@ $(1): $$($(_gir_name)_FILES)
$(_gir_packages) \
$(_gir_includes) \
$(_gir_export_packages) \
+ $(_gir_c_includes) \
$(_gir_program) \
$(_gir_libraries) \
$($(_gir_name)_SCANNERFLAGS) \