mirror of
https://github.com/PurpleI2P/i2pd-android.git
synced 2025-01-10 06:48:02 +00:00
17 lines
345 B
Bash
17 lines
345 B
Bash
|
#!/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
|