lizardfs/configure
Hazeman 93dccd1f70 cmake: Disable polonaise build
This commit disables compilation of polonaise.

Change-Id: I80df99bc3838c114a77b9e624cec231000c72738
2018-06-28 10:57:41 +02:00

57 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
set -ue
# Parse command line options
doc=YES
uraft=YES
for arg in ${1+"$@"}; do
case "$arg" in
--with-doc) doc=YES;;
--without-doc) doc=NO;;
--with-uraft) uraft=YES;;
--without-uraft) uraft=NO;;
*) echo "Unrecognized command line option '$arg'" >&2; exit 1;;
esac
done
cd "$(dirname "$0")"
mkdir -p build-pack
cd build-pack
rm -f CMakeCache.txt
if [ -z ${LIZARDFS_OFFICIAL_BUILD:-} ]; then
LIZARDFS_OFFICIAL_BUILD=NO
fi
if [ -z ${LIZARDFS_SET_RC_BUILD_NUMBER:-} ]; then
LIZARDFS_SET_RC_BUILD_NUMBER=NO
fi
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTS=NO \
-DCMAKE_INSTALL_PREFIX=/ \
-DENABLE_DEBIAN_PATHS=YES \
-DENABLE_DOCS=$doc \
-DENABLE_OFFICIAL_BUILD=$LIZARDFS_OFFICIAL_BUILD \
-DSET_RC_BUILD_NUMBER=$LIZARDFS_SET_RC_BUILD_NUMBER \
-DENABLE_CLIENT_LIB=YES \
-DENABLE_NFS_GANESHA=YES \
-DENABLE_URAFT=YES \
-DENABLE_POLONAISE=OFF
cat >../Makefile <<END
all:
make -C build-pack all
clean:
make -C build-pack clean
install:
make -C build-pack install
distclean:
rm -rf build-pack
rm -rf external/gtest*
rm -f Makefile
END