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