]>
git.proxmox.com Git - ceph.git/blob - ceph/do_cmake.sh
5 git submodule update
--init --recursive
11 if [ -e $BUILD_DIR ]; then
12 echo "'$BUILD_DIR' dir already exists; either rm -rf '$BUILD_DIR' and re-run, or set BUILD_DIR env var to a different directory name"
18 if [ -r /etc
/os-release
]; then
19 source /etc
/os-release
22 if [ "$VERSION_ID" -ge "35" ] ; then
24 elif [ "$VERSION_ID" -ge "33" ] ; then
26 elif [ "$VERSION_ID" -ge "32" ] ; then
33 MAJOR_VER
=$
(echo "$VERSION_ID" |
sed -e 's/\..*$//')
34 if [ "$MAJOR_VER" -ge "9" ] ; then
36 elif [ "$MAJOR_VER" -ge "8" ] ; then
42 ARGS
+=" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF"
43 ARGS
+=" -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF"
46 elif [ "$(uname)" == FreeBSD
] ; then
48 ARGS
+=" -DWITH_RADOSGW_AMQP_ENDPOINT=OFF"
49 ARGS
+=" -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF"
55 ARGS
+=" -DWITH_PYTHON3=${PYBUILD}"
57 if type ccache
> /dev
/null
2>&1 ; then
58 echo "enabling ccache"
59 ARGS
+=" -DWITH_CCACHE=ON"
64 if type cmake3
> /dev
/null
2>&1 ; then
69 ${CMAKE} $ARGS "$@" $CEPH_GIT_DIR ||
exit 1
72 # minimal config to find plugins
76 erasure code dir = lib
81 if [[ ! "$ARGS $@" =~
"-DCMAKE_BUILD_TYPE" ]]; then
85 WARNING: do_cmake.sh now creates debug builds by default. Performance
86 may be severely affected. Please use -DCMAKE_BUILD_TYPE=RelWithDebInfo
87 if a performance sensitive build is required.