feat: Add Application Entry Point for Yaze

- Introduced app_main.cc as the main entry point for the Yaze application, separating it from the C API implementation.
- Implemented command-line flag parsing for ROM file loading, logging level, log file path, and log categories.
- Configured the logging system to enhance traceability and user feedback during application startup and execution.
- Integrated the core controller for managing application state and rendering, improving overall application structure and functionality.
This commit is contained in:
scawful
2025-10-05 14:38:32 -04:00
parent 9c8cdb677b
commit c6ba93fd33
5 changed files with 102 additions and 84 deletions

View File

@@ -477,11 +477,16 @@ endif()
# Yaze Core Library (for testing and C API)
if (YAZE_BUILD_LIB)
# Sources shared by the C API library
# Sources shared by the C API library (minimal dependencies)
set(YAZE_C_SOURCES
./yaze.cc
cli/service/gui/gui_automation_client.cc
)
# Application main entry point (uses controller and full dependencies)
set(YAZE_APP_MAIN_SOURCES
./app_main.cc
)
if(YAZE_USE_MODULAR_BUILD)
# Aggregate modular libraries into an interface target for backward compatibility