1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-07-04 12:03:41 +02:00

build.sh: add "-l" option that does not build but list cmake variables.

This commit is contained in:
Henrik Hautakoski 2020-02-06 13:26:19 +01:00
parent 4742096417
commit 677a48f34a

View file

@ -8,12 +8,13 @@ function usage() {
exit 1 exit 1
} }
options=$(getopt -n "${0##*/}" -o ht: --long disable-threads --long force-ansi -- "$@") options=$(getopt -n "${0##*/}" -o lht: --long disable-threads --long force-ansi -- "$@")
[ $? -eq 0 ] || usage [ $? -eq 0 ] || usage
eval set -- "$options" eval set -- "$options"
ONLY_CONFIG=0
ARGS="" ARGS=""
while true; do while true; do
@ -30,6 +31,9 @@ while true; do
ARGS="${ARGS} -DUSE_THREADS=OFF" ;; ARGS="${ARGS} -DUSE_THREADS=OFF" ;;
--force-ansi) --force-ansi)
ARGS="${ARGS} -DFORCE_ANSI=ON" ;; ARGS="${ARGS} -DFORCE_ANSI=ON" ;;
-l)
ARGS="${ARGS} -LH"
ONLY_CONFIG=1 ;;
-h) usage ;; -h) usage ;;
--) shift --) shift
break break
@ -39,6 +43,8 @@ while true; do
done done
cmake $ARGS .. cmake $ARGS ..
make -B if [ ${ONLY_CONFIG} -eq 0 ]; then
make -B
fi
popd > /dev/null popd > /dev/null