blob: 0c60fd449cca67627a87837e39c7c35b2cc8ba2c [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.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 GnssBatching.cpp \
12 GnssGeofencing.cpp \
13 GnssMeasurement.cpp \
14 GnssNi.cpp \
15 GnssConfiguration.cpp \
16 GnssDebug.cpp \
17 AGnssRil.cpp
18
19LOCAL_SRC_FILES += \
20 location_api/LocationUtil.cpp \
21 location_api/GnssAPIClient.cpp \
22 location_api/GeofenceAPIClient.cpp \
23 location_api/BatchingAPIClient.cpp \
24 location_api/MeasurementAPIClient.cpp \
25
26LOCAL_C_INCLUDES:= \
27 $(LOCAL_PATH)/location_api
28LOCAL_HEADER_LIBRARIES := \
29 libgps.utils_headers \
30 libloc_core_headers \
31 libloc_pla_headers \
32 liblocation_api_headers \
33 liblocbatterylistener_headers
34
35LOCAL_SHARED_LIBRARIES := \
36 liblog \
37 libhidlbase \
38 libcutils \
39 libutils \
40 android.hardware.gnss@1.0 \
41 android.hardware.health@1.0 \
42 android.hardware.health@2.0 \
43 android.hardware.power@1.2 \
44 libbase
45
46LOCAL_SHARED_LIBRARIES += \
47 libloc_core \
48 libgps.utils \
49 libdl \
50 liblocation_api \
51
52LOCAL_CFLAGS += $(GNSS_CFLAGS)
53LOCAL_STATIC_LIBRARIES := liblocbatterylistener
54LOCAL_STATIC_LIBRARIES += libhealthhalutils
55include $(BUILD_SHARED_LIBRARY)
56
57include $(CLEAR_VARS)
58LOCAL_MODULE := android.hardware.gnss@1.0-service-qti
59
Michael Bestas3a0209e2023-05-04 01:15:47 +030060LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@1.0-service-qti.xml
61LOCAL_VENDOR_MODULE := true
62LOCAL_MODULE_RELATIVE_PATH := hw
63LOCAL_INIT_RC := android.hardware.gnss@1.0-service-qti.rc
64LOCAL_SRC_FILES := \
65 service.cpp \
66
67LOCAL_C_INCLUDES:= \
68 $(LOCAL_PATH)/location_api
69LOCAL_HEADER_LIBRARIES := \
70 libgps.utils_headers \
71 libloc_core_headers \
72 libloc_pla_headers \
73 liblocation_api_headers
74
75
76LOCAL_SHARED_LIBRARIES := \
77 liblog \
78 libcutils \
79 libdl \
80 libbase \
81 libutils \
82 libgps.utils \
83 libqti_vndfwk_detect \
84
85LOCAL_SHARED_LIBRARIES += \
86 libhidlbase \
87 android.hardware.gnss@1.0 \
88
89LOCAL_CFLAGS += $(GNSS_CFLAGS)
90
91ifneq ($(LOC_HIDL_VERSION),)
92LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"'
93endif
94
95include $(BUILD_EXECUTABLE)