1
0
mirror of https://github.com/PurpleI2P/i2pd-android.git synced 2025-01-10 06:48:02 +00:00
i2pd-android/binary/jni/ndkbuild-wrapper.sh

17 lines
345 B
Bash
Raw Normal View History

#!/usr/bin/env bash
cd $NDK_PROJECT_PATH/jni
$ANDROID_NDK_HOME/ndk-build $*
# if it doesn't exist, then create
if [ ! -d $NDK_PROJECT_PATH/libs ]; then mkdir $NDK_PROJECT_PATH/libs; fi
cd $NDK_PROJECT_PATH/libs
for f in $(ls .);
do
if [ -z "$I2PD_DEBUG" -a "$I2PD_DEBUG" == "" ]; then
strip $f/i2pd
fi
mv $f/i2pd $f/libi2pd.so
done