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_VENDOR_MODULE  := true
10LOCAL_MODULE_OWNER := qcom
11
12LOCAL_MODULE_TAGS := optional
13
14LOCAL_SHARED_LIBRARIES := \
15    libutils \
16    libcutils \
17    libdl \
18    liblog \
19    libloc_core \
20    libgps.utils \
21    libprocessgroup
22
23LOCAL_SRC_FILES += \
24    loc_eng.cpp \
25    loc_eng_agps.cpp \
26    loc_eng_xtra.cpp \
27    loc_eng_ni.cpp \
28    loc_eng_log.cpp \
29    loc_eng_nmea.cpp \
30    LocEngAdapter.cpp
31
32LOCAL_SRC_FILES += \
33    loc_eng_dmn_conn.cpp \
34    loc_eng_dmn_conn_handler.cpp \
35    loc_eng_dmn_conn_thread_helper.c \
36    loc_eng_dmn_conn_glue_msg.c \
37    loc_eng_dmn_conn_glue_pipe.c
38
39LOCAL_CFLAGS += \
40     -fno-short-enums \
41     -D_ANDROID_ \
42     -Wno-unused-parameter \
43     -Wno-error \
44
45LOCAL_C_INCLUDES:= \
46    $(TARGET_OUT_HEADERS)/gps.utils \
47    $(TARGET_OUT_HEADERS)/libloc_core \
48    $(TARGET_OUT_HEADERS)/libflp
49
50LOCAL_COPY_HEADERS_TO:= libloc_eng/
51LOCAL_COPY_HEADERS:= \
52   LocEngAdapter.h \
53   loc.h \
54   loc_eng.h \
55   loc_eng_xtra.h \
56   loc_eng_ni.h \
57   loc_eng_agps.h \
58   loc_eng_msg.h \
59   loc_eng_log.h
60
61LOCAL_PRELINK_MODULE := false
62
63include $(BUILD_SHARED_LIBRARY)
64
65include $(CLEAR_VARS)
66
67LOCAL_MODULE := gps.$(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE)
68LOCAL_VENDOR_MODULE  := true
69LOCAL_MODULE_OWNER := qcom
70
71LOCAL_MODULE_TAGS := optional
72
73## Libs
74
75LOCAL_SHARED_LIBRARIES := \
76    libutils \
77    libcutils \
78    liblog \
79    libloc_eng \
80    libloc_core \
81    libgps.utils \
82    libdl \
83    libprocessgroup
84
85ifneq ($(filter $(TARGET_DEVICE), apq8084 msm8960), false)
86endif
87
88LOCAL_SRC_FILES += \
89    loc.cpp \
90    gps.c
91
92LOCAL_CFLAGS += \
93    -fno-short-enums \
94    -D_ANDROID_ \
95    -Wno-error \
96
97ifeq ($(TARGET_BUILD_VARIANT),user)
98   LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER
99endif
100
101ifeq ($(TARGET_USES_QCOM_BSP), true)
102LOCAL_CFLAGS += -DTARGET_USES_QCOM_BSP
103endif
104
105## Includes
106LOCAL_C_INCLUDES:= \
107    $(TARGET_OUT_HEADERS)/gps.utils \
108    $(TARGET_OUT_HEADERS)/libloc_core \
109    $(TARGET_OUT_HEADERS)/libflp
110
111LOCAL_PRELINK_MODULE := false
112LOCAL_MODULE_RELATIVE_PATH := hw
113
114include $(BUILD_SHARED_LIBRARY)
115
116endif # not BUILD_TINY_ANDROID
117