Remove benchmark from third-party, prefer deps-build

This commit is contained in:
Teddy Reed 2015-08-30 01:46:48 -07:00
parent 7ac1b993fc
commit d63510f8bd
12 changed files with 26 additions and 10 deletions

View File

@ -1,8 +0,0 @@
set(BENCHMARK_SOURCE_DIR "${CMAKE_SOURCE_DIR}/third-party/benchmark")
set(BENCHMARK_BUILD_DIR "${CMAKE_BINARY_DIR}/third-party/benchmark")
# Only build the benchmark shared library for benchmark targets.
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "")
INCLUDE_DIRECTORIES("${BENCHMARK_SOURCE_DIR}/include")
ADD_SUBDIRECTORY("${BENCHMARK_SOURCE_DIR}")

View File

@ -316,7 +316,6 @@ endif()
find_package(Glog REQUIRED)
find_package(Gflags REQUIRED)
find_package(Gtest REQUIRED)
find_package(Benchmark REQUIRED)
find_package(RocksDB REQUIRED)
find_package(Sqlite3 REQUIRED)
find_package(Thrift 0.9.1 REQUIRED)

@ -1 +1 @@
Subproject commit ed4482f5e563717d453b8a0f7e8531cce68e862e
Subproject commit f5a91963fab9e7b1481c58d55671390e12ce7757

View File

@ -69,6 +69,7 @@ function main_amazon() {
install_thrift
install_yara
install_cppnetlib
install_google_benchmark
gem_install fpm
}

View File

@ -99,6 +99,7 @@ function main_centos() {
install_thrift
install_yara
install_cppnetlib
install_google_benchmark
package device-mapper-devel
package libgcrypt-devel

View File

@ -31,5 +31,6 @@ function main_darwin() {
package yara
package libressl
package cpp-netlib
package google-benchmark
package libmagic
}

View File

@ -94,6 +94,7 @@ function main_debian() {
install_rocksdb
install_yara
install_cppnetlib
install_google_benchmark
# Need headers and PC macros
package libgcrypt-dev

View File

@ -57,6 +57,7 @@ function main_fedora() {
install_thrift
install_yara
install_cppnetlib
install_google_benchmark
package device-mapper-devel
package libgcrypt-devel

View File

@ -216,6 +216,23 @@ function install_gflags() {
fi
}
function install_google_benchmark() {
SOURCE=benchmark-0.1.0
TARBALL=$SOURCE.tar.gz
URL=$DEPS_URL/$TARBALL
if provision benchmark /usr/local/lib/libbenchmark.a; then
pushd $SOURCE
mkdir -p build
pushd build
cmake -DCMAKE_CXX_FLAGS="$CFLAGS" ..
CC="$CC" CXX="$CXX" make -j $THREADS
sudo make install
popd
popd
fi
}
function install_iptables_dev() {
SOURCE=iptables-1.4.21
TARBALL=$SOURCE.tar.gz

View File

@ -110,6 +110,7 @@ function main_oracle() {
install_thrift
install_yara
install_cppnetlib
install_google_benchmark
if [[ $DISTRO = "oracle5" ]]; then
# Install python26 and pip from PyPA.

View File

@ -137,6 +137,7 @@ function main_rhel() {
install_thrift
install_yara
install_cppnetlib
install_google_benchmark
package device-mapper-devel
package libgcrypt-devel

View File

@ -136,6 +136,7 @@ function main_ubuntu() {
install_rocksdb
install_yara
install_cppnetlib
install_google_benchmark
# Need headers and PC macros
package libgcrypt-dev