feat: Update CMake configuration for Abseil and gRPC, enhance modular build support, and add CLI flag handling

This commit is contained in:
scawful
2025-10-03 20:24:58 -04:00
parent c9f439207e
commit db227c9de5
12 changed files with 128 additions and 81 deletions

View File

@@ -77,6 +77,8 @@ set(YAZE_AGENT_SOURCES
cli/service/planning/tile16_proposal_generator.cc
cli/service/resources/resource_catalog.cc
cli/service/resources/resource_context_builder.cc
cli/handlers/overworld_inspect.cc
cli/flags.cc
cli/service/rom/rom_sandbox_manager.cc
)

View File

@@ -5,6 +5,7 @@
#include <string_view>
#include <vector>
#include "absl/flags/declare.h"
#include "absl/flags/flag.h"
#include "absl/strings/str_format.h"
#include "absl/strings/match.h"
@@ -14,7 +15,7 @@
#include "yaze_config.h"
ABSL_FLAG(bool, tui, false, "Launch Text User Interface");
ABSL_FLAG(std::string, rom, "", "Path to the ROM file");
ABSL_DECLARE_FLAG(std::string, rom);
namespace {

5
src/cli/flags.cc Normal file
View File

@@ -0,0 +1,5 @@
#include <string>
#include "absl/flags/flag.h"
ABSL_FLAG(std::string, rom, "", "Path to the ROM file");

View File

@@ -65,6 +65,7 @@ add_executable(
cli/handlers/agent/test_common.cc
cli/handlers/agent/test_commands.cc
cli/handlers/agent/gui_commands.cc
cli/flags.cc
cli/modern_cli.cc
cli/tui/asar_patch.cc
cli/tui/palette_editor.cc