mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-16 03:44:56 +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
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -33,10 +33,14 @@ while true; do
|
|||
TARGET="package"
|
||||
ARGS="${ARGS} -DCPACK_GENERATOR=${1^^}"
|
||||
;;
|
||||
--cli)
|
||||
ARGS="${ARGS} -DCOMPONENT_CLI=ON" ;;
|
||||
--no-cli)
|
||||
ARGS="${ARGS} -DCOMPONENT_CLI=OFF" ;;
|
||||
--gui)
|
||||
ARGS="${ARGS} -DCOMPONENT_GUI=ON" ;;
|
||||
--no-gui)
|
||||
ARGS="${ARGS} -DCOMPONENT_GUI=OFF" ;;
|
||||
--disable-threads)
|
||||
ARGS="${ARGS} -DUSE_THREADS=OFF" ;;
|
||||
--force-ansi)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue