summaryrefslogtreecommitdiff
path: root/Makefile.introspection
diff options
context:
space:
mode:
authorLuca Bruno <lethalman88@gmail.com>2010-08-25 19:50:17 +0200
committerLuca Bruno <lethalman88@gmail.com>2010-08-28 11:30:36 +0200
commite108d02cf2d177293085380900ce1607b0f601bf (patch)
tree5dfd7df16563f04243616fbfe248f5db00d51d42 /Makefile.introspection
parent1e248330360848a6f400cd403bce79c5d48def42 (diff)
downloadgobject-introspection-e108d02cf2d177293085380900ce1607b0f601bf.tar.gz
Makefile.introspection: Add _EXPORT_PACKAGES variable.
This new variable maps to --pkg-export.
Diffstat (limited to 'Makefile.introspection')
-rw-r--r--Makefile.introspection4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.introspection b/Makefile.introspection
index 5edccbe0..f38c8684 100644
--- a/Makefile.introspection
+++ b/Makefile.introspection
@@ -58,6 +58,7 @@ _gir_program = $(if $($(_gir_name)_PROGRAM),--program=$($(_gir_name)_PROGRAM))
_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))
# Reuse the LIBTOOL variable from by automake if it's set
_gir_libtool = $(if $(LIBTOOL),--libtool="$(LIBTOOL)")
@@ -105,6 +106,8 @@ _gir_silent_compiler_0 = @echo " GICOMP $(1)";
# INCLUDES - Gir files to include without the .gir suffix, for instance
# GLib-2.0, Gtk-2.0. This is needed for all libraries which you depend on that
# 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.
#
define introspection-scanner
@@ -126,6 +129,7 @@ $(1): $$($(_gir_name)_FILES)
$(_gir_libtool) \
$(_gir_packages) \
$(_gir_includes) \
+ $(_gir_export_packages) \
$(_gir_program) \
$(_gir_libraries) \
$($(_gir_name)_SCANNERFLAGS) \