TUT/cmake/version.hpp.in
m1ngsama 6408f0e95c feat: Complete FTXUI refactoring with clean architecture
Major architectural refactoring from ncurses to FTXUI framework with
professional engineering structure.

Project Structure:
- src/core/: Browser engine, URL parser, HTTP client
- src/ui/: FTXUI components (main window, address bar, content view, panels)
- src/renderer/: HTML renderer, text formatter, style parser
- src/utils/: Logger, config manager, theme manager
- tests/unit/: Unit tests for core components
- tests/integration/: Integration tests
- assets/: Default configs, themes, keybindings

New Features:
- btop-style four-panel layout with rounded borders
- TOML-based configuration system
- Multiple color themes (default, nord, gruvbox, solarized)
- Comprehensive logging system
- Modular architecture with clear separation of concerns

Build System:
- Updated CMakeLists.txt for modular build
- Prefer system packages (Homebrew) over FetchContent
- Google Test integration for testing
- Version info generation via cmake/version.hpp.in

Configuration:
- Default config.toml with browser settings
- Four built-in themes
- Default keybindings configuration
- Config stored in ~/.config/tut/

Removed:
- Legacy v1 source files (ncurses-based)
- Old render/ directory
- Duplicate and obsolete test files
- Old documentation files

Binary: ~827KB (well under 5MB goal)
Dependencies: FTXUI, cpp-httplib, toml11, gumbo-parser, OpenSSL
2025-12-29 22:07:39 +08:00

42 lines
971 B
C++

/**
* @file version.hpp
* @brief TUT 版本信息
*
* 此文件由 CMake 自动生成,请勿手动修改
*/
#pragma once
namespace tut {
/// 主版本号
constexpr int VERSION_MAJOR = @PROJECT_VERSION_MAJOR@;
/// 次版本号
constexpr int VERSION_MINOR = @PROJECT_VERSION_MINOR@;
/// 补丁版本号
constexpr int VERSION_PATCH = @PROJECT_VERSION_PATCH@;
/// 完整版本字符串
constexpr const char* VERSION_STRING = "@PROJECT_VERSION@";
/// 项目名称
constexpr const char* PROJECT_NAME = "@PROJECT_NAME@";
/// 项目描述
constexpr const char* PROJECT_DESCRIPTION = "@PROJECT_DESCRIPTION@";
/// 项目主页
constexpr const char* PROJECT_HOMEPAGE = "@PROJECT_HOMEPAGE_URL@";
/// 构建类型
constexpr const char* BUILD_TYPE = "@CMAKE_BUILD_TYPE@";
/// 编译器 ID
constexpr const char* COMPILER_ID = "@CMAKE_CXX_COMPILER_ID@";
/// 编译器版本
constexpr const char* COMPILER_VERSION = "@CMAKE_CXX_COMPILER_VERSION@";
} // namespace tut