termux_step_configure_meson: Allow for debug build
This commit is contained in:
parent
67ad5da810
commit
ab156e29d5
|
@ -1,13 +1,21 @@
|
||||||
termux_step_configure_meson() {
|
termux_step_configure_meson() {
|
||||||
termux_setup_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 \
|
CC=gcc CXX=g++ CFLAGS= CXXFLAGS= CPPFLAGS= LDFLAGS= $TERMUX_MESON \
|
||||||
$TERMUX_PKG_SRCDIR \
|
$TERMUX_PKG_SRCDIR \
|
||||||
$TERMUX_PKG_BUILDDIR \
|
$TERMUX_PKG_BUILDDIR \
|
||||||
--cross-file $TERMUX_MESON_CROSSFILE \
|
--cross-file $TERMUX_MESON_CROSSFILE \
|
||||||
--prefix $TERMUX_PREFIX \
|
--prefix $TERMUX_PREFIX \
|
||||||
--libdir lib \
|
--libdir lib \
|
||||||
--buildtype minsize \
|
--buildtype ${_meson_buildtype} \
|
||||||
--strip \
|
${_meson_stripflag} \
|
||||||
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS \
|
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS \
|
||||||
|| (termux_step_configure_meson_failure_hook && false)
|
|| (termux_step_configure_meson_failure_hook && false)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue