Skip to content

[Part B] docs: build and run with xmake or with mcpp - #29

Open
Sunrisepeak wants to merge 1 commit into
Yuria-Shikibe:masterfrom
Sunrisepeak:pr/docs-build-and-run
Open

[Part B] docs: build and run with xmake or with mcpp#29
Sunrisepeak wants to merge 1 commit into
Yuria-Shikibe:masterfrom
Sunrisepeak:pr/docs-build-and-run

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Sep 13, 2026

Copy link
Copy Markdown

只有文档,一个 commit。Part B,配合 Part A(mcpp 构建支持)。

  • README.md 的「快速运行」拆成两块:先「用 mcpp」(Windows / Linux / macOS:mcpp run -p src.hellomcpp run -p src.examplesmcpp test),后「用 xmake」;两条链并存的说明作为 > 注: 收尾。
  • 新增 docs/build-and-development.md:README 的文档表从一开始就链接到它,但仓库里一直没有这个文件。内容:两条构建链各自的环境要求、命令、生成资产的去向、目标与依赖对照、平台支持(含 macOS 上只对 Apple 生效的三处配置)、依赖 xrgui 的项目必须自己说的两件事(工具链、设备轴,以 src.hello/mcpp.toml 为例)、showcase 在 debug 构建下对 validation layer 的依赖、Windows 上 GUI 子系统的代价;文末链接 mcpp 仓库、文档、索引、插件仓库,以及给 AI 助手用的入口。

对 xmake 的影响:无。

合并顺序:在 Part A 之后(文档描述的是 A 之后的仓库)。diff 基于 master,只有文档。

CI:master 自己的 xmake job 目前在 CI 的 toolset 上编不过(Part A 的第 1 个 commit 修它),所以这个 PR 上那个检查的结果不是本 PR 的。fork 上叠在 Part A 之上跑过全套 mcpp CI(Windows / Linux / macOS),全绿。

README's quick-run becomes two blocks, mcpp first (it covers three
platforms) and xmake second, closed by a note that the two chains build
the same tree. docs/build-and-development.md -- linked from the README's
table since the beginning but never present -- states what each chain
needs, the commands, where generated assets go, targets and
dependencies side by side, platform support including the three
Apple-only configurations, what a project depending on xrgui must say
itself (toolchain, accelerator) with src.hello's manifest as the
example, the showcase's need for the validation layer in a debug build,
and the Windows GUI subsystem's cost. Links to the mcpp repository,
index, plugins and the AI skill entry close it.
@Sunrisepeak Sunrisepeak changed the title [Part B] docs: build and run with xmake or with mcpp, and the two project templates [Part B] docs: build and run with xmake or with mcpp Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant