summaryrefslogtreecommitdiffstats
path: root/do_freebsd-cmake.sh
blob: c520586a769eaab562e8d23868d8196426f72e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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