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 21LOCAL_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 30LOCAL_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 37LOCAL_CFLAGS += \ 38 -fno-short-enums \ 39 -D_ANDROID_ \ 40 -Wno-unused-parameter 41 42LOCAL_C_INCLUDES:= \ 43 $(TARGET_OUT_HEADERS)/gps.utils \ 44 $(TARGET_OUT_HEADERS)/libloc_core 45 46LOCAL_COPY_HEADERS_TO:= libloc_eng/ 47LOCAL_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 57LOCAL_PRELINK_MODULE := false 58 59include $(BUILD_SHARED_LIBRARY) 60 61include $(CLEAR_VARS) 62 63LOCAL_MODULE := gps.$(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE) 64LOCAL_MODULE_OWNER := qcom 65 66LOCAL_MODULE_TAGS := optional 67 68## Libs 69 70LOCAL_SHARED_LIBRARIES := \ 71 libutils \ 72 libcutils \ 73 liblog \ 74 libloc_eng \ 75 libloc_core \ 76 libgps.utils \ 77 libdl 78 79LOCAL_SRC_FILES += \ 80 loc.cpp \ 81 gps.c 82 83LOCAL_CFLAGS += \ 84 -fno-short-enums \ 85 -D_ANDROID_ 86 87ifeq ($(TARGET_USES_QCOM_BSP), true) 88LOCAL_CFLAGS += -DTARGET_USES_QCOM_BSP 89endif 90 91## Includes 92LOCAL_C_INCLUDES:= \ 93 $(TARGET_OUT_HEADERS)/gps.utils \ 94 $(TARGET_OUT_HEADERS)/libloc_core 95 96ifneq ($(filter msm8084,$(TARGET_BOARD_PLATFORM)),) 97 LOCAL_CFLAGS += -DPLATFORM_MSM8084 98endif 99 100LOCAL_PRELINK_MODULE := false 101LOCAL_MODULE_RELATIVE_PATH := hw 102 103include $(BUILD_SHARED_LIBRARY) 104 105endif # not BUILD_TINY_ANDROID 106