1 ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) 2 ifneq ($(BUILD_TINY_ANDROID),true) 3 #Compile this library only for builds with the latest modem image 4 5 LOCAL_PATH := $(call my-dir) 6 7 include $(CLEAR_VARS) 8 9 ## Libs 10 LOCAL_SHARED_LIBRARIES := \ 11 libutils \ 12 libcutils \ 13 liblog 14 15 LOCAL_SRC_FILES += \ 16 loc_log.cpp \ 17 loc_cfg.cpp \ 18 msg_q.c \ 19 linked_list.c \ 20 loc_target.cpp \ 21 platform_lib_abstractions/elapsed_millis_since_boot.cpp \ 22 LocHeap.cpp \ 23 LocTimer.cpp \ 24 LocThread.cpp \ 25 MsgTask.cpp \ 26 loc_misc_utils.cpp 27 28 LOCAL_CFLAGS += \ 29 -fno-short-enums \ 30 -D_ANDROID_ 31 32 ifeq ($(TARGET_BUILD_VARIANT),user) 33 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 34 endif 35 36 LOCAL_LDFLAGS += -Wl,--export-dynamic 37 38 ## Includes 39 LOCAL_C_INCLUDES:= \ 40 $(LOCAL_PATH)/platform_lib_abstractions 41 42 LOCAL_COPY_HEADERS_TO:= gps.utils/ 43 LOCAL_COPY_HEADERS:= \ 44 loc_log.h \ 45 loc_cfg.h \ 46 log_util.h \ 47 linked_list.h \ 48 msg_q.h \ 49 MsgTask.h \ 50 LocHeap.h \ 51 LocThread.h \ 52 LocTimer.h \ 53 loc_target.h \ 54 loc_timer.h \ 55 LocSharedLock.h \ 56 platform_lib_abstractions/platform_lib_includes.h \ 57 platform_lib_abstractions/platform_lib_time.h \ 58 platform_lib_abstractions/platform_lib_macros.h \ 59 loc_misc_utils.h 60 61 LOCAL_MODULE := libgps.utils 62 63 LOCAL_MODULE_TAGS := optional 64 65 LOCAL_PRELINK_MODULE := false 66 67 include $(BUILD_SHARED_LIBRARY) 68 endif # not BUILD_TINY_ANDROID 69 endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 70