Android.mk 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. LOCAL_PATH := $(call my-dir)
  2. include $(CLEAR_VARS)
  3. LOCAL_MODULE := i2pd
  4. LOCAL_CPP_FEATURES := rtti exceptions
  5. LOCAL_C_INCLUDES += $(IFADDRS_PATH) $(LIB_SRC_PATH) $(LIB_CLIENT_SRC_PATH) $(DAEMON_SRC_PATH)
  6. LOCAL_STATIC_LIBRARIES := \
  7. boost_system \
  8. boost_date_time \
  9. boost_filesystem \
  10. boost_program_options \
  11. crypto ssl \
  12. miniupnpc
  13. LOCAL_LDLIBS := -lz
  14. LOCAL_SRC_FILES := DaemonAndroid.cpp i2pd_android.cpp $(IFADDRS_PATH)/ifaddrs.c \
  15. $(wildcard $(LIB_SRC_PATH)/*.cpp)\
  16. $(wildcard $(LIB_CLIENT_SRC_PATH)/*.cpp)\
  17. $(DAEMON_SRC_PATH)/Daemon.cpp \
  18. $(DAEMON_SRC_PATH)/UPnP.cpp \
  19. $(DAEMON_SRC_PATH)/HTTPServer.cpp \
  20. $(DAEMON_SRC_PATH)/I2PControl.cpp
  21. include $(BUILD_SHARED_LIBRARY)
  22. LOCAL_PATH := $(call my-dir)
  23. include $(CLEAR_VARS)
  24. LOCAL_MODULE := boost_system
  25. LOCAL_SRC_FILES := $(BOOST_PATH)/boost_1_68_0-clang/$(TARGET_ARCH_ABI)/lib/libboost_system.a
  26. LOCAL_EXPORT_C_INCLUDES := $(BOOST_PATH)/boost_1_68_0-clang/include
  27. include $(PREBUILT_STATIC_LIBRARY)
  28. LOCAL_PATH := $(call my-dir)
  29. include $(CLEAR_VARS)
  30. LOCAL_MODULE := boost_date_time
  31. LOCAL_SRC_FILES := $(BOOST_PATH)/boost_1_68_0-clang/$(TARGET_ARCH_ABI)/lib/libboost_date_time.a
  32. LOCAL_EXPORT_C_INCLUDES := $(BOOST_PATH)/boost_1_68_0-clang/include
  33. include $(PREBUILT_STATIC_LIBRARY)
  34. LOCAL_PATH := $(call my-dir)
  35. include $(CLEAR_VARS)
  36. LOCAL_MODULE := boost_filesystem
  37. LOCAL_SRC_FILES := $(BOOST_PATH)/boost_1_68_0-clang/$(TARGET_ARCH_ABI)/lib/libboost_filesystem.a
  38. LOCAL_EXPORT_C_INCLUDES := $(BOOST_PATH)/boost_1_68_0-clang/include
  39. include $(PREBUILT_STATIC_LIBRARY)
  40. LOCAL_PATH := $(call my-dir)
  41. include $(CLEAR_VARS)
  42. LOCAL_MODULE := boost_program_options
  43. LOCAL_SRC_FILES := $(BOOST_PATH)/boost_1_68_0-clang/$(TARGET_ARCH_ABI)/lib/libboost_program_options.a
  44. LOCAL_EXPORT_C_INCLUDES := $(BOOST_PATH)/boost_1_68_0-clang/include
  45. include $(PREBUILT_STATIC_LIBRARY)
  46. LOCAL_PATH := $(call my-dir)
  47. include $(CLEAR_VARS)
  48. LOCAL_MODULE := crypto
  49. LOCAL_SRC_FILES := $(OPENSSL_PATH)/openssl-1.1.1a-clang/$(TARGET_ARCH_ABI)/lib/libcrypto.a
  50. LOCAL_EXPORT_C_INCLUDES := $(OPENSSL_PATH)/openssl-1.1.1a-clang/include
  51. include $(PREBUILT_STATIC_LIBRARY)
  52. LOCAL_PATH := $(call my-dir)
  53. include $(CLEAR_VARS)
  54. LOCAL_MODULE := ssl
  55. LOCAL_SRC_FILES := $(OPENSSL_PATH)/openssl-1.1.1a-clang/$(TARGET_ARCH_ABI)/lib/libssl.a
  56. LOCAL_EXPORT_C_INCLUDES := $(OPENSSL_PATH)/openssl-1.1.1a-clang/include
  57. LOCAL_STATIC_LIBRARIES := crypto
  58. include $(PREBUILT_STATIC_LIBRARY)
  59. LOCAL_PATH := $(call my-dir)
  60. include $(CLEAR_VARS)
  61. LOCAL_MODULE := miniupnpc
  62. LOCAL_SRC_FILES := $(MINIUPNP_PATH)/miniupnpc-2.1/$(TARGET_ARCH_ABI)/lib/libminiupnpc.a
  63. LOCAL_EXPORT_C_INCLUDES := $(MINIUPNP_PATH)/miniupnpc-2.1/include
  64. include $(PREBUILT_STATIC_LIBRARY)