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:
parent
4742096417
commit
677a48f34a
1 changed files with 8 additions and 2 deletions
8
build.sh
8
build.sh
|
|
@ -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 ..
|
||||||
|
if [ ${ONLY_CONFIG} -eq 0 ]; then
|
||||||
make -B
|
make -B
|
||||||
|
fi
|
||||||
|
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue