mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 08:18:54 +00:00
This commit fixes the following warning with meson newer than 0.64.0 version. WARNING: Running the setup command as `meson [options]' instead of `meson setup [options]' is ambiguous and deprecated.
27 lines
720 B
Bash
27 lines
720 B
Bash
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 \
|
|
setup \
|
|
$TERMUX_PKG_SRCDIR \
|
|
$TERMUX_PKG_BUILDDIR \
|
|
--$(test "${TERMUX_PKG_MESON_NATIVE}" = "true" && echo "native-file" || echo "cross-file") $TERMUX_MESON_CROSSFILE \
|
|
--prefix $TERMUX_PREFIX \
|
|
--libdir lib \
|
|
--buildtype ${_meson_buildtype} \
|
|
${_meson_stripflag} \
|
|
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS \
|
|
|| (termux_step_configure_meson_failure_hook && false)
|
|
}
|
|
|
|
termux_step_configure_meson_failure_hook() {
|
|
false
|
|
}
|