diff options
author | Chris Johns <chrisj@rtems.org> | 2012-12-08 09:05:12 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-12-08 09:05:12 +1100 |
commit | c6add3b2f603f4cf9be8bfe4bb4c27ccf9c086fa (patch) | |
tree | 4500c9b99960d7d5ceafbf99a6dd40e0cf10e3f1 /wscript | |
parent | 4ac37d4a9d23f91d92d415e65021086092f9daec (diff) |
Add doxygen support.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -31,6 +31,10 @@ def options(opt): help = 'Print the commands as strings.') def configure(conf): + try: + conf.load("doxygen", tooldir = 'waf-tools') + except: + pass conf.load("g++") conf.load("gcc") conf_libiberty(conf) @@ -51,6 +55,15 @@ def configure(conf): conf.env.SHOW_COMMANDS = show_commands def build(bld): + # + # Build the doxygen documentation. + # + if bld.cmd == 'doxy': + bld(features = 'doxygen', + doxyfile = 'rtl-host.conf', + doxy_tar = 'rtl-host-docs.tar.bz2') + return + if bld.env.SHOW_COMMANDS == 'yes': output_command_line() @@ -317,3 +330,11 @@ def output_command_line(): return '' # no output on empty strings Task.__str__ = display + +# +# The doxy command. +# +from waflib import Build +class doxy(Build.BuildContext): + fun = 'build' + cmd = 'doxy' |