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 15ifeq ($(filter P% p%,$(TARGET_PLATFORM_VERSION)),) 16LOCAL_SHARED_LIBRARIES += libprocessgroup 17endif 18 19LOCAL_SRC_FILES += \ 20 loc_log.cpp \ 21 loc_cfg.cpp \ 22 msg_q.c \ 23 linked_list.c \ 24 loc_target.cpp \ 25 loc_timer.c \ 26 ../platform_lib_abstractions/elapsed_millis_since_boot.cpp \ 27 loc_misc_utils.cpp 28 29LOCAL_CFLAGS += \ 30 -fno-short-enums \ 31 -D_ANDROID_ \ 32 -Wno-error 33 34ifeq ($(TARGET_BUILD_VARIANT),user) 35 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 36endif 37 38LOCAL_LDFLAGS += -Wl,--export-dynamic 39 40## Includes 41LOCAL_C_INCLUDES:= \ 42 $(LOCAL_PATH)/../platform_lib_abstractions 43 44LOCAL_COPY_HEADERS_TO:= gps.utils/ 45LOCAL_COPY_HEADERS:= \ 46 loc_log.h \ 47 loc_cfg.h \ 48 log_util.h \ 49 linked_list.h \ 50 msg_q.h \ 51 loc_target.h \ 52 loc_timer.h \ 53 ../platform_lib_abstractions/platform_lib_includes.h \ 54 ../platform_lib_abstractions/platform_lib_time.h \ 55 ../platform_lib_abstractions/platform_lib_macros.h \ 56 loc_misc_utils.h 57 58LOCAL_MODULE := libgps.utils 59LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 60LOCAL_LICENSE_CONDITIONS := notice 61 62LOCAL_MODULE_TAGS := optional 63 64LOCAL_PRELINK_MODULE := false 65 66include $(BUILD_SHARED_LIBRARY) 67endif # not BUILD_TINY_ANDROID 68endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 69