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