[gobject-introspection] docmain: Support an include path for GIRs
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] docmain: Support an include path for GIRs
- Date: Mon, 11 Feb 2013 17:35:15 +0000 (UTC)
commit 3818b98a9785026c8aab2cf07e35855caf32a768
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Feb 3 07:31:52 2013 -0500
docmain: Support an include path for GIRs
We need this to replace the test infrastructure so it can find
Utility-1.0.gir
giscanner/docmain.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/docmain.py b/giscanner/docmain.py
index 8919eab..cd782fe 100644
--- a/giscanner/docmain.py
+++ b/giscanner/docmain.py
@@ -34,6 +34,9 @@ def doc_main(args):
action="store", dest="language",
default="Python",
help="Output language")
+ parser.add_option("", "--add-include-path",
+ action="append", dest="include_paths", default=[],
+ help="include paths for other GIR files")
options, args = parser.parse_args(args)
if not options.output:
@@ -50,6 +53,7 @@ def doc_main(args):
extra_include_dirs = [os.path.join(top_srcdir, 'gir'), top_builddir]
else:
extra_include_dirs = []
+ extra_include_dirs.extend(options.include_paths)
transformer = Transformer.parse_from_gir(args[1], extra_include_dirs)
writer = DocWriter(transformer, options.language)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]