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 10 11LOCAL_MODULE_TAGS := optional 12 13LOCAL_SHARED_LIBRARIES := \ 14 libutils \ 15 libcutils \ 16 libdl \ 17 liblog \ 18 libloc_core \ 19 libgps.utils \ 20 libprocessgroup 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 48LOCAL_COPY_HEADERS_TO:= libloc_eng/ 49LOCAL_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 59LOCAL_PRELINK_MODULE := false 60 61include $(BUILD_SHARED_LIBRARY) 62 63include $(CLEAR_VARS) 64 65LOCAL_MODULE := gps.$(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE) 66LOCAL_MODULE_OWNER := qcom 67 68LOCAL_MODULE_TAGS := optional 69 70## Libs 71 72LOCAL_SHARED_LIBRARIES := \ 73 libutils \ 74 libcutils \ 75 liblog \ 76 libloc_eng \ 77 libloc_core \ 78 libgps.utils \ 79 libdl \ 80 libprocessgroup 81 82ifneq ($(filter $(TARGET_DEVICE), apq8084 msm8960), false) 83endif 84 85LOCAL_SRC_FILES += \ 86 loc.cpp \ 87 gps.c 88 89LOCAL_CFLAGS += \ 90 -fno-short-enums \ 91 -D_ANDROID_ \ 92 -Wno-error \ 93 94ifeq ($(TARGET_USES_QCOM_BSP), true) 95LOCAL_CFLAGS += -DTARGET_USES_QCOM_BSP 96endif 97 98## Includes 99LOCAL_C_INCLUDES:= \ 100 $(TARGET_OUT_HEADERS)/gps.utils \ 101 $(TARGET_OUT_HEADERS)/libloc_core 102 103LOCAL_PRELINK_MODULE := false 104LOCAL_MODULE_RELATIVE_PATH := hw 105 106include $(BUILD_SHARED_LIBRARY) 107 108endif # not BUILD_TINY_ANDROID 109