# HG changeset patch # User Gustavo J. A. M. Carneiro # Date 1339004533 -3600 # Node ID 9a34e12fab31fbacf1bade9835d5051e27352abe # Parent 1b229b79d37d2fcd00ac746080fb3fbd866577a5 Automatically add the visualizer module to programs running with waf --run --vis diff -r 1b229b79d37d -r 9a34e12fab31 wscript --- a/wscript Wed Jun 06 18:41:58 2012 +0100 +++ b/wscript Wed Jun 06 18:42:13 2012 +0100 @@ -823,6 +823,9 @@ # nothing more; this greatly speeds up compilation when all you # want to do is run a test program. Options.options.targets += ',' + os.path.basename(program_name) + if getattr(Options.options, "visualize", False): + program_obj = wutils.find_program(program_name, bld.env) + program_obj.use.append('ns3-visualizer') for gen in bld.all_task_gen: if type(gen).__name__ in ['ns3header_taskgen', 'ns3moduleheader_taskgen']: gen.post()