2019-02-27 19:49:12 +01:00
|
|
|
termux_step_configure() {
|
2019-08-14 19:29:58 +02:00
|
|
|
[ "$TERMUX_PKG_METAPACKAGE" = "true" ] && return
|
|
|
|
|
2019-08-12 23:16:07 +02:00
|
|
|
if [ "$TERMUX_PKG_FORCE_CMAKE" = "false" ] && [ -f "$TERMUX_PKG_SRCDIR/configure" ]; then
|
2021-08-21 18:08:57 +02:00
|
|
|
if [ "$TERMUX_CONTINUE_BUILD" == "true" ]; then
|
|
|
|
return;
|
|
|
|
fi
|
2019-02-27 19:49:12 +01:00
|
|
|
termux_step_configure_autotools
|
2021-08-21 18:08:57 +02:00
|
|
|
elif [ "$TERMUX_PKG_FORCE_CMAKE" = "true" ] || [ -f "$TERMUX_PKG_SRCDIR/CMakeLists.txt" ]; then
|
2021-08-22 12:48:47 +02:00
|
|
|
termux_setup_cmake
|
|
|
|
if [ "$TERMUX_CMAKE_BUILD" = Ninja ]; then
|
|
|
|
termux_setup_ninja
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Some packages, for example swift, uses cmake
|
|
|
|
# internally, but cannot be configured with our
|
|
|
|
# termux_step_configure_cmake function (CMakeLists.txt
|
|
|
|
# is not in src dir)
|
|
|
|
if [ -f "$TERMUX_PKG_SRCDIR/CMakeLists.txt" ] && \
|
|
|
|
[ "$TERMUX_CONTINUE_BUILD" == "false" ]; then
|
|
|
|
termux_step_configure_cmake
|
2021-08-21 18:08:57 +02:00
|
|
|
fi
|
2019-02-27 19:49:12 +01:00
|
|
|
elif [ -f "$TERMUX_PKG_SRCDIR/meson.build" ]; then
|
2021-08-21 18:08:57 +02:00
|
|
|
if [ "$TERMUX_CONTINUE_BUILD" == "true" ]; then
|
|
|
|
return;
|
|
|
|
fi
|
2019-02-27 19:49:12 +01:00
|
|
|
termux_step_configure_meson
|
|
|
|
fi
|
|
|
|
}
|