blob: 27272ae387b4df43aa0f8370544a93a356a9299d [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
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.gnss@1.1 \
42 android.hardware.health@1.0 \
43 android.hardware.health@2.0 \
44 android.hardware.power@1.2 \
45 libbase
46
47LOCAL_SHARED_LIBRARIES += \
48 libloc_core \
49 libgps.utils \
50 libdl \
51 liblocation_api \
52
53LOCAL_CFLAGS += $(GNSS_CFLAGS)
54LOCAL_STATIC_LIBRARIES := liblocbatterylistener
55LOCAL_STATIC_LIBRARIES += libhealthhalutils
56include $(BUILD_SHARED_LIBRARY)
57
58include $(CLEAR_VARS)
59LOCAL_MODULE := android.hardware.gnss@1.1-service-qti
60
Michael Bestas3a0209e2023-05-04 01:15:47 +030061LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@1.1-service-qti.xml
62LOCAL_VENDOR_MODULE := true
63LOCAL_MODULE_RELATIVE_PATH := hw
64LOCAL_INIT_RC := android.hardware.gnss@1.1-service-qti.rc
65LOCAL_SRC_FILES := \
66 service.cpp \
67
68LOCAL_C_INCLUDES:= \
69 $(LOCAL_PATH)/location_api
70LOCAL_HEADER_LIBRARIES := \
71 libgps.utils_headers \
72 libloc_core_headers \
73 libloc_pla_headers \
74 liblocation_api_headers
75
76
77LOCAL_SHARED_LIBRARIES := \
78 liblog \
79 libcutils \
80 libdl \
81 libbase \
82 libutils \
83 libgps.utils \
84 libqti_vndfwk_detect \
85
86LOCAL_SHARED_LIBRARIES += \
87 libhidlbase \
88 android.hardware.gnss@1.0 \
89 android.hardware.gnss@1.1 \
90
91LOCAL_CFLAGS += $(GNSS_CFLAGS)
92
93ifneq ($(LOC_HIDL_VERSION),)
94LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"'
95endif
96
97include $(BUILD_EXECUTABLE)