about summary refs log tree commit diff homepage
path: root/scripts/build/p-gtest.inc
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2019-02-28 11:56:19 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2019-03-10 20:10:32 +0000
commitcf930214e12b49e89be4674043d9f461d667baae (patch)
tree90de5ea1c643d0d7ad2c5cf55e862d309e605d48 /scripts/build/p-gtest.inc
parentb4d8fe0301b82e8abff0336bf6d1347dff11a853 (diff)
downloadklee-cf930214e12b49e89be4674043d9f461d667baae.tar.gz
Updated dependency build system for KLEE
Provide a single `scripts/build/build.sh` file to build KLEE and its
dependencies.
Diffstat (limited to 'scripts/build/p-gtest.inc')
-rw-r--r--scripts/build/p-gtest.inc45
1 files changed, 45 insertions, 0 deletions
diff --git a/scripts/build/p-gtest.inc b/scripts/build/p-gtest.inc
new file mode 100644
index 00000000..d4a2d498
--- /dev/null
+++ b/scripts/build/p-gtest.inc
@@ -0,0 +1,45 @@
+setup_build_variables_gtest() {
+  GTEST_INSTALL_PATH="${BASE}/googletest-release-${GTEST_VERSION}"
+  return 0
+}
+
+download_gtest() {
+  cd "${BASE}" || exit 1
+  wget "https://github.com/google/googletest/archive/release-${GTEST_VERSION}.zip"
+  unzip -o "release-${GTEST_VERSION}.zip"
+  rm "release-${GTEST_VERSION}.zip"
+  touch "${GTEST_INSTALL_PATH}"/.is_installed
+}
+
+build_gtest() {
+  return 0
+}
+
+install_gtest() {
+  return 0
+}
+
+is_installed_gtest() {
+  (
+    setup_build_variables_gtest
+    [[ -f "${GTEST_INSTALL_PATH}"/.is_installed ]]
+  )
+}
+
+get_build_artifacts_gtest() {
+  (
+    setup_build_variables_gtest
+    echo "${GTEST_INSTALL_PATH}"
+  )
+}
+
+setup_artifact_variables_gtest() {
+  setup_build_variables_gtest
+}
+
+get_docker_config_id_gtest() {
+  (
+    setup_build_variables_gtest
+    echo "${GTEST_VERSION}"
+  )
+}
\ No newline at end of file