1 LOCAL_PATH := $(call my-dir) 2 include $(CLEAR_VARS) 3 include $(LOCAL_PATH)/../../../common.mk 4 5 LOCAL_MODULE := libsdmcore 6 LOCAL_VENDOR_MODULE := true 7 LOCAL_MODULE_TAGS := optional 8 LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) 9 LOCAL_HEADER_LIBRARIES := display_headers 10 LOCAL_CFLAGS := -Wno-unused-parameter -DLOG_TAG=\"SDM\" \ 11 $(common_flags) 12 ifeq ($(use_hwc2),false) 13 LOCAL_CFLAGS += -DUSE_SPECULATIVE_FENCES 14 endif 15 LOCAL_HW_INTF_PATH_1 := fb 16 LOCAL_SHARED_LIBRARIES := libdl libsdmutils 17 18 ifneq ($(TARGET_IS_HEADLESS), true) 19 LOCAL_CFLAGS += -isystem external/libdrm 20 LOCAL_SHARED_LIBRARIES += libdrm libdrmutils 21 LOCAL_HW_INTF_PATH_2 := drm 22 endif 23 24 ifeq ($(TARGET_USES_DRM_PP),true) 25 LOCAL_CFLAGS += -DPP_DRM_ENABLE 26 endif 27 28 LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) $(kernel_deps) 29 LOCAL_SRC_FILES := core_interface.cpp \ 30 core_impl.cpp \ 31 display_base.cpp \ 32 display_primary.cpp \ 33 display_hdmi.cpp \ 34 display_virtual.cpp \ 35 comp_manager.cpp \ 36 strategy.cpp \ 37 resource_default.cpp \ 38 dump_impl.cpp \ 39 color_manager.cpp \ 40 hw_events_interface.cpp \ 41 hw_info_interface.cpp \ 42 hw_interface.cpp \ 43 $(LOCAL_HW_INTF_PATH_1)/hw_info.cpp \ 44 $(LOCAL_HW_INTF_PATH_1)/hw_device.cpp \ 45 $(LOCAL_HW_INTF_PATH_1)/hw_primary.cpp \ 46 $(LOCAL_HW_INTF_PATH_1)/hw_hdmi.cpp \ 47 $(LOCAL_HW_INTF_PATH_1)/hw_virtual.cpp \ 48 $(LOCAL_HW_INTF_PATH_1)/hw_color_manager.cpp \ 49 $(LOCAL_HW_INTF_PATH_1)/hw_scale.cpp \ 50 $(LOCAL_HW_INTF_PATH_1)/hw_events.cpp 51 52 ifneq ($(TARGET_IS_HEADLESS), true) 53 LOCAL_SRC_FILES += $(LOCAL_HW_INTF_PATH_2)/hw_info_drm.cpp \ 54 $(LOCAL_HW_INTF_PATH_2)/hw_device_drm.cpp \ 55 $(LOCAL_HW_INTF_PATH_2)/hw_events_drm.cpp \ 56 $(LOCAL_HW_INTF_PATH_2)/hw_color_manager_drm.cpp 57 endif 58 59 include $(BUILD_SHARED_LIBRARY) 60 61 SDM_HEADER_PATH := ../../include 62 include $(CLEAR_VARS) 63 LOCAL_VENDOR_MODULE := true 64 LOCAL_COPY_HEADERS_TO := $(common_header_export_path)/sdm/core 65 LOCAL_COPY_HEADERS = $(SDM_HEADER_PATH)/core/buffer_allocator.h \ 66 $(SDM_HEADER_PATH)/core/buffer_sync_handler.h \ 67 $(SDM_HEADER_PATH)/core/core_interface.h \ 68 $(SDM_HEADER_PATH)/core/debug_interface.h \ 69 $(SDM_HEADER_PATH)/core/display_interface.h \ 70 $(SDM_HEADER_PATH)/core/dump_interface.h \ 71 $(SDM_HEADER_PATH)/core/layer_buffer.h \ 72 $(SDM_HEADER_PATH)/core/layer_stack.h \ 73 $(SDM_HEADER_PATH)/core/sdm_types.h \ 74 $(SDM_HEADER_PATH)/core/socket_handler.h 75 include $(BUILD_COPY_HEADERS) 76 77 include $(CLEAR_VARS) 78 LOCAL_VENDOR_MODULE := true 79 LOCAL_COPY_HEADERS_TO := $(common_header_export_path)/sdm/private 80 LOCAL_COPY_HEADERS = $(SDM_HEADER_PATH)/private/color_interface.h \ 81 $(SDM_HEADER_PATH)/private/color_params.h \ 82 $(SDM_HEADER_PATH)/private/extension_interface.h \ 83 $(SDM_HEADER_PATH)/private/hw_info_types.h \ 84 $(SDM_HEADER_PATH)/private/partial_update_interface.h \ 85 $(SDM_HEADER_PATH)/private/resource_interface.h \ 86 $(SDM_HEADER_PATH)/private/strategy_interface.h \ 87 $(SDM_HEADER_PATH)/private/dpps_control_interface.h 88 include $(BUILD_COPY_HEADERS) 89