# SPDX-FileCopyrightText: 2025 Blender Authors
# SPDX-FileCopyrightText: 2026 Adeveda Enterprises Private Limited
#
# SPDX-License-Identifier: GPL-3.0-or-later

set(INC
  ../include
  ../../makesrna

  # RNA_prototypes.hh
  ${CMAKE_BINARY_DIR}/source/blender/makesrna
)

set(INC_SYS
)

set(SRC
  mixie_chat_anim_pump.cc
  mixie_chat_ops.cc
  mixie_chat_action_buttons.cc
  mixie_chat_agent_bubble.cc
  mixie_chat_asset_picker.cc
  mixie_chat_asset_picker_drop.cc
  mixie_chat_document_ops.cc
  mixie_chat_code_copy.cc
  mixie_chat_composer_focus.cc
  mixie_chat_dragdrop.cc
  mixie_chat_footer_cache.cc
  mixie_chat_footer_layout.cc
  mixie_chat_footer_thumbnails.cc
  mixie_chat_history_chrome.cc
  mixie_chat_history_events.cc
  mixie_chat_history_overlay.cc
  mixie_chat_lightbox.cc
  mixie_chat_line_break.cc
  mixie_chat_history_rows.cc
  mixie_chat_history_util.cc
  mixie_chat_hit_testing.cc
  mixie_chat_qa_targets.cc
  mixie_chat_ink_events.cc
  mixie_chat_ink_local.cc
  mixie_chat_ink_overlay.cc
  mixie_chat_ink_util.cc
  mixie_chat_main_region.cc
  mixie_chat_markdown.cc
  mixie_chat_markdown_cache.cc
  mixie_chat_markdown_parse.cc
  mixie_chat_mention.cc
  mixie_chat_prompt_history.cc
  mixie_chat_table.cc
  mixie_chat_empty_state.cc
  mixie_chat_feedback.cc
  mixie_chat_messages.cc
  mixie_chat_messages_content.cc
  mixie_chat_messages_layout.cc
  mixie_chat_messages_render.cc
  mixie_chat_props.cc
  mixie_chat_prose_wrap.cc
  mixie_chat_rules_events.cc
  mixie_chat_rules_overlay.cc
  mixie_chat_rules_chrome.cc
  mixie_chat_rules_editor.cc
  mixie_chat_rules_rows.cc
  mixie_chat_rules_util.cc
  mixie_chat_scroll_indicator.cc
  mixie_chat_selection.cc
  mixie_chat_slots.cc
  mixie_chat_steps.cc
  mixie_chat_thinking.cc
  mixie_chat_ui_image.cc
  mixie_chat_ui_rich_text.cc
  mixie_chat_ui_rounded_rect.cc
  mixie_chat_ui_primitives.cc
  mixie_chat_ui_theme.cc
  mixie_chat_voice.cc
  mixie_chat_ui_widgets.cc
  mixie_chat_ui_attachments.cc

  mixie_chat_anim_pump.hh
  mixie_chat_footer_constants.hh
  mixie_chat_footer_intern.hh
  mixie_chat_history_intern.hh
  mixie_chat_ink_intern.hh
  mixie_chat_intern.hh
  mixie_chat_layout_data.hh
  mixie_chat_line_break.hh
  mixie_chat_markdown_intern.hh
  mixie_chat_prompt_history.hh
  mixie_chat_rules_intern.hh
  mixie_chat_ui_types.hh
)

set(LIB
  PRIVATE bf::blenfont
  PRIVATE bf::blenkernel
  PRIVATE bf::blenlib
  PRIVATE bf::blenloader
  PRIVATE bf::blentranslation
  PRIVATE bf::dna
  PRIVATE bf::gpu
  PRIVATE bf::imbuf
  PRIVATE bf::intern::guardedalloc
  PRIVATE bf::windowmanager
  bf_editor_interface
)

blender_add_lib(bf_editor_space_mixie_chat "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")

# RNA_prototypes.hh dna_type_offsets.h
add_dependencies(bf_editor_space_mixie_chat bf_rna)
