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 10## Libs 11LOCAL_SHARED_LIBRARIES := \ 12 libutils \ 13 libcutils \ 14 liblog \ 15 libloc_pla \ 16 libprocessgroup 17 18LOCAL_SRC_FILES += \ 19 loc_log.cpp \ 20 loc_cfg.cpp \ 21 msg_q.c \ 22 linked_list.c \ 23 loc_target.cpp \ 24 platform_lib_abstractions/elapsed_millis_since_boot.cpp \ 25 LocHeap.cpp \ 26 LocTimer.cpp \ 27 LocThread.cpp \ 28 MsgTask.cpp \ 29 loc_misc_utils.cpp \ 30 loc_nmea.cpp 31 32# Flag -std=c++11 is not accepted by compiler when LOCAL_CLANG is set to true 33LOCAL_CFLAGS += \ 34 -fno-short-enums \ 35 -D_ANDROID_ \ 36 -Wno-error \ 37 38ifeq ($(TARGET_BUILD_VARIANT),user) 39 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 40endif 41 42LOCAL_LDFLAGS += -Wl,--export-dynamic 43 44## Includes 45LOCAL_HEADER_LIBRARIES := \ 46 libloc_pla_headers \ 47 liblocation_api_headers 48 49LOCAL_MODULE := libgps.utils 50LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD 51LOCAL_LICENSE_CONDITIONS := notice 52LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib 53LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 54LOCAL_MODULE_TAGS := optional 55 56LOCAL_PRELINK_MODULE := false 57 58LOCAL_CFLAGS += $(GNSS_CFLAGS) 59 60include $(BUILD_SHARED_LIBRARY) 61 62include $(CLEAR_VARS) 63LOCAL_MODULE := libgps.utils_headers 64LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD 65LOCAL_LICENSE_CONDITIONS := notice 66LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 67include $(BUILD_HEADER_LIBRARY) 68 69include $(addsuffix /Android.mk, $(addprefix $(LOCAL_PATH)/, platform_lib_abstractions)) 70endif # not BUILD_TINY_ANDROID 71endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 72