mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
6 years ago
|
APP_ABI := all
|
||
|
#APP_ABI += x86
|
||
|
#APP_ABI += x86_64
|
||
|
#APP_ABI += armeabi-v7a
|
||
|
#APP_ABI += arm64-v8a
|
||
7 years ago
|
#can be android-3 but will fail for x86 since arch-x86 is not present at ndkroot/platforms/android-3/ . libz is taken from there.
|
||
|
APP_PLATFORM := android-14
|
||
|
|
||
6 years ago
|
NDK_TOOLCHAIN_VERSION := clang
|
||
|
APP_STL := c++_static
|
||
7 years ago
|
|
||
5 years ago
|
# Enable c++17 extensions in source code
|
||
|
APP_CPPFLAGS += -std=c++17 -fvisibility=default -fPIE
|
||
7 years ago
|
|
||
7 years ago
|
APP_CPPFLAGS += -DANDROID_BINARY -DANDROID -D__ANDROID__ -DUSE_UPNP
|
||
7 years ago
|
APP_LDFLAGS += -rdynamic -fPIE -pie
|
||
|
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||
|
APP_CPPFLAGS += -DANDROID_ARM7A
|
||
|
endif
|
||
|
|
||
7 years ago
|
# Forcing debug optimization. Use `ndk-build NDK_DEBUG=1` instead.
|
||
|
#APP_OPTIM := debug
|
||
7 years ago
|
|
||
5 years ago
|
# git clone https://github.com/PurpleI2P/Boost-for-Android-Prebuilt.git -b boost-1_72_0
|
||
7 years ago
|
# git clone https://github.com/PurpleI2P/OpenSSL-for-Android-Prebuilt.git
|
||
|
# git clone https://github.com/PurpleI2P/MiniUPnP-for-Android-Prebuilt.git
|
||
|
# git clone https://github.com/PurpleI2P/android-ifaddrs.git
|
||
|
# change to your own
|
||
7 years ago
|
I2PD_LIBS_PATH = /path/to/libraries
|
||
7 years ago
|
BOOST_PATH = $(I2PD_LIBS_PATH)/Boost-for-Android-Prebuilt
|
||
|
OPENSSL_PATH = $(I2PD_LIBS_PATH)/OpenSSL-for-Android-Prebuilt
|
||
|
MINIUPNP_PATH = $(I2PD_LIBS_PATH)/MiniUPnP-for-Android-Prebuilt
|
||
|
IFADDRS_PATH = $(I2PD_LIBS_PATH)/android-ifaddrs
|
||
|
|
||
|
# don't change me
|
||
4 years ago
|
I2PD_SRC_PATH = $(PWD)/../..
|
||
7 years ago
|
|
||
|
LIB_SRC_PATH = $(I2PD_SRC_PATH)/libi2pd
|
||
|
LIB_CLIENT_SRC_PATH = $(I2PD_SRC_PATH)/libi2pd_client
|
||
|
DAEMON_SRC_PATH = $(I2PD_SRC_PATH)/daemon
|