]>
git.saurik.com Git - wxWidgets.git/blob - docs/doxygen/scripts/make_bindings.py
14 if __name__
== "__main__":
16 "output_dir" : ("output", "Directory to output bindings to"),
17 "sip" : (True, "Produce SIP bindings"),
18 "swig" : (True, "Produce SWIG bindings."),
19 "c" : (True, "Produce C wrappers."),
23 parser
= optparse
.OptionParser(usage
="usage: %prog <doxyml files to parse>\n" , version
="%prog 1.0")
25 for opt
in option_dict
:
26 default
= option_dict
[opt
][0]
29 if type(default
) == types
.BooleanType
:
31 parser
.add_option("--" + opt
, default
=default
, action
=action
, dest
=opt
, help=option_dict
[opt
][1])
33 options
, arguments
= parser
.parse_args()
35 if len(arguments
) < 1:
39 doxyparse
= doxymlparser
.DoxyMLParser()
44 builder
= sip_tools
.SIPBuilder(doxyparse
, options
.output_dir
)
45 builder
.make_bindings()
48 builder
= swig_tools
.SWIGBuilder(doxyparse
, options
.output_dir
)
49 builder
.make_bindings()
52 builder
= c_tools
.CBuilder(doxyparse
, options
.output_dir
)
53 builder
.make_bindings()