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 libprocessgroup 15 16LOCAL_HEADER_LIBRARIES := \ 17 libhardware_headers 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 platform_lib_abstractions/elapsed_millis_since_boot.cpp \ 26 LocHeap.cpp \ 27 LocTimer.cpp \ 28 LocThread.cpp \ 29 MsgTask.cpp \ 30 loc_misc_utils.cpp 31 32LOCAL_CFLAGS += \ 33 -fno-short-enums \ 34 -D_ANDROID_ \ 35 -Wno-error \ 36 37ifeq ($(TARGET_BUILD_VARIANT),user) 38 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 39endif 40 41LOCAL_LDFLAGS += -Wl,--export-dynamic 42 43## Includes 44LOCAL_C_INCLUDES:= \ 45 $(LOCAL_PATH)/platform_lib_abstractions 46 47 48LOCAL_MODULE := libgps.utils 49LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 50LOCAL_LICENSE_CONDITIONS := notice 51 52LOCAL_MODULE_TAGS := optional 53 54LOCAL_MODULE_OWNER := qcom 55 56LOCAL_PROPRIETARY_MODULE := true 57 58LOCAL_PRELINK_MODULE := false 59 60include $(BUILD_SHARED_LIBRARY) 61 62include $(CLEAR_VARS) 63LOCAL_MODULE := libgps.utils_headers 64LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 65LOCAL_LICENSE_CONDITIONS := notice 66LOCAL_HEADER_LIBRARIES := libhardware_headers 67LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libhardware_headers 68LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) $(LOCAL_PATH)/platform_lib_abstractions 69include $(BUILD_HEADER_LIBRARY) 70 71endif # not BUILD_TINY_ANDROID 72endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 73