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