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@1.1-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 | GnssBatching.cpp \ |
| 14 | GnssGeofencing.cpp \ |
| 15 | GnssMeasurement.cpp \ |
| 16 | GnssNi.cpp \ |
| 17 | GnssConfiguration.cpp \ |
| 18 | GnssDebug.cpp \ |
| 19 | AGnssRil.cpp |
| 20 | |
| 21 | LOCAL_SRC_FILES += \ |
| 22 | location_api/LocationUtil.cpp \ |
| 23 | location_api/GnssAPIClient.cpp \ |
| 24 | location_api/GeofenceAPIClient.cpp \ |
| 25 | location_api/BatchingAPIClient.cpp \ |
| 26 | location_api/MeasurementAPIClient.cpp \ |
| 27 | |
| 28 | LOCAL_C_INCLUDES:= \ |
| 29 | $(LOCAL_PATH)/location_api |
| 30 | LOCAL_HEADER_LIBRARIES := \ |
| 31 | libgps.utils_headers \ |
| 32 | libloc_core_headers \ |
| 33 | libloc_pla_headers \ |
| 34 | liblocation_api_headers \ |
| 35 | liblocbatterylistener_headers |
| 36 | |
| 37 | LOCAL_SHARED_LIBRARIES := \ |
| 38 | liblog \ |
| 39 | libhidlbase \ |
| 40 | libcutils \ |
| 41 | libutils \ |
| 42 | android.hardware.gnss@1.0 \ |
| 43 | android.hardware.gnss@1.1 \ |
| 44 | android.hardware.health@1.0 \ |
| 45 | android.hardware.health@2.0 \ |
| 46 | android.hardware.power@1.2 \ |
| 47 | libbase |
| 48 | |
| 49 | LOCAL_SHARED_LIBRARIES += \ |
| 50 | libloc_core \ |
| 51 | libgps.utils \ |
| 52 | libdl \ |
| 53 | liblocation_api \ |
| 54 | |
| 55 | LOCAL_CFLAGS += $(GNSS_CFLAGS) |
| 56 | LOCAL_STATIC_LIBRARIES := liblocbatterylistener |
| 57 | LOCAL_STATIC_LIBRARIES += libhealthhalutils |
| 58 | include $(BUILD_SHARED_LIBRARY) |
| 59 | |
| 60 | include $(CLEAR_VARS) |
| 61 | LOCAL_MODULE := android.hardware.gnss@1.1-service-qti |
| 62 | |
| 63 | # activate the following line for debug purposes only, comment out for production |
| 64 | #LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG) |
| 65 | LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@1.1-service-qti.xml |
| 66 | LOCAL_VENDOR_MODULE := true |
| 67 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 68 | LOCAL_INIT_RC := android.hardware.gnss@1.1-service-qti.rc |
| 69 | LOCAL_SRC_FILES := \ |
| 70 | service.cpp \ |
| 71 | |
| 72 | LOCAL_C_INCLUDES:= \ |
| 73 | $(LOCAL_PATH)/location_api |
| 74 | LOCAL_HEADER_LIBRARIES := \ |
| 75 | libgps.utils_headers \ |
| 76 | libloc_core_headers \ |
| 77 | libloc_pla_headers \ |
| 78 | liblocation_api_headers |
| 79 | |
| 80 | |
| 81 | LOCAL_SHARED_LIBRARIES := \ |
| 82 | liblog \ |
| 83 | libcutils \ |
| 84 | libdl \ |
| 85 | libbase \ |
| 86 | libutils \ |
| 87 | libgps.utils \ |
| 88 | libqti_vndfwk_detect \ |
| 89 | |
| 90 | LOCAL_SHARED_LIBRARIES += \ |
| 91 | libhidlbase \ |
| 92 | android.hardware.gnss@1.0 \ |
| 93 | android.hardware.gnss@1.1 \ |
| 94 | |
| 95 | LOCAL_CFLAGS += $(GNSS_CFLAGS) |
| 96 | |
| 97 | ifneq ($(LOC_HIDL_VERSION),) |
| 98 | LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"' |
| 99 | endif |
| 100 | |
| 101 | include $(BUILD_EXECUTABLE) |