• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4LOCAL_MODULE := android.hardware.gnss@2.0-impl-qti
5LOCAL_SANITIZE += $(GNSS_SANITIZE)
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    AGnssRil.cpp \
14    GnssMeasurement.cpp \
15    GnssConfiguration.cpp \
16    GnssBatching.cpp \
17    GnssGeofencing.cpp \
18    GnssNi.cpp \
19    GnssDebug.cpp \
20    MeasurementCorrections.cpp \
21    GnssVisibilityControl.cpp
22
23LOCAL_SRC_FILES += \
24    location_api/GnssAPIClient.cpp \
25    location_api/MeasurementAPIClient.cpp \
26    location_api/GeofenceAPIClient.cpp \
27    location_api/BatchingAPIClient.cpp \
28    location_api/LocationUtil.cpp \
29
30ifeq ($(GNSS_HIDL_LEGACY_MEASURMENTS),true)
31LOCAL_CFLAGS += \
32     -DGNSS_HIDL_LEGACY_MEASURMENTS
33endif
34
35LOCAL_C_INCLUDES:= \
36    $(LOCAL_PATH)/location_api
37
38LOCAL_HEADER_LIBRARIES := \
39    libgps.utils_headers \
40    libloc_core_headers \
41    libloc_pla_headers \
42    liblocation_api_headers \
43    liblocbatterylistener_headers
44
45LOCAL_SHARED_LIBRARIES := \
46    liblog \
47    libhidlbase \
48    libcutils \
49    libutils \
50    android.hardware.gnss@1.0 \
51    android.hardware.gnss@1.1 \
52    android.hardware.gnss@2.0 \
53    android.hardware.gnss.measurement_corrections@1.0 \
54    android.hardware.gnss.visibility_control@1.0 \
55    android.hardware.health@1.0 \
56    android.hardware.health@2.0 \
57    android.hardware.health@2.1 \
58    android.hardware.power@1.2 \
59    libbase
60
61LOCAL_SHARED_LIBRARIES += \
62    libloc_core \
63    libgps.utils \
64    libdl \
65    liblocation_api \
66
67LOCAL_CFLAGS += $(GNSS_CFLAGS)
68LOCAL_STATIC_LIBRARIES := liblocbatterylistener
69LOCAL_STATIC_LIBRARIES += libhealthhalutils
70include $(BUILD_SHARED_LIBRARY)
71
72include $(CLEAR_VARS)
73LOCAL_MODULE := android.hardware.gnss@2.0-service-qti
74LOCAL_SANITIZE += $(GNSS_SANITIZE)
75# activate the following line for debug purposes only, comment out for production
76#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG)
77LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@2.0-service-qti.xml
78LOCAL_VENDOR_MODULE := true
79LOCAL_MODULE_RELATIVE_PATH := hw
80LOCAL_INIT_RC := android.hardware.gnss@2.0-service-qti.rc
81LOCAL_SRC_FILES := \
82    service.cpp \
83
84LOCAL_HEADER_LIBRARIES := \
85    libgps.utils_headers \
86    libloc_core_headers \
87    libloc_pla_headers \
88    liblocation_api_headers
89
90
91LOCAL_SHARED_LIBRARIES := \
92    liblog \
93    libcutils \
94    libdl \
95    libbase \
96    libutils \
97    libgps.utils \
98    libqti_vndfwk_detect \
99
100LOCAL_SHARED_LIBRARIES += \
101    libhidlbase \
102    android.hardware.gnss@1.0 \
103    android.hardware.gnss@1.1 \
104    android.hardware.gnss@2.0 \
105
106LOCAL_CFLAGS += $(GNSS_CFLAGS)
107
108ifneq ($(LOC_HIDL_VERSION),)
109LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"'
110endif
111
112include $(BUILD_EXECUTABLE)
113