1
0
mirror of https://github.com/PurpleI2P/i2pd-android.git synced 2025-01-10 06:48:02 +00:00
i2pd-android/binary/jni/build_debug.sh
nonlin-lin-chaos-order-etc-etal 988940f50a
Try to fix #50 (#76)
* Fix foreground notification
* Trying to fix app quit
* Remove unsupported UI items
* Remove misleading exceptions
* Set Unix exec bit on build scripts
* Revamp processAssets point to be launched
* Corrected logic of daemon status events
* Fix double I2PActivity.onCreate call hangup
* Fix exception processing @ processAssets
2024-07-21 20:44:19 +03:00

24 lines
795 B
Bash
Executable File

export I2PD_DEBUG=1
if [ -z "$ANDROID_NDK_HOME" -a "$ANDROID_NDK_HOME" == "" ]; then
echo -e "\033[31mFailed! ANDROID_NDK_HOME is empty. Run 'export ANDROID_NDK_HOME=[PATH_TO_NDK]'\033[0m"
exit 1
fi
echo Building boost...
./build_boost.sh
echo Building miniupnpc...
./build_miniupnpc.sh
echo Building openssl...
./build_openssl.sh
echo Building i2pd...
pushd .
NDK_MODULE_PATH=`pwd`
cd ..
NDK_PROJECT_PATH=`pwd`
popd
if [ -z "$BUILD_SO" -a "$BUILD_SO" == "" ]; then
export NDK_MODULE_PATH=$NDK_MODULE_PATH && export NDK_PROJECT_PATH=$NDK_PROJECT_PATH && $ANDROID_NDK_HOME/ndk-build V=1 NDK_LOG=1 -j`nproc` NDK_DEBUG=1
else
export NDK_MODULE_PATH=$NDK_MODULE_PATH && export NDK_PROJECT_PATH=$NDK_PROJECT_PATH && ./ndkbuild-wrapper.sh V=1 NDK_LOG=1 -j`nproc` NDK_DEBUG=1
fi
echo "$0 completed."