summaryrefslogtreecommitdiff
path: root/build-native.sh
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-05-25 19:15:58 +0200
committerArne Schwabe <arne@rfc2549.org>2013-05-25 19:15:58 +0200
commita5023ab2a6c00fa8ef6dfc6d58329e0886e0e1c1 (patch)
treecd3ca0d293aeeca107be3420c9f4dce9a9674d63 /build-native.sh
parent9ea8c8a18a4e02531df8acb87ad12a578805ee37 (diff)
Allow project to be build with gradle
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