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