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## Libs 10LOCAL_SHARED_LIBRARIES := \ 11 libutils \ 12 libcutils \ 13 liblog 14 15LOCAL_SRC_FILES += \ 16 loc_log.cpp \ 17 loc_cfg.cpp \ 18 msg_q.c \ 19 linked_list.c \ 20 loc_target.cpp \ 21 loc_timer.c \ 22 ../platform_lib_abstractions/elapsed_millis_since_boot.cpp \ 23 loc_misc_utils.cpp 24 25LOCAL_CFLAGS += \ 26 -fno-short-enums \ 27 -D_ANDROID_ 28 29ifeq ($(TARGET_BUILD_VARIANT),user) 30 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 31endif 32 33LOCAL_LDFLAGS += -Wl,--export-dynamic 34 35## Includes 36LOCAL_C_INCLUDES:= \ 37 $(LOCAL_PATH)/../platform_lib_abstractions 38 39LOCAL_COPY_HEADERS_TO:= gps.utils/ 40LOCAL_COPY_HEADERS:= \ 41 loc_log.h \ 42 loc_cfg.h \ 43 log_util.h \ 44 linked_list.h \ 45 msg_q.h \ 46 loc_target.h \ 47 loc_timer.h \ 48 ../platform_lib_abstractions/platform_lib_includes.h \ 49 ../platform_lib_abstractions/platform_lib_time.h \ 50 ../platform_lib_abstractions/platform_lib_macros.h \ 51 loc_misc_utils.h 52 53LOCAL_MODULE := libgps.utils 54 55LOCAL_MODULE_TAGS := optional 56 57LOCAL_PRELINK_MODULE := false 58 59include $(BUILD_SHARED_LIBRARY) 60endif # not BUILD_TINY_ANDROID 61endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 62