i2pd/android/jni/Application.mk

42 lines
1.5 KiB
Makefile
Raw Normal View History

2016-07-09 23:54:11 +03:00
#APP_ABI := all
2018-08-14 22:44:08 +03:00
APP_ABI := armeabi-v7a x86
2016-07-10 04:42:42 +03:00
#APP_ABI := x86
2017-08-27 16:16:52 +03:00
#APP_ABI := x86_64
#APP_ABI := armeabi-v7a
2016-07-09 23:54:11 +03:00
#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.
2017-04-22 04:20:22 +03:00
APP_PLATFORM := android-14
2016-07-09 23:54:11 +03:00
# http://stackoverflow.com/a/21386866/529442 http://stackoverflow.com/a/15616255/529442 to enable c++11 support in Eclipse
NDK_TOOLCHAIN_VERSION := 4.9
# APP_STL := stlport_shared --> does not seem to contain C++11 features
APP_STL := gnustl_shared
2017-12-07 16:26:28 +03:00
# Enable c++11 extensions in source code
2016-07-09 23:54:11 +03:00
APP_CPPFLAGS += -std=c++11
2016-07-10 04:42:42 +03:00
APP_CPPFLAGS += -DANDROID -D__ANDROID__ -DUSE_UPNP
2016-07-09 23:54:11 +03:00
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
APP_CPPFLAGS += -DANDROID_ARM7A
endif
# Forcing debug optimization. Use `ndk-build NDK_DEBUG=1` instead.
#APP_OPTIM := debug
2016-07-09 23:54:11 +03:00
# git clone https://github.com/PurpleI2P/Boost-for-Android-Prebuilt.git
# 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
2017-04-22 04:20:22 +03:00
I2PD_LIBS_PATH = /path/to/libraries
2016-07-09 23:54:11 +03:00
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
I2PD_SRC_PATH = $(PWD)/..
LIB_SRC_PATH = $(I2PD_SRC_PATH)/libi2pd
LIB_CLIENT_SRC_PATH = $(I2PD_SRC_PATH)/libi2pd_client
DAEMON_SRC_PATH = $(I2PD_SRC_PATH)/daemon