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_LICENSE_KINDS := SPDX-license-identifier-BSD
10LOCAL_LICENSE_CONDITIONS := notice
11LOCAL_MODULE_OWNER := qcom
12
13LOCAL_MODULE_TAGS := optional
14
15LOCAL_SHARED_LIBRARIES := \
16    libutils \
17    libcutils \
18    libdl \
19    liblog \
20    libloc_core \
21    libgps.utils \
22    libprocessgroup
23
24LOCAL_SRC_FILES += \
25    loc_eng.cpp \
26    loc_eng_agps.cpp \
27    loc_eng_xtra.cpp \
28    loc_eng_ni.cpp \
29    loc_eng_log.cpp \
30    loc_eng_nmea.cpp \
31    LocEngAdapter.cpp
32
33LOCAL_SRC_FILES += \
34    loc_eng_dmn_conn.cpp \
35    loc_eng_dmn_conn_handler.cpp \
36    loc_eng_dmn_conn_thread_helper.c \
37    loc_eng_dmn_conn_glue_msg.c \
38    loc_eng_dmn_conn_glue_pipe.c
39
40LOCAL_CFLAGS += \
41     -fno-short-enums \
42     -D_ANDROID_ \
43     -Wno-unused-parameter
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_LICENSE_KINDS := SPDX-license-identifier-BSD
69LOCAL_LICENSE_CONDITIONS := notice
70LOCAL_MODULE_OWNER := qcom
71
72LOCAL_MODULE_TAGS := optional
73
74## Libs
75
76LOCAL_SHARED_LIBRARIES := \
77    libutils \
78    libcutils \
79    liblog \
80    libloc_eng \
81    libloc_core \
82    libgps.utils \
83    libdl \
84    libprocessgroup
85
86ifneq ($(filter $(TARGET_DEVICE), apq8084 msm8960), false)
87endif
88
89LOCAL_SRC_FILES += \
90    loc.cpp \
91    gps.c
92
93LOCAL_CFLAGS += \
94    -fno-short-enums \
95    -D_ANDROID_ \
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