1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4LOCAL_MODULE := android.hardware.gnss@2.1-impl-qti
5LOCAL_VENDOR_MODULE := true
6LOCAL_MODULE_RELATIVE_PATH := hw
7LOCAL_SRC_FILES := \
8    AGnss.cpp \
9    Gnss.cpp \
10    AGnssRil.cpp \
11    GnssMeasurement.cpp \
12    GnssConfiguration.cpp \
13    GnssBatching.cpp \
14    GnssGeofencing.cpp \
15    GnssNi.cpp \
16    GnssDebug.cpp \
17    GnssAntennaInfo.cpp \
18    MeasurementCorrections.cpp \
19    GnssVisibilityControl.cpp
20
21LOCAL_SRC_FILES += \
22    location_api/GnssAPIClient.cpp \
23    location_api/MeasurementAPIClient.cpp \
24    location_api/GeofenceAPIClient.cpp \
25    location_api/BatchingAPIClient.cpp \
26    location_api/LocationUtil.cpp \
27
28ifeq ($(GNSS_HIDL_LEGACY_MEASURMENTS),true)
29LOCAL_CFLAGS += \
30     -DGNSS_HIDL_LEGACY_MEASURMENTS
31endif
32
33LOCAL_C_INCLUDES:= \
34    $(LOCAL_PATH)/location_api
35
36LOCAL_HEADER_LIBRARIES := \
37    libgps.utils_headers \
38    libloc_core_headers \
39    libloc_pla_headers \
40    liblocation_api_headers \
41    liblocbatterylistener_headers
42
43LOCAL_SHARED_LIBRARIES := \
44    liblog \
45    libhidlbase \
46    libcutils \
47    libutils \
48    android.hardware.gnss@1.0 \
49    android.hardware.gnss@1.1 \
50    android.hardware.gnss@2.0 \
51    android.hardware.gnss@2.1 \
52    android.hardware.gnss.measurement_corrections@1.0 \
53    android.hardware.gnss.measurement_corrections@1.1 \
54    android.hardware.gnss.visibility_control@1.0 \
55    android.hardware.health@1.0 \
56    android.hardware.health@2.0 \
57    android.hardware.health@2.1 \
58    android.hardware.power@1.2 \
59    libbase
60
61LOCAL_SHARED_LIBRARIES += \
62    libloc_core \
63    libgps.utils \
64    libdl \
65    liblocation_api \
66
67LOCAL_CFLAGS += $(GNSS_CFLAGS)
68LOCAL_STATIC_LIBRARIES := liblocbatterylistener
69LOCAL_STATIC_LIBRARIES += libhealthhalutils
70include $(BUILD_SHARED_LIBRARY)
71
72include $(CLEAR_VARS)
73LOCAL_MODULE := android.hardware.gnss@2.1-service-qti
74LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@2.1-service-qti.xml
75LOCAL_VENDOR_MODULE := true
76LOCAL_MODULE_RELATIVE_PATH := hw
77LOCAL_INIT_RC := android.hardware.gnss@2.1-service-qti.rc
78LOCAL_SRC_FILES := \
79    service.cpp \
80
81LOCAL_HEADER_LIBRARIES := \
82    libgps.utils_headers \
83    libloc_core_headers \
84    libloc_pla_headers \
85    liblocation_api_headers
86
87
88LOCAL_SHARED_LIBRARIES := \
89    liblog \
90    libcutils \
91    libdl \
92    libbase \
93    libutils \
94    libgps.utils \
95    libqti_vndfwk_detect \
96
97LOCAL_SHARED_LIBRARIES += \
98    libhidlbase \
99    android.hardware.gnss@1.0 \
100    android.hardware.gnss@1.1 \
101    android.hardware.gnss@2.0 \
102    android.hardware.gnss@2.1 \
103
104LOCAL_CFLAGS += $(GNSS_CFLAGS)
105
106ifneq ($(LOC_HIDL_VERSION),)
107LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"'
108endif
109
110include $(BUILD_EXECUTABLE)
111