1ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) 2ifneq ($(BUILD_TINY_ANDROID),true) 3#Compile this library only for builds with the latest modem image 4 5LOCAL_PATH := $(call my-dir) 6 7include $(CLEAR_VARS) 8 9 10## Libs 11LOCAL_SHARED_LIBRARIES := \ 12 libdl \ 13 libutils \ 14 libcutils \ 15 liblog \ 16 libprocessgroup 17 18LOCAL_SRC_FILES += \ 19 loc_log.cpp \ 20 loc_cfg.cpp \ 21 msg_q.c \ 22 linked_list.c \ 23 loc_target.cpp \ 24 LocHeap.cpp \ 25 LocTimer.cpp \ 26 LocThread.cpp \ 27 MsgTask.cpp \ 28 loc_misc_utils.cpp \ 29 loc_nmea.cpp \ 30 LocIpc.cpp 31 32# Flag -std=c++11 is not accepted by compiler when LOCAL_CLANG is set to true 33LOCAL_CFLAGS += \ 34 -fno-short-enums \ 35 -D_ANDROID_ 36 37ifeq ($(TARGET_BUILD_VARIANT),user) 38 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 39endif 40 41LOCAL_LDFLAGS += -Wl,--export-dynamic 42 43## Includes 44LOCAL_HEADER_LIBRARIES := \ 45 libutils_headers \ 46 libloc_pla_headers \ 47 liblocation_api_headers 48 49LOCAL_MODULE := libgps.utils 50LOCAL_VENDOR_MODULE := true 51LOCAL_MODULE_TAGS := optional 52 53LOCAL_PRELINK_MODULE := false 54 55LOCAL_CFLAGS += $(GNSS_CFLAGS) 56 57include $(BUILD_SHARED_LIBRARY) 58 59include $(CLEAR_VARS) 60LOCAL_MODULE := libgps.utils_headers 61LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 62include $(BUILD_HEADER_LIBRARY) 63 64endif # not BUILD_TINY_ANDROID 65endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 66