--include=GObject-2.0 \
--library=girepository-1.0 \
-I$(srcdir)/girepository \
- --pkg glib-2.0 \
--pkg gobject-2.0 \
+ --pkg-export gobject-introspection-1.0 \
$(GIREPOSITORY_FILES)
BUILT_GIRSOURCES += GIRepository-2.0.gir
parser.add_option("", "--pkg",
action="append", dest="packages", default=[],
help="pkg-config packages to get cflags from")
+ parser.add_option("", "--pkg-export",
+ action="append", dest="packages_export", default=[],
+ help="Associated pkg-config packages for this library")
parser.add_option("-v", "--verbose",
action="store_true", dest="verbose",
help="be verbose")
raise SystemExit("ERROR in annotation: %s" % (str(e), ))
# Write out AST
+ if options.packages_export:
+ exported_packages = options.packages_export
+ else:
+ exported_packages = options.packages
writer = Writer(namespace, shlibs, transformer.get_includes(),
- options.packages, options.c_includes,
+ exported_packages, options.c_includes,
transformer.get_strip_prefix())
data = writer.get_xml()
if options.output: