build-package: mv termux_setup_ninja to scripts/build/setup
This commit is contained in:
parent
2bd607112b
commit
6888baf268
@ -16,20 +16,7 @@ source scripts/build/setup/termux_setup_golang.sh
|
||||
source scripts/build/setup/termux_setup_rust.sh
|
||||
|
||||
# Utility function to setup a current ninja build system.
|
||||
termux_setup_ninja() {
|
||||
local NINJA_VERSION=1.9.0
|
||||
local NINJA_FOLDER=$TERMUX_COMMON_CACHEDIR/ninja-$NINJA_VERSION
|
||||
if [ ! -x "$NINJA_FOLDER/ninja" ]; then
|
||||
mkdir -p "$NINJA_FOLDER"
|
||||
local NINJA_ZIP_FILE=$TERMUX_PKG_TMPDIR/ninja-$NINJA_VERSION.zip
|
||||
termux_download https://github.com/ninja-build/ninja/releases/download/v$NINJA_VERSION/ninja-linux.zip \
|
||||
"$NINJA_ZIP_FILE" \
|
||||
609cc10d0f226a4d9050e4d4a57be9ea706858cce64b9132102c3789c868da92
|
||||
unzip "$NINJA_ZIP_FILE" -d "$NINJA_FOLDER"
|
||||
chmod 755 $NINJA_FOLDER/ninja
|
||||
fi
|
||||
export PATH=$NINJA_FOLDER:$PATH
|
||||
}
|
||||
source scripts/build/setup/termux_setup_ninja.sh
|
||||
|
||||
# Utility function to setup a current meson build system.
|
||||
termux_setup_meson() {
|
||||
|
14
scripts/build/setup/termux_setup_ninja.sh
Normal file
14
scripts/build/setup/termux_setup_ninja.sh
Normal file
@ -0,0 +1,14 @@
|
||||
termux_setup_ninja() {
|
||||
local NINJA_VERSION=1.9.0
|
||||
local NINJA_FOLDER=$TERMUX_COMMON_CACHEDIR/ninja-$NINJA_VERSION
|
||||
if [ ! -x "$NINJA_FOLDER/ninja" ]; then
|
||||
mkdir -p "$NINJA_FOLDER"
|
||||
local NINJA_ZIP_FILE=$TERMUX_PKG_TMPDIR/ninja-$NINJA_VERSION.zip
|
||||
termux_download https://github.com/ninja-build/ninja/releases/download/v$NINJA_VERSION/ninja-linux.zip \
|
||||
"$NINJA_ZIP_FILE" \
|
||||
609cc10d0f226a4d9050e4d4a57be9ea706858cce64b9132102c3789c868da92
|
||||
unzip "$NINJA_ZIP_FILE" -d "$NINJA_FOLDER"
|
||||
chmod 755 $NINJA_FOLDER/ninja
|
||||
fi
|
||||
export PATH=$NINJA_FOLDER:$PATH
|
||||
}
|
Loading…
Reference in New Issue
Block a user