feat: implement M2 emulator foundation

This commit is contained in:
2026-09-12 12:30:21 +08:00
parent b52de7eb4d
commit 5dfd0ef9f5
35 changed files with 1663 additions and 15 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
# NESLite 可复现构建说明
本说明对应 M0 基线。命令使用系统默认 PowerShell 7.6.6(`pwsh`)从仓库根目录执行;不需要手工复制 `.so`、
本说明对应 M0~M2 基线。命令使用系统默认 PowerShell 7.6.6(`pwsh`)从仓库根目录执行;不需要手工复制 `.so`、
FCEUmm 或 Oboe 文件。
## 前置条件
@@ -17,7 +17,7 @@ FCEUmm 或 Oboe 文件。
.\tools\fetch-third-party.ps1
```
该脚本根据 `third_party/manifest.json` 检出固定提交;M0 的 JNI stub 不依赖这些源码。
该脚本根据 `third_party/manifest.json` 检出固定提交;M2 构建需要 FCEUmm 与 libretro headers。
## 构建调试 APK
@@ -35,9 +35,9 @@ pwsh -NoProfile -File .\tools\check.ps1 -Scope Build
| `pwsh -NoProfile -File ./tools/check.ps1 -Scope Build` | 生成调试 APK | 单元、原生、实机、长测 |
| `pwsh -NoProfile -File ./tools/check.ps1 -Scope Local` | Kotlin 本地单元测试 | APK、原生、实机、长测 |
| `pwsh -NoProfile -File ./tools/check.ps1 -Scope Module` | 原生 smoke test 与 Kotlin 本地单测 | APK、实机、长测 |
| `pwsh -NoProfile -File ./tools/check.ps1 -Scope Stage` | M0 构建加上述有界测试 | 设备、耐久、H 专项 |
| `pwsh -NoProfile -File ./tools/check.ps1 -Scope Stage` | 当前 APK、原生 smoke test 与 Kotlin 本地单测 | 设备、ROM 兼容、耐久、H 专项 |
`Stage` 是 M0 的阶段入口,不是未来 G1~G9 的替代。实机、ROM、存档、插拔和耐久验收必须在
`Stage` 是本地阶段入口,不是 G1~G9 的替代。实机、ROM、存档、插拔和耐久验收必须在
相应里程碑按 [acceptance.md](acceptance.md) 执行和记录。
## M1 诊断版安装