Nagram/bin/libs/native.sh
2021-11-17 20:18:05 +08:00

26 lines
555 B
Bash
Executable File

#!/bin/bash
source "bin/init/env.sh"
OUT=TMessagesProj/build/intermediates/stripped_native_libs/miniFoss/out/lib
DIR=TMessagesProj/src/main/libs
export COMPILE_NATIVE=1
./gradlew TMessagesProj:stripMiniFossDebugSymbols || exit 1
function install() {
local ABI="$1"
if [ ! -f $OUT/$ABI/libtmessages*.so ]; then
echo ">> Skip $ABI"
return 0
fi
rm -rf $DIR/$ABI
mkdir -p $DIR/$ABI
cp $OUT/$ABI/libtmessages*.so $DIR/$ABI
echo ">> Install $DIR/$ABI/$(ls $DIR/$ABI)"
}
install armeabi-v7a
install arm64-v8a
install x86
install x86_64