1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4LOCAL_MODULE := android.hardware.gnss@2.0-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    ../measurement_corrections/1.0/MeasurementCorrections.cpp \
18    ../visibility_control/1.0/GnssVisibilityControl.cpp
19
20LOCAL_SRC_FILES += \
21    location_api/GnssAPIClient.cpp \
22    location_api/MeasurementAPIClient.cpp \
23    location_api/GeofenceAPIClient.cpp \
24    location_api/BatchingAPIClient.cpp \
25    location_api/LocationUtil.cpp \
26
27ifeq ($(GNSS_HIDL_LEGACY_MEASURMENTS),true)
28LOCAL_CFLAGS += \
29     -DGNSS_HIDL_LEGACY_MEASURMENTS
30endif
31
32LOCAL_C_INCLUDES:= \
33    $(LOCAL_PATH)/location_api \
34    $(LOCAL_PATH)/../measurement_corrections/1.0 \
35    $(LOCAL_PATH)/../visibility_control/1.0
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.measurement_corrections@1.0 \
52    android.hardware.gnss.visibility_control@1.0 \
53    android.hardware.health@1.0 \
54    android.hardware.health@2.0 \
55    android.hardware.power@1.2 \
56    libbase
57
58LOCAL_SHARED_LIBRARIES += \
59    libloc_core \
60    libgps.utils \
61    libdl \
62    liblocation_api \
63
64LOCAL_CFLAGS += $(GNSS_CFLAGS)
65LOCAL_STATIC_LIBRARIES := liblocbatterylistener
66LOCAL_STATIC_LIBRARIES += libhealthhalutils
67include $(BUILD_SHARED_LIBRARY)
68
69include $(CLEAR_VARS)
70LOCAL_MODULE := android.hardware.gnss@2.0-service-qti
71LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@2.0-service-qti.xml
72LOCAL_VENDOR_MODULE := true
73LOCAL_MODULE_RELATIVE_PATH := hw
74LOCAL_INIT_RC := android.hardware.gnss@2.0-service-qti.rc
75LOCAL_SRC_FILES := \
76    service.cpp \
77
78LOCAL_HEADER_LIBRARIES := \
79    libgps.utils_headers \
80    libloc_core_headers \
81    libloc_pla_headers \
82    liblocation_api_headers
83
84
85LOCAL_SHARED_LIBRARIES := \
86    liblog \
87    libcutils \
88    libdl \
89    libbase \
90    libutils \
91    libgps.utils \
92    libqti_vndfwk_detect \
93
94LOCAL_SHARED_LIBRARIES += \
95    libhidlbase \
96    android.hardware.gnss@1.0 \
97    android.hardware.gnss@1.1 \
98    android.hardware.gnss@2.0 \
99
100LOCAL_CFLAGS += $(GNSS_CFLAGS)
101
102ifneq ($(LOC_HIDL_VERSION),)
103LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"'
104endif
105
106include $(BUILD_EXECUTABLE)
107