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 -Wno-error \ 29 30ifeq ($(TARGET_BUILD_VARIANT),user) 31 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 32endif 33 34LOCAL_LDFLAGS += -Wl,--export-dynamic 35 36## Includes 37LOCAL_C_INCLUDES:= \ 38 $(LOCAL_PATH)/../platform_lib_abstractions 39 40LOCAL_COPY_HEADERS_TO:= gps.utils/ 41LOCAL_COPY_HEADERS:= \ 42 loc_log.h \ 43 loc_cfg.h \ 44 log_util.h \ 45 linked_list.h \ 46 msg_q.h \ 47 loc_target.h \ 48 loc_timer.h \ 49 ../platform_lib_abstractions/platform_lib_includes.h \ 50 ../platform_lib_abstractions/platform_lib_time.h \ 51 ../platform_lib_abstractions/platform_lib_macros.h \ 52 loc_misc_utils.h 53 54LOCAL_MODULE := libgps.utils 55LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 56LOCAL_LICENSE_CONDITIONS := notice 57 58LOCAL_MODULE_TAGS := optional 59 60LOCAL_PRELINK_MODULE := false 61 62include $(BUILD_SHARED_LIBRARY) 63endif # not BUILD_TINY_ANDROID 64endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 65