0
0
mirror of https://github.com/schwabe/ics-openvpn.git synced 2024-09-20 03:52:27 +02:00
openvpn-android/misc/build-native.sh
Arne Schwabe f7bcff4ce6 Move build files to misc directory
--HG--
rename : build-native.bat => misc/build-native.bat
rename : build-native.sh => misc/build-native.sh
rename : fetchtranslations.sh => misc/fetchtranslations.sh
2013-05-29 22:05:39 +02:00

22 lines
420 B
Bash
Executable File

ndk-build APP_API=all -j 8
if [ $? = 0 ]; then
rm -rf build/native-libs/
cd libs
mkdir -p ../assets
for i in *
do
cp -v $i/minivpn ../assets/minivpn.$i
done
# Removed compiled openssl libs, will use platform so libs
# Reduces size of apk
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