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 41 LOCAL_C_INCLUDES:= \ 42 $(TARGET_OUT_HEADERS)/gps.utils \ 43 $(TARGET_OUT_HEADERS)/libloc_core \ 44 hardware/qcom/gps/msm8960/loc_api/libloc_api_50001 45 46 LOCAL_COPY_HEADERS_TO:= libloc_eng/ 47 LOCAL_COPY_HEADERS:= \ 48 LocEngAdapter.h \ 49 loc.h \ 50 loc_eng.h \ 51 loc_eng_xtra.h \ 52 loc_eng_ni.h \ 53 loc_eng_agps.h \ 54 loc_eng_msg.h \ 55 loc_eng_log.h 56 57 LOCAL_PRELINK_MODULE := false 58 59 include $(BUILD_SHARED_LIBRARY) 60 61 include $(CLEAR_VARS) 62 63 LOCAL_MODULE := gps.$(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE) 64 LOCAL_MODULE_OWNER := qcom 65 66 LOCAL_MODULE_TAGS := optional 67 68 ## Libs 69 70 LOCAL_SHARED_LIBRARIES := \ 71 libutils \ 72 libcutils \ 73 liblog \ 74 libloc_eng \ 75 libloc_core \ 76 libgps.utils \ 77 libdl 78 79 LOCAL_SRC_FILES += \ 80 loc.cpp \ 81 gps.c 82 83 LOCAL_CFLAGS += \ 84 -fno-short-enums \ 85 -D_ANDROID_ \ 86 87 ifeq ($(TARGET_USES_QCOM_BSP), true) 88 LOCAL_CFLAGS += -DTARGET_USES_QCOM_BSP 89 endif 90 91 ## Includes 92 LOCAL_C_INCLUDES:= \ 93 $(TARGET_OUT_HEADERS)/gps.utils \ 94 $(TARGET_OUT_HEADERS)/libloc_core 95 96 LOCAL_PRELINK_MODULE := false 97 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw 98 99 include $(BUILD_SHARED_LIBRARY) 100 101 endif # not BUILD_TINY_ANDROID 102