feat: Update CMake configuration for Abseil and gRPC, enhance modular build support, and add CLI flag handling
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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
5
src/cli/flags.cc
Normal file
@@ -0,0 +1,5 @@
|
||||
#include <string>
|
||||
|
||||
#include "absl/flags/flag.h"
|
||||
|
||||
ABSL_FLAG(std::string, rom, "", "Path to the ROM 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
|
||||
|
||||
Reference in New Issue
Block a user