]>
git.saurik.com Git - wxWidgets.git/blob - docs/doxygen/scripts/make_bindings.py
13 "output_dir" : ("output", "Directory to output bindings to"),
14 "sip" : (True, "Produce SIP bindings"),
15 "swig" : (True, "Produce SWIG bindings."),
19 parser
= optparse
.OptionParser(usage
="usage: %prog <doxyml files to parse>\n" , version
="%prog 1.0")
21 for opt
in option_dict
:
22 default
= option_dict
[opt
][0]
25 if type(default
) == types
.BooleanType
:
27 parser
.add_option("--" + opt
, default
=default
, action
=action
, dest
=opt
, help=option_dict
[opt
][1])
29 options
, arguments
= parser
.parse_args()
31 if __name__
== "__main__":
32 if len(arguments
) < 1:
36 doxyparse
= doxymlparser
.DoxyMLParser()
41 builder
= sip_tools
.SIPBuilder(doxyparse
, options
.output_dir
)
42 builder
.make_bindings()
45 builder
= swig_tools
.SWIGBuilder(doxyparse
, options
.output_dir
)
46 builder
.make_bindings()