1ifneq ($(TARGET_IS_HEADLESS), true) 2LOCAL_PATH := $(call my-dir) 3include $(LOCAL_PATH)/../common.mk 4include $(CLEAR_VARS) 5 6common_header_export_path := qcom/display 7 8LOCAL_MODULE := libsdedrm 9LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 10LOCAL_LICENSE_CONDITIONS := notice 11LOCAL_SANITIZE := integer_overflow 12LOCAL_MODULE_TAGS := optional 13LOCAL_SHARED_LIBRARIES := libdrm libdrmutils libdisplaydebug libcutils 14LOCAL_HEADER_LIBRARIES := display_headers 15LOCAL_C_INCLUDES := $(kernel_includes) \ 16 -isystem external/libdrm 17LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 18LOCAL_CFLAGS := -Wno-missing-field-initializers -Wall -Werror -fno-operator-names \ 19 -Wno-unused-parameter -DLOG_TAG=\"SDE_DRM\" 20LOCAL_CFLAGS += $(common_flags) 21LOCAL_CLANG := true 22LOCAL_SRC_FILES := drm_manager.cpp \ 23 drm_connector.cpp \ 24 drm_encoder.cpp \ 25 drm_crtc.cpp \ 26 drm_plane.cpp \ 27 drm_atomic_req.cpp \ 28 drm_utils.cpp \ 29 drm_pp_manager.cpp \ 30 drm_property.cpp \ 31 drm_dpps_mgr_imp.cpp 32 33ifeq ($(TARGET_USES_DRM_PP),true) 34LOCAL_CFLAGS += -DPP_DRM_ENABLE 35endif 36 37ifeq ($(LLVM_SA), true) 38LOCAL_CFLAGS += --compile-and-analyze --analyzer-perf 39endif 40 41LOCAL_VENDOR_MODULE := true 42include $(BUILD_SHARED_LIBRARY) 43endif 44