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