Browse Source

Call termux_setup_cmake before invoking cmake

This fixes build in an environment (e.g. the Docker image) without
cmake installed.
android-5
Fredrik Fornwall 8 years ago
parent
commit
320bee67d1
  1. 1
      packages/clang/build.sh
  2. 2
      packages/neovim/build.sh

1
packages/clang/build.sh

@ -42,6 +42,7 @@ termux_step_post_extract_package () {
} }
termux_step_host_build () { termux_step_host_build () {
termux_setup_cmake
cmake -G "Unix Makefiles" $TERMUX_PKG_SRCDIR \ cmake -G "Unix Makefiles" $TERMUX_PKG_SRCDIR \
-DLLVM_BUILD_TESTS=OFF \ -DLLVM_BUILD_TESTS=OFF \
-DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_TESTS=OFF

2
packages/neovim/build.sh

@ -10,6 +10,8 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DENABLE_JEMALLOC=OFF -DGPERF_PRG=$TERMUX_PKG_H
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLUA_PRG=$TERMUX_PKG_HOSTBUILD_DIR/deps/usr/bin/luajit" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLUA_PRG=$TERMUX_PKG_HOSTBUILD_DIR/deps/usr/bin/luajit"
termux_step_host_build () { termux_step_host_build () {
termux_setup_cmake
mkdir -p $TERMUX_PKG_HOSTBUILD_DIR/deps mkdir -p $TERMUX_PKG_HOSTBUILD_DIR/deps
cd $TERMUX_PKG_HOSTBUILD_DIR/deps cd $TERMUX_PKG_HOSTBUILD_DIR/deps
cmake $TERMUX_PKG_SRCDIR/third-party cmake $TERMUX_PKG_SRCDIR/third-party

Loading…
Cancel
Save