From ab156e29d58f04ee2d6c95853a071b6fde6012ca Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Fri, 20 Jan 2023 08:53:34 +0900 Subject: [PATCH] termux_step_configure_meson: Allow for debug build --- .../build/configure/termux_step_configure_meson.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/build/configure/termux_step_configure_meson.sh b/scripts/build/configure/termux_step_configure_meson.sh index 9293578a69..43aa502318 100644 --- a/scripts/build/configure/termux_step_configure_meson.sh +++ b/scripts/build/configure/termux_step_configure_meson.sh @@ -1,13 +1,21 @@ termux_step_configure_meson() { termux_setup_meson + + local _meson_buildtype="minsize" + local _meson_stripflag="--strip" + if [ "$TERMUX_DEBUG_BUILD" = "true" ]; then + _meson_buildtype="debug" + _meson_stripflag= + fi + CC=gcc CXX=g++ CFLAGS= CXXFLAGS= CPPFLAGS= LDFLAGS= $TERMUX_MESON \ $TERMUX_PKG_SRCDIR \ $TERMUX_PKG_BUILDDIR \ --cross-file $TERMUX_MESON_CROSSFILE \ --prefix $TERMUX_PREFIX \ --libdir lib \ - --buildtype minsize \ - --strip \ + --buildtype ${_meson_buildtype} \ + ${_meson_stripflag} \ $TERMUX_PKG_EXTRA_CONFIGURE_ARGS \ || (termux_step_configure_meson_failure_hook && false) }