Generate Doxygen configuration file.
(root_path)
| 8 | doxy_gen(os.path.abspath(os.path.join('..'))) |
| 9 | |
| 10 | def doxy_gen(root_path): |
| 11 | """ |
| 12 | Generate Doxygen configuration file. |
| 13 | """ |
| 14 | confs = doxy_config(root_path) |
| 15 | build_path = os.path.join(root_path, "doc", "build", "doxygen") |
| 16 | gen_path = os.path.join(build_path, "Doxyfile") |
| 17 | if not os.path.exists(build_path): |
| 18 | os.makedirs(build_path) |
| 19 | with open(gen_path, 'w') as fd: |
| 20 | fd.write("#Please Don't Edit! This config file was autogenerated by ") |
| 21 | fd.write(f"doxy_gen({root_path}) in doc/preprocess.py.\n") |
| 22 | for c in confs: |
| 23 | fd.write(c) |
| 24 | |
| 25 | class DoxyTpl(Template): |
| 26 | delimiter = '@' |