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 | |
Michael Bestas | 3a0209e | 2023-05-04 01:15:47 +0300 | [diff] [blame] | 6 | LOCAL_VENDOR_MODULE := true |
| 7 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 8 | LOCAL_SRC_FILES := \ |
| 9 | AGnss.cpp \ |
| 10 | Gnss.cpp \ |
| 11 | AGnssRil.cpp \ |
| 12 | GnssMeasurement.cpp \ |
| 13 | GnssConfiguration.cpp \ |
| 14 | GnssBatching.cpp \ |
| 15 | GnssGeofencing.cpp \ |
| 16 | GnssNi.cpp \ |
| 17 | GnssDebug.cpp \ |
| 18 | MeasurementCorrections.cpp \ |
| 19 | GnssVisibilityControl.cpp |
| 20 | |
| 21 | LOCAL_SRC_FILES += \ |
| 22 | location_api/GnssAPIClient.cpp \ |
| 23 | location_api/MeasurementAPIClient.cpp \ |
| 24 | location_api/GeofenceAPIClient.cpp \ |
| 25 | location_api/BatchingAPIClient.cpp \ |
| 26 | location_api/LocationUtil.cpp \ |
| 27 | |
| 28 | ifeq ($(GNSS_HIDL_LEGACY_MEASURMENTS),true) |
| 29 | LOCAL_CFLAGS += \ |
| 30 | -DGNSS_HIDL_LEGACY_MEASURMENTS |
| 31 | endif |
| 32 | |
| 33 | LOCAL_C_INCLUDES:= \ |
| 34 | $(LOCAL_PATH)/location_api |
| 35 | |
| 36 | LOCAL_HEADER_LIBRARIES := \ |
| 37 | libgps.utils_headers \ |
| 38 | libloc_core_headers \ |
| 39 | libloc_pla_headers \ |
| 40 | liblocation_api_headers \ |
| 41 | liblocbatterylistener_headers |
| 42 | |
| 43 | LOCAL_SHARED_LIBRARIES := \ |
| 44 | liblog \ |
| 45 | libhidlbase \ |
| 46 | libcutils \ |
| 47 | libutils \ |
| 48 | android.hardware.gnss@1.0 \ |
| 49 | android.hardware.gnss@1.1 \ |
| 50 | android.hardware.gnss@2.0 \ |
| 51 | android.hardware.gnss.measurement_corrections@1.0 \ |
| 52 | android.hardware.gnss.visibility_control@1.0 \ |
| 53 | android.hardware.health@1.0 \ |
| 54 | android.hardware.health@2.0 \ |
| 55 | android.hardware.health@2.1 \ |
| 56 | android.hardware.power@1.2 \ |
| 57 | libbase |
| 58 | |
| 59 | LOCAL_SHARED_LIBRARIES += \ |
| 60 | libloc_core \ |
| 61 | libgps.utils \ |
| 62 | libdl \ |
| 63 | liblocation_api \ |
| 64 | |
| 65 | LOCAL_CFLAGS += $(GNSS_CFLAGS) |
| 66 | LOCAL_STATIC_LIBRARIES := liblocbatterylistener |
| 67 | LOCAL_STATIC_LIBRARIES += libhealthhalutils |
| 68 | include $(BUILD_SHARED_LIBRARY) |
| 69 | |
| 70 | include $(CLEAR_VARS) |
| 71 | LOCAL_MODULE := android.hardware.gnss@2.0-service-qti |
| 72 | |
Michael Bestas | 3a0209e | 2023-05-04 01:15:47 +0300 | [diff] [blame] | 73 | LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@2.0-service-qti.xml |
| 74 | LOCAL_VENDOR_MODULE := true |
| 75 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 76 | LOCAL_INIT_RC := android.hardware.gnss@2.0-service-qti.rc |
| 77 | LOCAL_SRC_FILES := \ |
| 78 | service.cpp \ |
| 79 | |
| 80 | LOCAL_HEADER_LIBRARIES := \ |
| 81 | libgps.utils_headers \ |
| 82 | libloc_core_headers \ |
| 83 | libloc_pla_headers \ |
| 84 | liblocation_api_headers |
| 85 | |
| 86 | |
| 87 | LOCAL_SHARED_LIBRARIES := \ |
| 88 | liblog \ |
| 89 | libcutils \ |
| 90 | libdl \ |
| 91 | libbase \ |
| 92 | libutils \ |
| 93 | libgps.utils \ |
| 94 | libqti_vndfwk_detect \ |
| 95 | |
| 96 | LOCAL_SHARED_LIBRARIES += \ |
| 97 | libhidlbase \ |
| 98 | android.hardware.gnss@1.0 \ |
| 99 | android.hardware.gnss@1.1 \ |
| 100 | android.hardware.gnss@2.0 \ |
| 101 | |
| 102 | LOCAL_CFLAGS += $(GNSS_CFLAGS) |
| 103 | |
| 104 | ifneq ($(LOC_HIDL_VERSION),) |
| 105 | LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"' |
| 106 | endif |
| 107 | |
| 108 | include $(BUILD_EXECUTABLE) |