equal
deleted
inserted
replaced
212 |
212 |
213 def _run_waf_check(): |
213 def _run_waf_check(): |
214 ## generate the trace sources list docs |
214 ## generate the trace sources list docs |
215 env = Params.g_build.env_of_name('default') |
215 env = Params.g_build.env_of_name('default') |
216 proc_env = _get_proc_env() |
216 proc_env = _get_proc_env() |
217 prog = _find_program('print-trace-sources', env).m_linktask.m_outputs[0].abspath(env) |
217 prog = _find_program('print-introspected-doxygen', env).m_linktask.m_outputs[0].abspath(env) |
218 out = open('doc/trace-source-list.h', 'w') |
218 out = open('doc/introspected-doxygen.h', 'w') |
219 if subprocess.Popen([prog], stdout=out, env=proc_env).wait(): |
219 if subprocess.Popen([prog], stdout=out, env=proc_env).wait(): |
220 raise SystemExit(1) |
220 raise SystemExit(1) |
221 out.close() |
221 out.close() |
222 |
222 |
223 run_program('run-tests') |
223 run_program('run-tests') |
351 env = Params.g_build.env_of_name('default') |
351 env = Params.g_build.env_of_name('default') |
352 _run_argv([shell], {'NS3_MODULE_PATH': os.pathsep.join(env['NS3_MODULE_PATH'])}) |
352 _run_argv([shell], {'NS3_MODULE_PATH': os.pathsep.join(env['NS3_MODULE_PATH'])}) |
353 |
353 |
354 |
354 |
355 def doxygen(): |
355 def doxygen(): |
356 if not os.path.exists('doc/trace-source-list.h'): |
356 if not os.path.exists('doc/introspected-doxygen.h'): |
357 Params.warning("doc/trace-source-list.h does not exist; run waf check to generate it.") |
357 Params.warning("doc/introspected-doxygen.h does not exist; run waf check to generate it.") |
358 |
358 |
359 ## run doxygen |
359 ## run doxygen |
360 doxygen_config = os.path.join('doc', 'doxygen.conf') |
360 doxygen_config = os.path.join('doc', 'doxygen.conf') |
361 if subprocess.Popen(['doxygen', doxygen_config]).wait(): |
361 if subprocess.Popen(['doxygen', doxygen_config]).wait(): |
362 raise SystemExit(1) |
362 raise SystemExit(1) |