1ifneq ($(BUILD_TINY_ANDROID),true) 2#Compile this library only for builds with the latest modem image 3 4LOCAL_PATH := $(call my-dir) 5 6include $(CLEAR_VARS) 7 8LOCAL_MODULE := libloc_eng 9LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 10LOCAL_LICENSE_CONDITIONS := notice 11LOCAL_VENDOR_MODULE := true 12LOCAL_MODULE_OWNER := qcom 13 14LOCAL_MODULE_TAGS := optional 15 16LOCAL_SHARED_LIBRARIES := \ 17 libutils \ 18 libcutils \ 19 libdl \ 20 liblog \ 21 libloc_core \ 22 libgps.utils \ 23 libprocessgroup 24 25LOCAL_SRC_FILES += \ 26 loc_eng.cpp \ 27 loc_eng_agps.cpp \ 28 loc_eng_xtra.cpp \ 29 loc_eng_ni.cpp \ 30 loc_eng_log.cpp \ 31 loc_eng_nmea.cpp \ 32 LocEngAdapter.cpp 33 34LOCAL_SRC_FILES += \ 35 loc_eng_dmn_conn.cpp \ 36 loc_eng_dmn_conn_handler.cpp \ 37 loc_eng_dmn_conn_thread_helper.c \ 38 loc_eng_dmn_conn_glue_msg.c \ 39 loc_eng_dmn_conn_glue_pipe.c 40 41LOCAL_CFLAGS += \ 42 -fno-short-enums \ 43 -D_ANDROID_ \ 44 -Wno-unused-parameter \ 45 -Wno-error \ 46 47LOCAL_C_INCLUDES:= \ 48 $(TARGET_OUT_HEADERS)/gps.utils \ 49 $(TARGET_OUT_HEADERS)/libloc_core \ 50 $(TARGET_OUT_HEADERS)/libflp 51 52LOCAL_COPY_HEADERS_TO:= libloc_eng/ 53LOCAL_COPY_HEADERS:= \ 54 LocEngAdapter.h \ 55 loc.h \ 56 loc_eng.h \ 57 loc_eng_xtra.h \ 58 loc_eng_ni.h \ 59 loc_eng_agps.h \ 60 loc_eng_msg.h \ 61 loc_eng_log.h 62 63LOCAL_PRELINK_MODULE := false 64 65include $(BUILD_SHARED_LIBRARY) 66 67include $(CLEAR_VARS) 68 69LOCAL_MODULE := gps.$(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE) 70LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 71LOCAL_LICENSE_CONDITIONS := notice 72LOCAL_VENDOR_MODULE := true 73LOCAL_MODULE_OWNER := qcom 74 75LOCAL_MODULE_TAGS := optional 76 77## Libs 78 79LOCAL_SHARED_LIBRARIES := \ 80 libutils \ 81 libcutils \ 82 liblog \ 83 libloc_eng \ 84 libloc_core \ 85 libgps.utils \ 86 libdl \ 87 libprocessgroup 88 89ifneq ($(filter $(TARGET_DEVICE), apq8084 msm8960), false) 90endif 91 92LOCAL_SRC_FILES += \ 93 loc.cpp \ 94 gps.c 95 96LOCAL_CFLAGS += \ 97 -fno-short-enums \ 98 -D_ANDROID_ \ 99 -Wno-error \ 100 101ifeq ($(TARGET_BUILD_VARIANT),user) 102 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 103endif 104 105ifeq ($(TARGET_USES_QCOM_BSP), true) 106LOCAL_CFLAGS += -DTARGET_USES_QCOM_BSP 107endif 108 109## Includes 110LOCAL_C_INCLUDES:= \ 111 $(TARGET_OUT_HEADERS)/gps.utils \ 112 $(TARGET_OUT_HEADERS)/libloc_core \ 113 $(TARGET_OUT_HEADERS)/libflp 114 115LOCAL_PRELINK_MODULE := false 116LOCAL_MODULE_RELATIVE_PATH := hw 117 118include $(BUILD_SHARED_LIBRARY) 119 120endif # not BUILD_TINY_ANDROID 121