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