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 libutils \ 13 libcutils \ 14 liblog \ 15 libloc_pla 16 17LOCAL_SRC_FILES += \ 18 loc_log.cpp \ 19 loc_cfg.cpp \ 20 msg_q.c \ 21 linked_list.c \ 22 loc_target.cpp \ 23 platform_lib_abstractions/elapsed_millis_since_boot.cpp \ 24 LocHeap.cpp \ 25 LocTimer.cpp \ 26 LocThread.cpp \ 27 MsgTask.cpp \ 28 loc_misc_utils.cpp \ 29 loc_nmea.cpp 30 31# Flag -std=c++11 is not accepted by compiler when LOCAL_CLANG is set to true 32LOCAL_CFLAGS += \ 33 -fno-short-enums \ 34 -D_ANDROID_ \ 35 -Wall \ 36 -Werror \ 37 -Wno-macro-redefined \ 38 -Wno-missing-braces \ 39 -Wno-missing-field-initializers \ 40 -Wno-null-conversion \ 41 -Wno-unused-parameter \ 42 -Wno-unused-variable \ 43 44ifeq ($(TARGET_BUILD_VARIANT),user) 45 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 46endif 47 48LOCAL_LDFLAGS += -Wl,--export-dynamic 49 50## Includes 51LOCAL_C_INCLUDES:= \ 52 $(TARGET_OUT_HEADERS)/libloc_pla \ 53 $(TARGET_OUT_HEADERS)/liblocation_api \ 54 55LOCAL_COPY_HEADERS_TO:= gps.utils/ 56LOCAL_COPY_HEADERS:= \ 57 loc_log.h \ 58 loc_cfg.h \ 59 log_util.h \ 60 linked_list.h \ 61 msg_q.h \ 62 MsgTask.h \ 63 LocHeap.h \ 64 LocThread.h \ 65 LocTimer.h \ 66 loc_target.h \ 67 loc_timer.h \ 68 LocSharedLock.h \ 69 loc_misc_utils.h \ 70 loc_nmea.h \ 71 gps_extended_c.h \ 72 gps_extended.h \ 73 loc_gps.h 74 75LOCAL_MODULE := libgps.utils 76LOCAL_VENDOR_MODULE := true 77LOCAL_MODULE_OWNER := qti 78LOCAL_MODULE_TAGS := optional 79 80LOCAL_PRELINK_MODULE := false 81 82include $(BUILD_SHARED_LIBRARY) 83 84include $(addsuffix /Android.mk, $(addprefix $(LOCAL_PATH)/, platform_lib_abstractions)) 85endif # not BUILD_TINY_ANDROID 86endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 87