• 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    ../measurement_corrections/1.0/MeasurementCorrections.cpp \
21    ../visibility_control/1.0/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    $(LOCAL_PATH)/../measurement_corrections/1.0 \
38    $(LOCAL_PATH)/../visibility_control/1.0
39LOCAL_HEADER_LIBRARIES := \
40    libgps.utils_headers \
41    libloc_core_headers \
42    libloc_pla_headers \
43    liblocation_api_headers \
44    liblocbatterylistener_headers
45
46LOCAL_SHARED_LIBRARIES := \
47    liblog \
48    libhidlbase \
49    libcutils \
50    libutils \
51    android.hardware.gnss@1.0 \
52    android.hardware.gnss@1.1 \
53    android.hardware.gnss@2.0 \
54    android.hardware.gnss.measurement_corrections@1.0 \
55    android.hardware.gnss.visibility_control@1.0 \
56    android.hardware.health@1.0 \
57    android.hardware.health@2.0 \
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