1LOCAL_PATH := $(call my-dir) 2 3include $(CLEAR_VARS) 4LOCAL_MODULE := android.hardware.gnss@1.0-impl-qti 5LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib 6LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 7LOCAL_MODULE_RELATIVE_PATH := hw 8LOCAL_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 19LOCAL_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 26LOCAL_C_INCLUDES:= \ 27 $(LOCAL_PATH)/location_api 28LOCAL_HEADER_LIBRARIES := \ 29 libgps.utils_headers \ 30 libloc_core_headers \ 31 libloc_pla_headers \ 32 liblocation_api_headers 33 34LOCAL_SHARED_LIBRARIES := \ 35 liblog \ 36 libhidlbase \ 37 libhidltransport \ 38 libhwbinder \ 39 libutils \ 40 android.hardware.gnss@1.0 \ 41 42LOCAL_SHARED_LIBRARIES += \ 43 libloc_core \ 44 libgps.utils \ 45 libdl \ 46 libloc_pla \ 47 liblocation_api \ 48 49LOCAL_CFLAGS += $(GNSS_CFLAGS) \ 50 -Wno-error 51include $(BUILD_SHARED_LIBRARY) 52 53BUILD_GNSS_HIDL_SERVICE := true 54ifneq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET), true) 55ifneq ($(LW_FEATURE_SET),true) 56BUILD_GNSS_HIDL_SERVICE := false 57endif # LW_FEATURE_SET 58endif # BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET 59 60ifeq ($(BUILD_GNSS_HIDL_SERVICE), true) 61include $(CLEAR_VARS) 62LOCAL_MODULE := android.hardware.gnss@1.0-service-qti 63LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES) 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 85LOCAL_SHARED_LIBRARIES += \ 86 libhwbinder \ 87 libhidlbase \ 88 libhidltransport \ 89 android.hardware.gnss@1.0 \ 90 91LOCAL_CFLAGS += $(GNSS_CFLAGS) \ 92 -Wno-error 93include $(BUILD_EXECUTABLE) 94endif # BUILD_GNSS_HIDL_SERVICE 95