summaryrefslogtreecommitdiffstats
path: root/rtems_spec_to_x.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-04-17 14:47:55 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-28 10:34:23 +0200
commit99da835dfeafcb23f0da1273c708f78be1709548 (patch)
treecd8f49238a3a50ca92b94c1b2e6c5668a376c6d2 /rtems_spec_to_x.py
parentGenerate a test suite with two test cases (diff)
downloadrtems-central-99da835dfeafcb23f0da1273c708f78be1709548.tar.bz2
Run doxygen in pre-qualified workspace
Diffstat (limited to 'rtems_spec_to_x.py')
-rwxr-xr-xrtems_spec_to_x.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/rtems_spec_to_x.py b/rtems_spec_to_x.py
index d0cdc058..1024c0d0 100755
--- a/rtems_spec_to_x.py
+++ b/rtems_spec_to_x.py
@@ -68,6 +68,23 @@ def _run_pre_qualified_only_build(config: dict, item_cache: ItemCache) -> None:
_run_command(["./waf"], workspace_dir)
+def _run_pre_qualified_doxygen(config: dict) -> None:
+ workspace_dir = config["workspace-directory"]
+ with open(config["doxyfile-template"], "r") as doxyfile_template:
+
+ class Template(string.Template):
+ """ Template class with custom delimiter. """
+ delimiter = "%"
+
+ doxyfile_vars = {}
+ doxyfile_vars["project_name"] = "RTEMS"
+ doxyfile_vars["output_directory"] = "doc"
+ content = Template(doxyfile_template.read()).substitute(doxyfile_vars)
+ with open(os.path.join(workspace_dir, "Doxyfile"), "w") as doxyfile:
+ doxyfile.write(content)
+ _run_command(["doxygen"], workspace_dir)
+
+
def main() -> None:
""" Generates glossaries of terms according to the configuration. """
config = rtemsqual.util.load_config("config.yml")
@@ -76,6 +93,7 @@ def main() -> None:
rtemsqual.applconfig.generate(config["appl-config"], item_cache)
rtemsqual.validation.generate(config["validation"], item_cache)
_run_pre_qualified_only_build(config["build"], item_cache)
+ _run_pre_qualified_doxygen(config["build"])
if __name__ == "__main__":