1ifneq (,$(filter arm aarch64 arm64, $(TARGET_ARCH))) 2LOCAL_PATH := $(call my-dir) 3include $(CLEAR_VARS) 4ifeq ($(PRODUCT_VENDOR_MOVE_ENABLED),true) 5LOCAL_VENDOR_MODULE := true 6endif 7LOCAL_MODULE := wcnss_service 8LOCAL_HEADER_LIBRARIES += vendor_common_inc 9LOCAL_SRC_FILES := wcnss_service.c 10LOCAL_SHARED_LIBRARIES := libc libcutils libutils liblog 11ifeq ($(strip $(TARGET_USES_QCOM_WCNSS_QMI)),true) 12LOCAL_CFLAGS += -DWCNSS_QMI 13ifeq ($(filter 10% Q% q%,$(TARGET_PLATFORM_VERSION)),) 14#For Android R and above, assuming not compiling on Q and lower 15LOCAL_HEADER_LIBRARIES += libqmi_common_headers 16else 17LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/qmi-framework/inc 18endif 19LOCAL_SRC_FILES += wcnss_qmi_client.c 20LOCAL_SHARED_LIBRARIES += libqmiservices libqmi_cci 21LOCAL_HEADER_LIBRARIES += libmdmdetect_headers 22LOCAL_SHARED_LIBRARIES += libmdmdetect 23LOCAL_HEADER_LIBRARIES += libril-qc-qmi-services-headers 24endif #TARGET_USES_QCOM_WCNSS_QMI 25LOCAL_MODULE_TAGS := optional 26LOCAL_CFLAGS += -Wall -Werror 27LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 28LOCAL_LICENSE_CONDITIONS := notice 29include $(BUILD_EXECUTABLE) 30endif 31