summaryrefslogtreecommitdiff
path: root/build-native.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-native.sh')
-rwxr-xr-xbuild-native.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/build-native.sh b/build-native.sh
index 4e93e928..72ecd1cb 100755
--- a/build-native.sh
+++ b/build-native.sh
@@ -1,5 +1,7 @@
ndk-build APP_API=all -j 8
if [ $? = 0 ]; then
+ rm -rf build/native-libs/
+
cd libs
mkdir -p ../assets
for i in *
@@ -8,5 +10,12 @@ if [ $? = 0 ]; then
done
# Removed compiled openssl libs, will use platform so libs
# Reduces size of apk
- rm -v */libcrypto.so */libssl.so
+ rm -v */libcrypto.so */libssl.so
+
+ for arch in *
+ do
+ builddir=../build/native-libs/$arch
+ mkdir -p $builddir
+ cp -v $arch/*.so $builddir
+ done
fi