1LOCAL_PATH := $(call my-dir) 2 3include $(CLEAR_VARS) 4LOCAL_MODULE := android.hardware.gnss@2.1-impl-qti 5# activate the following line for debug purposes only, comment out for production 6#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG) 7LOCAL_VENDOR_MODULE := true 8LOCAL_MODULE_RELATIVE_PATH := hw 9LOCAL_SRC_FILES := \ 10 AGnss.cpp \ 11 Gnss.cpp \ 12 AGnssRil.cpp \ 13 GnssMeasurement.cpp \ 14 GnssConfiguration.cpp \ 15 GnssBatching.cpp \ 16 GnssGeofencing.cpp \ 17 GnssNi.cpp \ 18 GnssDebug.cpp \ 19 GnssAntennaInfo.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@2.1 \ 54 android.hardware.gnss.measurement_corrections@1.0 \ 55 android.hardware.gnss.measurement_corrections@1.1 \ 56 android.hardware.gnss.visibility_control@1.0 \ 57 android.hardware.health@1.0 \ 58 android.hardware.health@2.0 \ 59 android.hardware.health@2.1 \ 60 android.hardware.power@1.2 \ 61 libbase 62 63LOCAL_SHARED_LIBRARIES += \ 64 libloc_core \ 65 libgps.utils \ 66 libdl \ 67 liblocation_api \ 68 69LOCAL_CFLAGS += $(GNSS_CFLAGS) 70LOCAL_STATIC_LIBRARIES := liblocbatterylistener 71LOCAL_STATIC_LIBRARIES += libhealthhalutils 72LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 73LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 74LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE 75include $(BUILD_SHARED_LIBRARY) 76 77include $(CLEAR_VARS) 78LOCAL_MODULE := android.hardware.gnss@2.1-service-qti 79 80# activate the following line for debug purposes only, comment out for production 81#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG) 82LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@2.1-service-qti.xml 83LOCAL_VENDOR_MODULE := true 84LOCAL_MODULE_RELATIVE_PATH := hw 85LOCAL_INIT_RC := android.hardware.gnss@2.1-service-qti.rc 86LOCAL_SRC_FILES := \ 87 service.cpp \ 88 89LOCAL_HEADER_LIBRARIES := \ 90 libgps.utils_headers \ 91 libloc_core_headers \ 92 libloc_pla_headers \ 93 liblocation_api_headers 94 95 96LOCAL_SHARED_LIBRARIES := \ 97 liblog \ 98 libcutils \ 99 libdl \ 100 libbase \ 101 libutils \ 102 libgps.utils \ 103 libqti_vndfwk_detect \ 104 105LOCAL_SHARED_LIBRARIES += \ 106 libhidlbase \ 107 android.hardware.gnss@1.0 \ 108 android.hardware.gnss@1.1 \ 109 android.hardware.gnss@2.0 \ 110 android.hardware.gnss@2.1 \ 111 112LOCAL_CFLAGS += $(GNSS_CFLAGS) 113 114ifneq ($(LOC_HIDL_VERSION),) 115LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"' 116endif 117 118LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 119LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 120LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE 121include $(BUILD_EXECUTABLE) 122