refactor(cmake): update include paths and defer test support linkage

- Updated include paths in several source files to reflect the new directory structure, ensuring consistency across the project.
- Deferred the linkage of the yaze_test_support library to the test.cmake file for better dependency management and ordering.

Benefits:
- Improved organization of include paths for better maintainability.
- Enhanced modularity by managing test dependencies separately.
This commit is contained in:
scawful
2025-10-11 12:19:51 -04:00
parent 1f56ff2fb8
commit 18986e3656
7 changed files with 16 additions and 10 deletions

View File

@@ -54,12 +54,14 @@
#include "app/editor/system/toast_manager.h"
#include "app/emu/emulator.h"
#include "app/gfx/performance/performance_dashboard.h"
#include "editor/editor.h"
#include "app/editor/editor.h"
#ifdef YAZE_WITH_GRPC
#include "app/core/service/screenshot_utils.h"
#include "app/editor/agent/agent_chat_widget.h"
#include "cli/service/agent/agent_control_server.h"
#include "cli/service/agent/conversational_agent_service.h"
#include "cli/service/ai/gemini_ai_service.h"
#include "absl/flags/flag.h"
#endif
#ifdef YAZE_WITH_GRPC
#include "app/editor/agent/automation_bridge.h"
@@ -539,6 +541,12 @@ void EditorManager::Initialize(gfx::IRenderer* renderer, const std::string& file
context_.shortcut_manager.RegisterShortcut(
"Proposal Drawer", {ImGuiKey_P, ImGuiMod_Ctrl},
[this]() { proposal_drawer_.Toggle(); });
// Start the agent control server if the flag is set
if (absl::GetFlag(FLAGS_agent_control)) {
agent_control_server_ = std::make_unique<agent::AgentControlServer>(&emulator_);
agent_control_server_->Start();
}
#endif
// Testing shortcuts (only when tests are enabled)