1ifeq ($(GNSS_HIDL_VERSION),1.0) 2 3LOCAL_PATH := $(call my-dir) 4 5include $(CLEAR_VARS) 6LOCAL_MODULE := android.hardware.gnss@1.0-impl-qti 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_SANITIZE += $(GNSS_SANITIZE) 64# activate the following line for debug purposes only, comment out for production 65#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG) 66LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@1.0-service-qti.xml 67LOCAL_VENDOR_MODULE := true 68LOCAL_MODULE_RELATIVE_PATH := hw 69LOCAL_INIT_RC := android.hardware.gnss@1.0-service-qti.rc 70LOCAL_SRC_FILES := \ 71 service.cpp \ 72 73LOCAL_C_INCLUDES:= \ 74 $(LOCAL_PATH)/location_api 75LOCAL_HEADER_LIBRARIES := \ 76 libgps.utils_headers \ 77 libloc_core_headers \ 78 libloc_pla_headers \ 79 liblocation_api_headers 80 81 82LOCAL_SHARED_LIBRARIES := \ 83 liblog \ 84 libcutils \ 85 libdl \ 86 libbase \ 87 libutils \ 88 libgps.utils \ 89 libqti_vndfwk_detect \ 90 91LOCAL_SHARED_LIBRARIES += \ 92 libhidlbase \ 93 android.hardware.gnss@1.0 \ 94 95LOCAL_CFLAGS += $(GNSS_CFLAGS) 96 97ifneq ($(LOC_HIDL_VERSION),) 98LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"' 99endif 100 101include $(BUILD_EXECUTABLE) 102 103endif #ifeq ($(GNSS_HIDL_VERSION),1.0) 104