[gobject-introspection/wip/docs: 1/7] docmain: Support an include path for GIRs
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/docs: 1/7] docmain: Support an include path for GIRs
- Date: Thu, 7 Feb 2013 09:33:07 +0000 (UTC)
commit 1a101b6a536a1c7e18e2460545efdb63862aeb4f
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]