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     -Wno-error \
46
47LOCAL_C_INCLUDES:= \
48    $(TARGET_OUT_HEADERS)/gps.utils \
49    $(TARGET_OUT_HEADERS)/libloc_core \
50    hardware/qcom/gps/msm8996/loc_api/libloc_api_50001 \
51    $(TARGET_OUT_HEADERS)/libflp
52
53LOCAL_HEADER_LIBRARIES := libgps.utils_headers libloc_core_headers
54
55LOCAL_PRELINK_MODULE := false
56
57include $(BUILD_SHARED_LIBRARY)
58
59include $(CLEAR_VARS)
60LOCAL_MODULE := libloc_eng_headers
61LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD
62LOCAL_LICENSE_CONDITIONS := notice
63LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
64include $(BUILD_HEADER_LIBRARY)
65
66include $(CLEAR_VARS)
67
68LOCAL_MODULE := gps.$(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE)
69LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD
70LOCAL_LICENSE_CONDITIONS := notice
71LOCAL_MODULE_OWNER := qcom
72LOCAL_PROPRIETARY_MODULE := true
73
74LOCAL_MODULE_TAGS := optional
75
76## Libs
77
78LOCAL_SHARED_LIBRARIES := \
79    libutils \
80    libcutils \
81    liblog \
82    libloc_eng \
83    libloc_core \
84    libgps.utils \
85    libdl \
86    libprocessgroup
87
88ifneq ($(filter $(TARGET_DEVICE), apq8084 msm8960), false)
89endif
90
91LOCAL_SRC_FILES += \
92    loc.cpp \
93    gps.c
94
95LOCAL_CFLAGS += \
96    -fno-short-enums \
97    -D_ANDROID_ \
98    -Wno-error \
99
100ifeq ($(TARGET_BUILD_VARIANT),user)
101   LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER
102endif
103
104ifeq ($(TARGET_USES_QCOM_BSP), true)
105LOCAL_CFLAGS += -DTARGET_USES_QCOM_BSP
106endif
107
108## Includes
109LOCAL_C_INCLUDES:= \
110    $(TARGET_OUT_HEADERS)/gps.utils \
111    $(TARGET_OUT_HEADERS)/libloc_core \
112    $(TARGET_OUT_HEADERS)/libflp
113
114LOCAL_PRELINK_MODULE := false
115LOCAL_MODULE_RELATIVE_PATH := hw
116
117LOCAL_HEADER_LIBRARIES := libgps.utils_headers libloc_core_headers
118
119include $(BUILD_SHARED_LIBRARY)
120
121endif # not BUILD_TINY_ANDROID
122