From a5023ab2a6c00fa8ef6dfc6d58329e0886e0e1c1 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sat, 25 May 2013 19:15:58 +0200 Subject: Allow project to be build with gradle --- build-native.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'build-native.sh') 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 -- cgit v1.2.3