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