mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-03 11:53:41 +02:00
build.sh: Adding --no-cli,--gui flags
This commit is contained in:
parent
6181af6212
commit
7a8867bb3c
1 changed files with 9 additions and 2 deletions
11
build.sh
11
build.sh
|
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
echo "Usage: ${0##*/} [ -h|--help ] [ -t|--type Debug|Release|RelWithDebInfo|MinSizeRel ] [--pkg-type deb|zip|tgz] [ --disable-threads ] [ --force-ansi ]"
|
echo "Usage: ${0##*/} [ -h|--help ] [ --no-cli ] [ --gui] [ -t|--type Debug|Release|RelWithDebInfo|MinSizeRel ] [--pkg-type deb|zip|tgz] [ --disable-threads ] [ --force-ansi ]"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
options=$(getopt -n "${0##*/}" -o "lht:" -l "help,type:,pkg-type:,disable-threads,force-ansi" -- "$@")
|
options=$(getopt -n "${0##*/}" -o "lht:" -l "help,no-cli,gui,type:,pkg-type:,disable-threads,force-ansi" -- "$@")
|
||||||
|
|
||||||
[ $? -eq 0 ] || usage
|
[ $? -eq 0 ] || usage
|
||||||
|
|
||||||
|
|
@ -33,6 +33,10 @@ while true; do
|
||||||
TARGET="package"
|
TARGET="package"
|
||||||
ARGS="${ARGS} -DCPACK_GENERATOR=${1^^}"
|
ARGS="${ARGS} -DCPACK_GENERATOR=${1^^}"
|
||||||
;;
|
;;
|
||||||
|
--no-cli)
|
||||||
|
ARGS="${ARGS} -DBUILD_COMPONENT_CLI=OFF" ;;
|
||||||
|
--gui)
|
||||||
|
ARGS="${ARGS} -DBUILD_COMPONENT_GUI=ON" ;;
|
||||||
--disable-threads)
|
--disable-threads)
|
||||||
ARGS="${ARGS} -DUSE_THREADS=OFF" ;;
|
ARGS="${ARGS} -DUSE_THREADS=OFF" ;;
|
||||||
--force-ansi)
|
--force-ansi)
|
||||||
|
|
@ -48,6 +52,9 @@ while true; do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Remove cache first
|
||||||
|
rm build/CMakeCache.txt 2> /dev/null
|
||||||
|
|
||||||
cmake -B build $ARGS .
|
cmake -B build $ARGS .
|
||||||
if [ ${ONLY_CONFIG} -eq 0 ]; then
|
if [ ${ONLY_CONFIG} -eq 0 ]; then
|
||||||
cmake --build build --clean-first --target ${TARGET}
|
cmake --build build --clean-first --target ${TARGET}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue