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