about summary refs log tree commit diff homepage
path: root/scripts
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2022-03-18 11:35:24 +0000
committerMartinNowack <2443641+MartinNowack@users.noreply.github.com>2022-03-22 09:21:48 +0000
commit5a633251bb6168b8b7e5d0cd7d554858e96a3b0e (patch)
tree644dccc395a89df0f44a1ffd931723373710c01c /scripts
parent663e034926bbcefa6c179b16d9156296f782630b (diff)
downloadklee-5a633251bb6168b8b7e5d0cd7d554858e96a3b0e.tar.gz
Install doxygen and graphviz (dot) to generate Doxygen documentation when ENABLE_DOXYGEN=ON
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/p-klee-linux-ubuntu.inc4
-rw-r--r--scripts/build/p-klee-osx.inc3
2 files changed, 7 insertions, 0 deletions
diff --git a/scripts/build/p-klee-linux-ubuntu.inc b/scripts/build/p-klee-linux-ubuntu.inc
index d2847343..4b8a89bf 100644
--- a/scripts/build/p-klee-linux-ubuntu.inc
+++ b/scripts/build/p-klee-linux-ubuntu.inc
@@ -38,6 +38,10 @@ install_build_dependencies_klee() {
     dependencies+=(lcov curl git)
   fi
 
+  if [[ $(to_bool "${ENABLE_DOXYGEN}") -eq 1 ]]; then
+    dependencies+=(doxygen graphviz)
+  fi
+
   apt -y --no-install-recommends install "${dependencies[@]}"
 
   pip3 install lit
diff --git a/scripts/build/p-klee-osx.inc b/scripts/build/p-klee-osx.inc
index fae6bbd3..38eaa02c 100644
--- a/scripts/build/p-klee-osx.inc
+++ b/scripts/build/p-klee-osx.inc
@@ -2,5 +2,8 @@
 install_build_dependencies_klee() {
   brew upgrade python               # upgrade to Python 3
   brew link --overwrite python
+  if [[ $(to_bool "${ENABLE_DOXYGEN}") -eq 1 ]]; then
+    brew install doxygen graphviz
+  fi
   pip3 install lit tabulate
 }
\ No newline at end of file