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