1ifneq ($(TARGET_IS_HEADLESS), true) 2LOCAL_PATH := $(call my-dir) 3include $(LOCAL_PATH)/../common.mk 4include $(CLEAR_VARS) 5 6LOCAL_MODULE := libdrmutils 7LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 8LOCAL_LICENSE_CONDITIONS := notice 9LOCAL_SANITIZE := integer_overflow 10LOCAL_VENDOR_MODULE := true 11LOCAL_MODULE_TAGS := optional 12LOCAL_C_INCLUDES := external/libdrm \ 13 $(kernel_includes) 14LOCAL_HEADER_LIBRARIES := display_headers 15LOCAL_SHARED_LIBRARIES := libdrm libdl libdisplaydebug 16LOCAL_CFLAGS := -DLOG_TAG=\"DRMUTILS\" -Wall -Werror -fno-operator-names 17LOCAL_CFLAGS += $(common_flags) 18LOCAL_CLANG := true 19LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 20LOCAL_SRC_FILES := drm_master.cpp drm_res_mgr.cpp drm_lib_loader.cpp 21LOCAL_COPY_HEADERS_TO := qcom/display 22LOCAL_COPY_HEADERS := drm_master.h drm_res_mgr.h drm_lib_loader.h drm_logger.h drm_interface.h 23 24include $(BUILD_SHARED_LIBRARY) 25endif 26