mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-04 12:03:41 +02:00
build.sh: adding --cli and --no-gui flags to compliment --no-cli and --gui
This commit is contained in:
parent
9e048c7175
commit
0cb00ae734
1 changed files with 6 additions and 2 deletions
8
build.sh
8
build.sh
|
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
echo "Usage: ${0##*/} [ -h|--help ] [ --no-cli ] [ --gui] [ -t|--type Debug|Release|RelWithDebInfo|MinSizeRel ] [--pkg-type nsis|deb|zip|tgz] [ --disable-threads ] [ --force-ansi ]"
|
echo "Usage: ${0##*/} [ -h|--help ] [ --cli|--no-cli ] [ --gui|--no-gui] [ -t|--type Debug|Release|RelWithDebInfo|MinSizeRel ] [--pkg-type nsis|deb|zip|tgz] [ --disable-threads ] [ --force-ansi ]"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
options=$(getopt -n "${0##*/}" -o "lht:" -l "help,no-cli,gui,type:,pkg-type:,disable-threads,force-ansi" -- "$@")
|
options=$(getopt -n "${0##*/}" -o "lht:" -l "help,cli,no-cli,gui,no-gui,type:,pkg-type:,disable-threads,force-ansi" -- "$@")
|
||||||
|
|
||||||
[ $? -eq 0 ] || usage
|
[ $? -eq 0 ] || usage
|
||||||
|
|
||||||
|
|
@ -33,10 +33,14 @@ while true; do
|
||||||
TARGET="package"
|
TARGET="package"
|
||||||
ARGS="${ARGS} -DCPACK_GENERATOR=${1^^}"
|
ARGS="${ARGS} -DCPACK_GENERATOR=${1^^}"
|
||||||
;;
|
;;
|
||||||
|
--cli)
|
||||||
|
ARGS="${ARGS} -DCOMPONENT_CLI=ON" ;;
|
||||||
--no-cli)
|
--no-cli)
|
||||||
ARGS="${ARGS} -DCOMPONENT_CLI=OFF" ;;
|
ARGS="${ARGS} -DCOMPONENT_CLI=OFF" ;;
|
||||||
--gui)
|
--gui)
|
||||||
ARGS="${ARGS} -DCOMPONENT_GUI=ON" ;;
|
ARGS="${ARGS} -DCOMPONENT_GUI=ON" ;;
|
||||||
|
--no-gui)
|
||||||
|
ARGS="${ARGS} -DCOMPONENT_GUI=OFF" ;;
|
||||||
--disable-threads)
|
--disable-threads)
|
||||||
ARGS="${ARGS} -DUSE_THREADS=OFF" ;;
|
ARGS="${ARGS} -DUSE_THREADS=OFF" ;;
|
||||||
--force-ansi)
|
--force-ansi)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue