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