feat(cbuild): 重构构建系统并迁移至 tools/cbuild

将 `cbuild.py` 迁移至 `tools/cbuild/` 并进行大量功能增强。引入依赖解析器、支持颜色日志输出、
改进包配置默认值处理、完善构建目标识别与拓扑排序依赖管理。同时添加 `.gitignore` 和
`pyproject.toml` 以支持标准 Python 包结构,并更新 README 文档。

新增命令支持:tree(显示依赖树)、clean(带文件统计)、test(运行测试)等,
优化了 Windows 平台下的可执行文件扩展名处理逻辑。

移除了旧的 `wc.py` 行数统计脚本。
This commit is contained in:
zzy
2025-11-22 15:08:49 +08:00
parent d6941e1d2f
commit 63f6f13883
8 changed files with 270 additions and 134 deletions

9
tools/cbuild/README.md Normal file
View File

@@ -0,0 +1,9 @@
# cbuild
## dependencies
[uv](https://docs.astral.sh/uv/)
一个用 Rust 编写的极速 Python 包和项目管理工具。
## install
使用 `uv pip install -e .``cbuild` 添加到 python 环境