WAF: handle --doxygen before building; now only generates docs and does not build anything.

This commit is contained in:
Gustavo J. A. M. Carneiro
2007-08-08 12:36:59 +01:00
parent 02ccad8fbc
commit f302d055e9
2 changed files with 12 additions and 4 deletions

View File

@@ -47,11 +47,18 @@ def configure(conf):
## Used to link the 'run-tests' program with all of ns-3 code
conf.env['NS3_MODULES'] = ['ns3-' + module.split('/')[-1] for module in all_modules]
def create_ns3_module(bld, name, dependencies=()):
module = bld.create_obj('cpp', 'shlib')
module.name = 'ns3-' + name
module.target = module.name
module.uselib_local = ['ns3-' + dep for dep in dependencies]
return module
def build(bld):
Object.register('ns3header', Ns3Header)
Action.Action('ns3header', func=_ns3_headers_inst, color='BLUE')
bld.create_ns3_module = create_ns3_module
bld.add_subdirs(list(all_modules))

View File

@@ -144,6 +144,10 @@ def build(bld):
run_shell()
raise SystemExit(0)
if Params.g_options.doxygen:
doxygen()
raise SystemExit(0)
check_shell()
# process subfolders from here
@@ -166,9 +170,6 @@ def shutdown():
if Params.g_options.lcov_report:
lcov_report()
if Params.g_options.doxygen:
doxygen()
if Params.g_options.run:
run_program(Params.g_options.run, Params.g_options.command_template)
raise SystemExit(0)