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

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

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

set(INC_SYS
)

set(SRC
  space_agent_bubble.cc
  agent_bubble_glass.cc
  agent_bubble_composer.cc
  agent_ui_composer_metrics.cc
  agent_bubble_references.cc
  agent_bubble_reference_items.cc
  agent_bubble_references_navigation.cc
  agent_bubble_interaction.cc
  agent_bubble_linux_interaction.cc
  agent_bubble_resize_edges.hh
  agent_bubble_pill_voice.cc
  agent_ui_asset_picker.cc
  agent_ui_asset_picker_detail.cc
  agent_ui_asset_picker_qa.cc
  agent_ui_draw.cc
  agent_ui_draw_primitives.hh
  agent_ui_controls_paint.cc
  agent_ui_refine_paint.cc
  agent_ui_model_card.cc
  agent_ui_model_card_data.cc
  agent_ui_model_card_draw.cc
  agent_ui_model_card_layout.cc
  agent_ui_model_card_qa.cc
  agent_ui_provider.cc
  agent_ui_provider_chevron.cc
  agent_ui_engine.cc
  agent_ui_generations.cc
  agent_ui_generations_data.cc
  agent_ui_generations_layout.cc
  agent_ui_generations_detail.cc
  agent_ui_generations_qa.cc
  agent_ui_generations_navigation.cc
  agent_ui_generations_libraries.cc
  agent_ui_generations_grid.cc
  agent_ui_generations_read.cc
  agent_ui_generations_selection.cc
  agent_ui_icons.cc
  agent_ui_tab_icons.cc
  agent_ui_layout.cc
  agent_ui_motion.cc
  agent_ui_cat_scheduler.cc
  agent_ui_pane_kit.cc
  agent_ui_pane_kit_feedback.cc
  agent_ui_pane_kit_thumbs.cc
  agent_ui_pill_cat.cc
  agent_ui_pill_draft.cc
  agent_ui_queue_navigation.cc
  agent_ui_queue_data.cc
  agent_ui_queue_failure.cc
  agent_ui_queue.cc
  agent_ui_tabsplat.cc
  agent_ui_tabsplat_paint.cc
  agent_ui_tabsplat_state.cc
  agent_ui_tabmedia.cc
  agent_ui_tabmedia_util.cc
  agent_ui_state.cc
  agent_ui_tab3d.cc
  agent_ui_tab3d_params.cc
  agent_ui_visible_if.cc
  agent_ui_voice_paint.cc

  agent_bubble_intern.hh
  agent_bubble_references.hh
  agent_bubble_glass.hh
  agent_ui_asset_picker.hh
  agent_ui_asset_picker_intern.hh
  agent_ui_asset_picker_layout.hh
  agent_ui_draw.hh
  agent_ui_model_card.hh
  agent_ui_model_card_intern.hh
  agent_ui_provider.hh
  agent_ui_engine.hh
  agent_ui_generations.hh
  agent_ui_generations_clip.hh
  agent_ui_generations_intern.hh
  agent_ui_generations_layout.hh
  agent_ui_icons.hh
  agent_ui_layout.hh
  agent_ui_motion.hh
  agent_ui_pane_kit.hh
  agent_ui_pill_cat.hh
  agent_ui_pill_draft.hh
  agent_ui_cat_style.hh
  agent_ui_cat_activity.hh
  agent_ui_cat_catch.hh
  agent_ui_cat_cadence.hh
  agent_ui_cat_scheduler.hh
  agent_ui_chip_fit.hh
  agent_ui_voice_motion.hh
  agent_ui_voice_paint.hh
  ../include/ED_agent_bubble_motion.hh
  agent_ui_pill_cat_pose.hh
  agent_ui_queue_intern.hh
  agent_ui_queue.hh
  agent_ui_tabsplat.hh
  agent_ui_tabsplat_intern.hh
  agent_ui_tabmedia.hh
  agent_ui_tabmedia_intern.hh
  agent_ui_tab3d.hh
  agent_ui_tab3d_intern.hh
  agent_ui_visible_if.hh
  agent_ui_theme.hh
)

set(LIB
  PRIVATE bf::asset_system
  PRIVATE bf::blenfont
  PRIVATE bf::blenkernel
  PRIVATE bf::blenlib
  PRIVATE bf::blenloader
  PRIVATE bf::blentranslation
  PRIVATE bf::depsgraph
  PRIVATE bf::dna
  PRIVATE bf::gpu
  PRIVATE bf::imbuf
  PRIVATE bf::intern::guardedalloc
  PRIVATE bf::dependencies::fmt
  PRIVATE bf::windowmanager
  bf_editor_interface
  # We reuse mixie chat's custom-drawn footer region for our composer
  # so the agent bubble's input/composer looks and behaves identically
  # (auto-grow on Shift+Enter, attachment thumbnails, send button, …).
  bf_editor_space_mixie_chat
)

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

# RNA_prototypes.hh
add_dependencies(bf_editor_space_agent_bubble bf_rna)
