Nagram/bin/libs/native.sh

25 lines
531 B
Bash
Raw Normal View History

2021-01-16 16:25:30 +00:00
#!/bin/bash
source "bin/init/env.sh"
2021-02-28 13:11:13 +00:00
2021-03-31 19:29:44 +00:00
OUT=TMessagesProj/build/intermediates/stripped_native_libs/miniFoss/out/lib
2021-01-16 16:25:30 +00:00
DIR=TMessagesProj/src/main/libs
2021-03-31 19:29:44 +00:00
./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