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