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.

Android.mk 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. ifneq ($(BUILD_TINY_ANDROID),true)
  2. #Compile this library only for builds with the latest modem image
  3. LOCAL_PATH := $(call my-dir)
  4. include $(CLEAR_VARS)
  5. LOCAL_MODULE := libloc_eng
  6. LOCAL_MODULE_OWNER := qcom
  7. LOCAL_MODULE_TAGS := optional
  8. LOCAL_SHARED_LIBRARIES := \
  9. libutils \
  10. libcutils \
  11. libdl \
  12. liblog \
  13. libloc_core \
  14. libgps.utils \
  15. libprocessgroup
  16. LOCAL_SRC_FILES += \
  17. loc_eng.cpp \
  18. loc_eng_agps.cpp \
  19. loc_eng_xtra.cpp \
  20. loc_eng_ni.cpp \
  21. loc_eng_log.cpp \
  22. loc_eng_nmea.cpp \
  23. LocEngAdapter.cpp
  24. LOCAL_SRC_FILES += \
  25. loc_eng_dmn_conn.cpp \
  26. loc_eng_dmn_conn_handler.cpp \
  27. loc_eng_dmn_conn_thread_helper.c \
  28. loc_eng_dmn_conn_glue_msg.c \
  29. loc_eng_dmn_conn_glue_pipe.c
  30. LOCAL_CFLAGS += \
  31. -fno-short-enums \
  32. -D_ANDROID_
  33. ifeq ($(QCPATH),)
  34. LOCAL_CFLAGS += -DOSS_BUILD
  35. endif
  36. LOCAL_C_INCLUDES:= \
  37. $(TARGET_OUT_HEADERS)/gps.utils \
  38. $(TARGET_OUT_HEADERS)/libloc_core \
  39. $(LOCAL_PATH) \
  40. $(TARGET_OUT_HEADERS)/libflp
  41. LOCAL_COPY_HEADERS_TO:= libloc_eng/
  42. LOCAL_COPY_HEADERS:= \
  43. LocEngAdapter.h \
  44. loc.h \
  45. loc_eng.h \
  46. loc_eng_xtra.h \
  47. loc_eng_ni.h \
  48. loc_eng_agps.h \
  49. loc_eng_msg.h \
  50. loc_eng_log.h
  51. LOCAL_PRELINK_MODULE := false
  52. include $(BUILD_SHARED_LIBRARY)
  53. include $(CLEAR_VARS)
  54. LOCAL_MODULE := gps.$(TARGET_BOARD_PLATFORM)
  55. LOCAL_MODULE_OWNER := qcom
  56. LOCAL_MODULE_TAGS := optional
  57. ## Libs
  58. LOCAL_SHARED_LIBRARIES := \
  59. libutils \
  60. libcutils \
  61. liblog \
  62. libloc_eng \
  63. libloc_core \
  64. libgps.utils \
  65. libdl \
  66. libprocessgroup
  67. ifneq ($(filter $(TARGET_DEVICE), apq8084 msm8960), false)
  68. endif
  69. LOCAL_SRC_FILES += \
  70. loc.cpp \
  71. gps.c
  72. LOCAL_CFLAGS += \
  73. -fno-short-enums \
  74. -D_ANDROID_ \
  75. ifeq ($(TARGET_BUILD_VARIANT),user)
  76. LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER
  77. endif
  78. ifeq ($(TARGET_USES_QCOM_BSP), true)
  79. LOCAL_CFLAGS += -DTARGET_USES_QCOM_BSP
  80. endif
  81. ifeq ($(QCPATH),)
  82. LOCAL_CFLAGS += -DOSS_BUILD
  83. endif
  84. ## Includes
  85. LOCAL_C_INCLUDES:= \
  86. $(TARGET_OUT_HEADERS)/gps.utils \
  87. $(TARGET_OUT_HEADERS)/libloc_core \
  88. $(TARGET_OUT_HEADERS)/libflp
  89. LOCAL_PRELINK_MODULE := false
  90. LOCAL_MODULE_RELATIVE_PATH := hw
  91. include $(BUILD_SHARED_LIBRARY)
  92. endif # not BUILD_TINY_ANDROID