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