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_MODULE_OWNER := qcom 10LOCAL_PROPRIETARY_MODULE := true 11 12LOCAL_MODULE_TAGS := optional 13 14LOCAL_SHARED_LIBRARIES := \ 15 libutils \ 16 libcutils \ 17 libdl \ 18 liblog \ 19 libloc_core \ 20 libgps.utils 21 22LOCAL_SRC_FILES += \ 23 loc_eng.cpp \ 24 loc_eng_agps.cpp \ 25 loc_eng_xtra.cpp \ 26 loc_eng_ni.cpp \ 27 loc_eng_log.cpp \ 28 loc_eng_nmea.cpp \ 29 LocEngAdapter.cpp 30 31LOCAL_SRC_FILES += \ 32 loc_eng_dmn_conn.cpp \ 33 loc_eng_dmn_conn_handler.cpp \ 34 loc_eng_dmn_conn_thread_helper.c \ 35 loc_eng_dmn_conn_glue_msg.c \ 36 loc_eng_dmn_conn_glue_pipe.c 37 38LOCAL_CFLAGS += \ 39 -fno-short-enums \ 40 -D_ANDROID_ \ 41 -Wno-unused-parameter \ 42 -Wno-error \ 43 44LOCAL_C_INCLUDES:= \ 45 $(TARGET_OUT_HEADERS)/gps.utils \ 46 $(TARGET_OUT_HEADERS)/libloc_core \ 47 hardware/qcom/gps/msm8996/loc_api/libloc_api_50001 \ 48 $(TARGET_OUT_HEADERS)/libflp 49 50LOCAL_HEADER_LIBRARIES := libgps.utils_headers libloc_core_headers 51 52LOCAL_PRELINK_MODULE := false 53 54include $(BUILD_SHARED_LIBRARY) 55 56include $(CLEAR_VARS) 57LOCAL_MODULE := libloc_eng_headers 58LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 59include $(BUILD_HEADER_LIBRARY) 60 61include $(CLEAR_VARS) 62 63LOCAL_MODULE := gps.$(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE) 64LOCAL_MODULE_OWNER := qcom 65LOCAL_PROPRIETARY_MODULE := true 66 67LOCAL_MODULE_TAGS := optional 68 69## Libs 70 71LOCAL_SHARED_LIBRARIES := \ 72 libutils \ 73 libcutils \ 74 liblog \ 75 libloc_eng \ 76 libloc_core \ 77 libgps.utils \ 78 libdl 79 80ifneq ($(filter $(TARGET_DEVICE), apq8084 msm8960), false) 81endif 82 83LOCAL_SRC_FILES += \ 84 loc.cpp \ 85 gps.c 86 87LOCAL_CFLAGS += \ 88 -fno-short-enums \ 89 -D_ANDROID_ \ 90 -Wno-error \ 91 92ifeq ($(TARGET_BUILD_VARIANT),user) 93 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER 94endif 95 96ifeq ($(TARGET_USES_QCOM_BSP), true) 97LOCAL_CFLAGS += -DTARGET_USES_QCOM_BSP 98endif 99 100## Includes 101LOCAL_C_INCLUDES:= \ 102 $(TARGET_OUT_HEADERS)/gps.utils \ 103 $(TARGET_OUT_HEADERS)/libloc_core \ 104 $(TARGET_OUT_HEADERS)/libflp 105 106LOCAL_PRELINK_MODULE := false 107LOCAL_MODULE_RELATIVE_PATH := hw 108 109LOCAL_HEADER_LIBRARIES := libgps.utils_headers libloc_core_headers 110 111include $(BUILD_SHARED_LIBRARY) 112 113endif # not BUILD_TINY_ANDROID 114