From e1dcab2eca7ac82976a2b5d9eadbd910ee7f86ae Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Tue, 19 Jul 2016 16:15:02 +0200 Subject: [PATCH] do_freebsd-cmake.sh: script to cmake on FreeBSD Signed-off-by: Willem Jan Withagen --- do_freebsd-cmake.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 do_freebsd-cmake.sh diff --git a/do_freebsd-cmake.sh b/do_freebsd-cmake.sh new file mode 100755 index 00000000000..c520586a769 --- /dev/null +++ b/do_freebsd-cmake.sh @@ -0,0 +1,30 @@ +#!/bin/sh -xve +NPROC=`sysctl -n hw.ncpu` + +if [ x"$1"x = x"--deps"x ]; then + # we need bash first otherwise almost nothing will work + sudo pkg install bash + if [ ! -L /bin/bash ]; then + echo linking /bin/bash to /usr/local/bin/bash + ln -s /usr/local/bin/bash /bin/bash + fi + sudo ./install-deps.sh +fi +rm -rf build && ./do_cmake.sh "$*" \ + -D CMAKE_BUILD_TYPE=Debug \ + -D ENABLE_GIT_VERSION=OFF \ + -D WITH_BLKID=OFF \ + -D WITH_FUSE=OFF \ + -D WITH_RBD=OFF \ + -D WITH_XFS=OFF \ + -D WITH_KVS=OFF \ + -D WITH_MANPAGE=OFF \ + -D WITH_LIBCEPHFS=OFF \ + -D WITH_CEPHFS=OFF \ + -D WITH_RADOSGW=OFF \ + 2>&1 | tee cmake.log + +cd build +gmake -j$NPROC V=1 VERBOSE=1 | tee build.log 2>&1 +gmake -j$NPROC check CEPH_BUFFER_NO_BENCH=yes | tee check.log 2>&1 + -- 2.39.5