Android.mk 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. LOCAL_PATH := $(call my-dir)/../../..
  2. include $(CLEAR_VARS)
  3. LOCAL_MODULE := libzrtp
  4. MY_SRC_PATH := src
  5. MY_SRC_FILES := $(MY_SRC_PATH)/zrtp.c \
  6. $(MY_SRC_PATH)/zrtp_crc.c \
  7. $(MY_SRC_PATH)/zrtp_crypto_aes.c \
  8. $(MY_SRC_PATH)/zrtp_crypto_atl.c \
  9. $(MY_SRC_PATH)/zrtp_crypto_hash.c \
  10. $(MY_SRC_PATH)/zrtp_crypto_pk.c \
  11. $(MY_SRC_PATH)/zrtp_crypto_sas.c \
  12. $(MY_SRC_PATH)/zrtp_datatypes.c \
  13. $(MY_SRC_PATH)/zrtp_engine.c \
  14. $(MY_SRC_PATH)/zrtp_engine_driven.c \
  15. $(MY_SRC_PATH)/zrtp_iface_cache.c \
  16. $(MY_SRC_PATH)/zrtp_iface_scheduler.c \
  17. $(MY_SRC_PATH)/zrtp_iface_sys.c \
  18. $(MY_SRC_PATH)/zrtp_initiator.c \
  19. $(MY_SRC_PATH)/zrtp_legal.c \
  20. $(MY_SRC_PATH)/zrtp_list.c \
  21. $(MY_SRC_PATH)/zrtp_log.c \
  22. $(MY_SRC_PATH)/zrtp_pbx.c \
  23. $(MY_SRC_PATH)/zrtp_protocol.c \
  24. $(MY_SRC_PATH)/zrtp_responder.c \
  25. $(MY_SRC_PATH)/zrtp_rng.c \
  26. $(MY_SRC_PATH)/zrtp_srtp_builtin.c \
  27. $(MY_SRC_PATH)/zrtp_srtp_dm.c \
  28. $(MY_SRC_PATH)/zrtp_string.c \
  29. $(MY_SRC_PATH)/zrtp_utils.c \
  30. $(MY_SRC_PATH)/zrtp_utils_proto.c
  31. MY_SRC_FILES += third_party/bgaes/aes_modes.c \
  32. third_party/bgaes/sha2.c \
  33. third_party/bgaes/sha1.c \
  34. third_party/bgaes/aestab.c \
  35. third_party/bgaes/aeskey.c \
  36. third_party/bgaes/aescrypt.c
  37. MY_SRC_FILES += third_party/bnlib/bn.c \
  38. third_party/bnlib/bn32.c \
  39. third_party/bnlib/bninit32.c \
  40. third_party/bnlib/lbn32.c \
  41. third_party/bnlib/lbnmem.c \
  42. third_party/bnlib/legal.c
  43. LOCAL_SRC_FILES := $(MY_SRC_FILES)
  44. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
  45. LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
  46. LOCAL_C_INCLUDES += $(LOCAL_PATH)/third_party/bnlib
  47. LOCAL_C_INCLUDES += $(LOCAL_PATH)/third_party/bgaes
  48. LOCAL_ARM_MODE := arm
  49. LOCAL_CFLAGS := -DANDROID_NDK=5
  50. #include $(BUILD_STATIC_LIBRARY)
  51. include $(BUILD_SHARED_LIBRARY)
  52. #
  53. # Dummy shared library to build libzrtp.a
  54. #
  55. # include $(CLEAR_VARS)
  56. #
  57. # LOCAL_MODULE := libzrtp-dummy
  58. # LOCAL_STATIC_LIBRARIES := libzrtp
  59. #
  60. # include $(BUILD_SHARED_LIBRARY)