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