add quiet build option for ci builds (#1634)

* add quiet build options for ci builds

need to find ways to reduce length of log output

* Update build-package.sh

* make quiet builds recursive
This commit is contained in:
Stephen 2017-10-08 13:04:49 -07:00 committed by Fredrik Fornwall
parent 281d17c6f5
commit d3e6fc87d2

View File

@ -185,22 +185,24 @@ termux_step_handle_arguments() {
# Handle command-line arguments: # Handle command-line arguments:
_show_usage () { _show_usage () {
echo "Usage: ./build-package.sh [-a ARCH] [-d] [-D] PACKAGE" echo "Usage: ./build-package.sh [-a ARCH] [-d] [-D] [-f] [-q] [-s] PACKAGE"
echo "Build a package by creating a .deb file in the debs/ folder." echo "Build a package by creating a .deb file in the debs/ folder."
echo " -a The architecture to build for: aarch64(default), arm, i686, x86_64 or all." echo " -a The architecture to build for: aarch64(default), arm, i686, x86_64 or all."
echo " -d Build with debug symbols." echo " -d Build with debug symbols."
echo " -D Build a disabled package in disabled-packages/." echo " -D Build a disabled package in disabled-packages/."
echo " -f Force build even if package has already been built." echo " -f Force build even if package has already been built."
echo " -q Quiet build"
echo " -s Skip dependency check." echo " -s Skip dependency check."
exit 1 exit 1
} }
while getopts :a:hdDfs option; do while getopts :a:hdDfqs option; do
case "$option" in case "$option" in
a) TERMUX_ARCH="$OPTARG";; a) TERMUX_ARCH="$OPTARG";;
h) _show_usage;; h) _show_usage;;
d) TERMUX_DEBUG=true;; d) TERMUX_DEBUG=true;;
D) local TERMUX_IS_DISABLED=true;; D) local TERMUX_IS_DISABLED=true;;
f) TERMUX_FORCE_BUILD=true;; f) TERMUX_FORCE_BUILD=true;;
q) export TERMUX_QUIET_BUILD=true;;
s) export TERMUX_SKIP_DEPCHECK=true;; s) export TERMUX_SKIP_DEPCHECK=true;;
?) termux_error_exit "./build-package.sh: illegal option -$OPTARG";; ?) termux_error_exit "./build-package.sh: illegal option -$OPTARG";;
esac esac
@ -793,6 +795,10 @@ termux_step_configure_autotools () {
if [ "$TERMUX_PKG_EXTRA_CONFIGURE_ARGS" != "${TERMUX_PKG_EXTRA_CONFIGURE_ARGS/--libexecdir=/}" ]; then if [ "$TERMUX_PKG_EXTRA_CONFIGURE_ARGS" != "${TERMUX_PKG_EXTRA_CONFIGURE_ARGS/--libexecdir=/}" ]; then
LIBEXEC_FLAG="" LIBEXEC_FLAG=""
fi fi
QUIET_BUILD=
if [ ! -z ${TERMUX_QUIET_BUILD+x} ]; then
QUIET_BUILD="--enable-silent-rules"
fi
# Some packages provides a $PKG-config script which some configure scripts pickup instead of pkg-config: # Some packages provides a $PKG-config script which some configure scripts pickup instead of pkg-config:
mkdir "$TERMUX_PKG_TMPDIR/config-scripts" mkdir "$TERMUX_PKG_TMPDIR/config-scripts"
@ -861,7 +867,8 @@ termux_step_configure_autotools () {
$DISABLE_NLS \ $DISABLE_NLS \
$ENABLE_SHARED \ $ENABLE_SHARED \
$DISABLE_STATIC \ $DISABLE_STATIC \
$LIBEXEC_FLAG $LIBEXEC_FLAG \
$QUIET_BUILD
} }
termux_step_configure_cmake () { termux_step_configure_cmake () {