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