Michael Bestas | 3a0209e | 2023-05-04 01:15:47 +0300 | [diff] [blame^] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | LOCAL_MODULE := android.hardware.gnss@2.0-impl-qti |
| 5 | |
| 6 | # activate the following line for debug purposes only, comment out for production |
| 7 | #LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG) |
| 8 | LOCAL_VENDOR_MODULE := true |
| 9 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 10 | LOCAL_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 | MeasurementCorrections.cpp \ |
| 21 | GnssVisibilityControl.cpp |
| 22 | |
| 23 | LOCAL_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 | |
| 30 | ifeq ($(GNSS_HIDL_LEGACY_MEASURMENTS),true) |
| 31 | LOCAL_CFLAGS += \ |
| 32 | -DGNSS_HIDL_LEGACY_MEASURMENTS |
| 33 | endif |
| 34 | |
| 35 | LOCAL_C_INCLUDES:= \ |
| 36 | $(LOCAL_PATH)/location_api |
| 37 | |
| 38 | LOCAL_HEADER_LIBRARIES := \ |
| 39 | libgps.utils_headers \ |
| 40 | libloc_core_headers \ |
| 41 | libloc_pla_headers \ |
| 42 | liblocation_api_headers \ |
| 43 | liblocbatterylistener_headers |
| 44 | |
| 45 | LOCAL_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.measurement_corrections@1.0 \ |
| 54 | android.hardware.gnss.visibility_control@1.0 \ |
| 55 | android.hardware.health@1.0 \ |
| 56 | android.hardware.health@2.0 \ |
| 57 | android.hardware.health@2.1 \ |
| 58 | android.hardware.power@1.2 \ |
| 59 | libbase |
| 60 | |
| 61 | LOCAL_SHARED_LIBRARIES += \ |
| 62 | libloc_core \ |
| 63 | libgps.utils \ |
| 64 | libdl \ |
| 65 | liblocation_api \ |
| 66 | |
| 67 | LOCAL_CFLAGS += $(GNSS_CFLAGS) |
| 68 | LOCAL_STATIC_LIBRARIES := liblocbatterylistener |
| 69 | LOCAL_STATIC_LIBRARIES += libhealthhalutils |
| 70 | include $(BUILD_SHARED_LIBRARY) |
| 71 | |
| 72 | include $(CLEAR_VARS) |
| 73 | LOCAL_MODULE := android.hardware.gnss@2.0-service-qti |
| 74 | |
| 75 | # activate the following line for debug purposes only, comment out for production |
| 76 | #LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG) |
| 77 | LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@2.0-service-qti.xml |
| 78 | LOCAL_VENDOR_MODULE := true |
| 79 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 80 | LOCAL_INIT_RC := android.hardware.gnss@2.0-service-qti.rc |
| 81 | LOCAL_SRC_FILES := \ |
| 82 | service.cpp \ |
| 83 | |
| 84 | LOCAL_HEADER_LIBRARIES := \ |
| 85 | libgps.utils_headers \ |
| 86 | libloc_core_headers \ |
| 87 | libloc_pla_headers \ |
| 88 | liblocation_api_headers |
| 89 | |
| 90 | |
| 91 | LOCAL_SHARED_LIBRARIES := \ |
| 92 | liblog \ |
| 93 | libcutils \ |
| 94 | libdl \ |
| 95 | libbase \ |
| 96 | libutils \ |
| 97 | libgps.utils \ |
| 98 | libqti_vndfwk_detect \ |
| 99 | |
| 100 | LOCAL_SHARED_LIBRARIES += \ |
| 101 | libhidlbase \ |
| 102 | android.hardware.gnss@1.0 \ |
| 103 | android.hardware.gnss@1.1 \ |
| 104 | android.hardware.gnss@2.0 \ |
| 105 | |
| 106 | LOCAL_CFLAGS += $(GNSS_CFLAGS) |
| 107 | |
| 108 | ifneq ($(LOC_HIDL_VERSION),) |
| 109 | LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"' |
| 110 | endif |
| 111 | |
| 112 | include $(BUILD_EXECUTABLE) |