LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) include $(LOCAL_PATH)/../../../common.mk LOCAL_MODULE := libsdmcore LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD LOCAL_LICENSE_CONDITIONS := notice LOCAL_SANITIZE := integer_overflow LOCAL_VENDOR_MODULE := true LOCAL_MODULE_TAGS := optional LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include LOCAL_HEADER_LIBRARIES := display_headers LOCAL_CFLAGS := -fno-operator-names -Wno-unused-parameter -DLOG_TAG=\"SDM\" \ $(common_flags) LOCAL_SHARED_LIBRARIES := libdl libdisplaydebug libsdmutils ifneq ($(TARGET_IS_HEADLESS), true) LOCAL_CFLAGS += -isystem external/libdrm LOCAL_SHARED_LIBRARIES += libdrm libdrmutils libsdedrm LOCAL_HW_INTF_PATH_2 := drm endif ifeq ($(TARGET_USES_DRM_PP),true) LOCAL_CFLAGS += -DPP_DRM_ENABLE endif LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) LOCAL_SRC_FILES := core_interface.cpp \ core_impl.cpp \ display_base.cpp \ display_builtin.cpp \ display_pluggable.cpp \ display_virtual.cpp \ comp_manager.cpp \ strategy.cpp \ resource_default.cpp \ color_manager.cpp \ hw_events_interface.cpp \ hw_info_interface.cpp \ hw_interface.cpp ifneq ($(TARGET_IS_HEADLESS), true) LOCAL_SRC_FILES += $(LOCAL_HW_INTF_PATH_2)/hw_info_drm.cpp \ $(LOCAL_HW_INTF_PATH_2)/hw_device_drm.cpp \ $(LOCAL_HW_INTF_PATH_2)/hw_peripheral_drm.cpp \ $(LOCAL_HW_INTF_PATH_2)/hw_tv_drm.cpp \ $(LOCAL_HW_INTF_PATH_2)/hw_events_drm.cpp \ $(LOCAL_HW_INTF_PATH_2)/hw_scale_drm.cpp \ $(LOCAL_HW_INTF_PATH_2)/hw_virtual_drm.cpp \ $(LOCAL_HW_INTF_PATH_2)/hw_color_manager_drm.cpp endif include $(BUILD_SHARED_LIBRARY) SDM_HEADER_PATH := ../../include include $(CLEAR_VARS) LOCAL_VENDOR_MODULE := true LOCAL_COPY_HEADERS_TO := $(common_header_export_path)/sdm/core LOCAL_COPY_HEADERS = $(SDM_HEADER_PATH)/core/buffer_allocator.h \ $(SDM_HEADER_PATH)/core/buffer_sync_handler.h \ $(SDM_HEADER_PATH)/core/core_interface.h \ $(SDM_HEADER_PATH)/core/display_interface.h \ $(SDM_HEADER_PATH)/core/layer_buffer.h \ $(SDM_HEADER_PATH)/core/layer_stack.h \ $(SDM_HEADER_PATH)/core/sdm_types.h \ $(SDM_HEADER_PATH)/core/socket_handler.h \ $(SDM_HEADER_PATH)/core/dpps_interface.h include $(BUILD_COPY_HEADERS) include $(CLEAR_VARS) LOCAL_VENDOR_MODULE := true LOCAL_COPY_HEADERS_TO := $(common_header_export_path)/sdm/private LOCAL_COPY_HEADERS = $(SDM_HEADER_PATH)/private/color_interface.h \ $(SDM_HEADER_PATH)/private/color_params.h \ $(SDM_HEADER_PATH)/private/extension_interface.h \ $(SDM_HEADER_PATH)/private/hw_info_types.h \ $(SDM_HEADER_PATH)/private/partial_update_interface.h \ $(SDM_HEADER_PATH)/private/resource_interface.h \ $(SDM_HEADER_PATH)/private/strategy_interface.h include $(BUILD_COPY_HEADERS)