blob: 1de5590b82a1a9e7cb2b44612072b218518f6008 [file] [log] [blame]
Michael Bestas3a0209e2023-05-04 01:15:47 +03001LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4LOCAL_MODULE := android.hardware.gnss@2.0-impl-qti
5
Michael Bestas3a0209e2023-05-04 01:15:47 +03006LOCAL_VENDOR_MODULE := true
7LOCAL_MODULE_RELATIVE_PATH := hw
8LOCAL_SRC_FILES := \
9 AGnss.cpp \
10 Gnss.cpp \
11 AGnssRil.cpp \
12 GnssMeasurement.cpp \
13 GnssConfiguration.cpp \
14 GnssBatching.cpp \
15 GnssGeofencing.cpp \
16 GnssNi.cpp \
17 GnssDebug.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.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.health@2.1 \
56 android.hardware.power@1.2 \
57 libbase
58
59LOCAL_SHARED_LIBRARIES += \
60 libloc_core \
61 libgps.utils \
62 libdl \
63 liblocation_api \
64
65LOCAL_CFLAGS += $(GNSS_CFLAGS)
66LOCAL_STATIC_LIBRARIES := liblocbatterylistener
67LOCAL_STATIC_LIBRARIES += libhealthhalutils
68include $(BUILD_SHARED_LIBRARY)
69
70include $(CLEAR_VARS)
71LOCAL_MODULE := android.hardware.gnss@2.0-service-qti
72
Michael Bestas3a0209e2023-05-04 01:15:47 +030073LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@2.0-service-qti.xml
74LOCAL_VENDOR_MODULE := true
75LOCAL_MODULE_RELATIVE_PATH := hw
76LOCAL_INIT_RC := android.hardware.gnss@2.0-service-qti.rc
77LOCAL_SRC_FILES := \
78 service.cpp \
79
80LOCAL_HEADER_LIBRARIES := \
81 libgps.utils_headers \
82 libloc_core_headers \
83 libloc_pla_headers \
84 liblocation_api_headers
85
86
87LOCAL_SHARED_LIBRARIES := \
88 liblog \
89 libcutils \
90 libdl \
91 libbase \
92 libutils \
93 libgps.utils \
94 libqti_vndfwk_detect \
95
96LOCAL_SHARED_LIBRARIES += \
97 libhidlbase \
98 android.hardware.gnss@1.0 \
99 android.hardware.gnss@1.1 \
100 android.hardware.gnss@2.0 \
101
102LOCAL_CFLAGS += $(GNSS_CFLAGS)
103
104ifneq ($(LOC_HIDL_VERSION),)
105LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"'
106endif
107
108include $(BUILD_EXECUTABLE)