2017-09-04 20:16:12 +08:00
|
|
|
#!/bin/bash -e
|
2016-06-26 00:26:26 +08:00
|
|
|
|
2017-06-13 17:19:29 +08:00
|
|
|
# Download external dependencies.
|
|
|
|
|
|
|
|
working_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd ${working_dir}
|
|
|
|
|
2017-08-24 23:53:16 +08:00
|
|
|
# Cleanup existing dependencies.
|
|
|
|
./cleanup.sh
|
|
|
|
|
2017-02-17 23:11:57 +08:00
|
|
|
# antlr
|
2017-06-13 17:19:29 +08:00
|
|
|
antlr_generator_filename="antlr-4.6-complete.jar"
|
2017-10-25 20:47:46 +08:00
|
|
|
# wget -O ${antlr_generator_filename} http://www.antlr.org/download/${antlr_generator_filename}
|
2017-09-05 23:35:02 +08:00
|
|
|
wget -nv -O ${antlr_generator_filename} http://deps.memgraph.io/${antlr_generator_filename}
|
2017-10-25 20:47:46 +08:00
|
|
|
# git clone https://github.com/antlr/antlr4.git
|
2017-08-24 23:53:16 +08:00
|
|
|
git clone git://deps.memgraph.io/antlr4.git
|
2017-02-17 23:11:57 +08:00
|
|
|
antlr4_tag="aacd2a2c95816d8dc1c05814051d631bfec4cf3e" # v4.6
|
|
|
|
cd antlr4
|
|
|
|
git checkout ${antlr4_tag}
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
# cppitertools
|
2017-08-17 19:29:43 +08:00
|
|
|
# Use our fork that uses experimental/optional instead of unique_ptr in
|
|
|
|
# DerefHolder. Once we move memgraph to c++17 we can use cpp17 branch from
|
|
|
|
# original repo.
|
2017-10-25 20:47:46 +08:00
|
|
|
# git clone https://github.com/memgraph/cppitertools.git
|
2017-08-24 23:53:16 +08:00
|
|
|
git clone git://deps.memgraph.io/cppitertools.git
|
2017-02-17 23:11:57 +08:00
|
|
|
cd cppitertools
|
2017-08-17 19:29:43 +08:00
|
|
|
cppitertools_tag="4231e0bc6fba2737b2a7a8a1576cf06186b0de6a" # experimental_optional 17 Aug 2017
|
2017-02-17 23:11:57 +08:00
|
|
|
git checkout ${cppitertools_tag}
|
2016-06-26 00:26:26 +08:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
# fmt
|
2017-10-25 20:47:46 +08:00
|
|
|
# git clone https://github.com/fmtlib/fmt.git
|
2017-08-24 23:53:16 +08:00
|
|
|
git clone git://deps.memgraph.io/fmt.git
|
2017-06-08 18:23:23 +08:00
|
|
|
fmt_tag="7fa8f8fa48b0903deab5bb42e6760477173ac485" # v3.0.1
|
|
|
|
# Commit which fixes an issue when compiling with C++14 and higher.
|
|
|
|
fmt_cxx14_fix="b9aaa507fc49680d037fd84c043f747a395bce04"
|
2016-06-26 00:26:26 +08:00
|
|
|
cd fmt
|
|
|
|
git checkout ${fmt_tag}
|
2017-09-09 23:11:19 +08:00
|
|
|
git cherry-pick -n ${fmt_cxx14_fix}
|
2016-06-26 00:26:26 +08:00
|
|
|
cd ..
|
|
|
|
|
2017-06-30 20:25:25 +08:00
|
|
|
# rapidcheck
|
2017-10-25 20:47:46 +08:00
|
|
|
# git clone https://github.com/emil-e/rapidcheck.git
|
2017-08-24 23:53:16 +08:00
|
|
|
git clone git://deps.memgraph.io/rapidcheck.git
|
2017-06-30 20:25:25 +08:00
|
|
|
rapidcheck_tag="853e14f0f4313a9eb3c71e24848373e7b843dfd1" # Jun 23, 2017
|
|
|
|
cd rapidcheck
|
|
|
|
git checkout ${rapidcheck_tag}
|
|
|
|
cd ..
|
|
|
|
|
2017-02-17 23:11:57 +08:00
|
|
|
# google benchmark
|
2017-10-25 20:47:46 +08:00
|
|
|
# git clone https://github.com/google/benchmark.git
|
2017-08-24 23:53:16 +08:00
|
|
|
git clone git://deps.memgraph.io/benchmark.git
|
2017-02-17 23:11:57 +08:00
|
|
|
benchmark_tag="4f8bfeae470950ef005327973f15b0044eceaceb" # v1.1.0
|
|
|
|
cd benchmark
|
|
|
|
git checkout ${benchmark_tag}
|
2016-09-05 08:35:52 +08:00
|
|
|
cd ..
|
|
|
|
|
2017-02-17 23:11:57 +08:00
|
|
|
# google test
|
2017-10-25 20:47:46 +08:00
|
|
|
# git clone https://github.com/google/googletest.git
|
2017-08-24 23:53:16 +08:00
|
|
|
git clone git://deps.memgraph.io/googletest.git
|
2017-02-17 23:11:57 +08:00
|
|
|
googletest_tag="ec44c6c1675c25b9827aacd08c02433cccde7780" # v1.8.0
|
|
|
|
cd googletest
|
|
|
|
git checkout ${googletest_tag}
|
2016-06-26 00:26:26 +08:00
|
|
|
cd ..
|
|
|
|
|
2017-06-16 18:04:26 +08:00
|
|
|
# google logging
|
2017-10-25 20:47:46 +08:00
|
|
|
# git clone https://github.com/memgraph/glog.git
|
2017-10-24 19:14:31 +08:00
|
|
|
git clone git://deps.memgraph.io/glog.git
|
2017-11-13 21:52:17 +08:00
|
|
|
glog_tag="ae0ac046e8320245dc42af6671274a7e35ab09e0" # custom version (v0.3.5+)
|
2017-06-16 18:04:26 +08:00
|
|
|
cd glog
|
|
|
|
git checkout ${glog_tag}
|
|
|
|
cd ..
|
|
|
|
|
2017-03-08 01:25:49 +08:00
|
|
|
# lcov-to-coberatura-xml
|
2017-10-25 20:47:46 +08:00
|
|
|
# git clone https://github.com/eriwen/lcov-to-cobertura-xml.git
|
2017-08-24 23:53:16 +08:00
|
|
|
git clone git://deps.memgraph.io/lcov-to-cobertura-xml.git
|
2017-03-08 01:25:49 +08:00
|
|
|
lcov_to_xml_tag="59584761cb5da4687693faec05bf3e2b74e9dde9" # Dec 6, 2016
|
|
|
|
cd lcov-to-cobertura-xml
|
|
|
|
git checkout ${lcov_to_xml_tag}
|
|
|
|
cd ..
|
2017-05-22 18:31:04 +08:00
|
|
|
|
|
|
|
# google flags
|
2017-10-25 20:47:46 +08:00
|
|
|
# git clone https://github.com/memgraph/gflags.git
|
2017-10-24 19:14:31 +08:00
|
|
|
git clone git://deps.memgraph.io/gflags.git
|
2017-10-07 20:41:59 +08:00
|
|
|
gflags_tag="b37ceb03a0e56c9f15ce80409438a555f8a67b7c" # custom version (May 6, 2017)
|
2017-05-22 18:31:04 +08:00
|
|
|
cd gflags
|
|
|
|
git checkout ${gflags_tag}
|
|
|
|
cd ..
|
2017-09-04 20:16:12 +08:00
|
|
|
|
|
|
|
# neo4j
|
2017-09-05 23:35:02 +08:00
|
|
|
wget -nv http://deps.memgraph.io/neo4j-community-3.2.3-unix.tar.gz -O neo4j.tar.gz
|
2017-09-04 20:16:12 +08:00
|
|
|
tar -xzf neo4j.tar.gz
|
|
|
|
mv neo4j-community-3.2.3 neo4j
|
|
|
|
rm neo4j.tar.gz
|
|
|
|
|
|
|
|
# postgresql
|
2017-09-05 23:35:02 +08:00
|
|
|
wget -nv http://deps.memgraph.io/postgresql-9.6.5-1-linux-x64-binaries.tar.gz -O postgres.tar.gz
|
2017-09-04 20:16:12 +08:00
|
|
|
tar -xzf postgres.tar.gz
|
|
|
|
mv pgsql postgresql
|
|
|
|
rm postgres.tar.gz
|
2017-09-12 21:25:43 +08:00
|
|
|
|
|
|
|
# nlohmann json
|
|
|
|
# We wget header instead of cloning repo since repo is huge (lots of test data).
|
|
|
|
# We use head on Sep 1, 2017 instead of last release since it was long time ago.
|
|
|
|
mkdir json
|
|
|
|
cd json
|
2017-10-25 20:47:46 +08:00
|
|
|
# wget "https://raw.githubusercontent.com/nlohmann/json/91e003285312167ad8365f387438ea371b465a7e/src/json.hpp"
|
2017-09-18 17:15:18 +08:00
|
|
|
wget -nv http://deps.memgraph.io/json.hpp
|
2017-09-12 21:25:43 +08:00
|
|
|
cd ..
|
2017-10-20 22:53:24 +08:00
|
|
|
|
2017-10-25 20:47:46 +08:00
|
|
|
# ltalloc
|
|
|
|
# git clone https://github.com/r-lyeh/ltalloc.git
|
2017-10-24 19:14:31 +08:00
|
|
|
git clone git://deps.memgraph.io/ltalloc.git
|
2017-11-16 21:54:16 +08:00
|
|
|
ltalloc_tag="43b51c14857111f993f277c46151fdfac91525a2" # Nov 16, 2017
|
2017-10-20 22:53:24 +08:00
|
|
|
cd ltalloc
|
|
|
|
git checkout ${ltalloc_tag}
|
2017-10-25 22:15:09 +08:00
|
|
|
cd ..
|
2017-10-25 20:47:46 +08:00
|
|
|
|
|
|
|
# cereal
|
2017-10-31 04:09:41 +08:00
|
|
|
#git clone https://github.com/USCiLab/cereal.git
|
|
|
|
git clone git://deps.memgraph.io/cereal.git
|
2017-10-25 20:47:46 +08:00
|
|
|
cd cereal
|
|
|
|
git checkout v1.2.2
|
2017-10-20 22:53:24 +08:00
|
|
|
cd ..
|