feat(config): add vbs migrate to scaffold build.cpp from CMakeLists
This commit is contained in:
1 parent
1b803f7a22
commit
399b52c31c
10 files changed
+599
-1
No files matched your search
@@ -316,6 +316,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **Wave 111 (VoidLibrary Migration: Complete Module Set)**: the native table now describes all 57 VoidLibrary modules (generated from each `module.cmake`'s internal dependencies). In the clone with `-p openssl -p boost -p sqlite -p libsodium -p lua`, `vbs build` built the **entire library**: exit 0, 134 actions, 37 module archives, smoke executable runs. [Void/Library#61](https://git.faumaray.com/Void/Library/issues/61) was updated; only the in-repo build description (+ tests/install/packaging) remains upstream.
|
||||
|
||||
- **Wave 112 (Migration Tooling: `vbs migrate`)**: `Config::import_cmake_lists` reads a bounded CMakeLists.txt subset (`project`, `set`, `add_library`/`add_executable`, `target_link_libraries`, `target_include_directories`, `target_compile_definitions`, `install(TARGETS)`) with variable expansion (`${...}`, source-dir variables) and reports everything it cannot translate; `vbs migrate --input --output [--force] [--dry-run]` renders a `build.cpp` scaffold. Covered by a unit test, a CLI contract, and a dry run over the project's own CMakeLists.
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
|
||||
|
||||
@@ -115,4 +115,5 @@ Base HEAD: `fe0d1a6`
|
||||
| Wave 109 (VoidLibrary pure module expansion) | Nine more modules in the native table; verified building in the migration clone; #61 updated | COMPLETE & VERIFIED IN CLONE (18 actions, no CMake) | `recipes/VoidLibrary/VoidLibraryRecipe.cpp`, `contrib/voidlibrary-migration/`, Void/Library#61 |
|
||||
| Wave 110 (VoidLibrary Net & Sqlite) | Net and Sqlite in the native table; built in the clone under `-p openssl -p boost -p sqlite`; #61 updated | COMPLETE & VERIFIED IN CLONE (13 actions, no CMake) | `recipes/VoidLibrary/VoidLibraryRecipe.cpp`, `contrib/voidlibrary-migration/`, Void/Library#61 |
|
||||
| Wave 111 (VoidLibrary complete module set) | All 57 modules described; full native build verified in the clone (134 actions) | COMPLETE & VERIFIED IN CLONE | `recipes/VoidLibrary/VoidLibraryRecipe.cpp`, `contrib/voidlibrary-migration/`, Void/Library#61 |
|
||||
| Wave 112 (`vbs migrate`) | Bounded CMakeLists importer rendering a build.cpp scaffold, with notes for untranslated constructs | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; unit test and CLI contract pass) | `include/Void/Build/Config/CmakeImport.hpp`, `src/Config/CmakeImport.cpp`, `src/Main.cpp`, `tests/{FullV1Tests,CliContracts}.cpp/cmake`, docs |
|
||||
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
@@ -1591,6 +1591,19 @@ vbs build --project /tmp/opencode/vl-migrate --build-dir /tmp/opencode/vl-migrat
|
||||
- [Void/Library#61](https://git.faumaray.com/Void/Library/issues/61) was updated: the description
|
||||
covers the whole library; the in-repo `build.cpp` (plus tests/install/packaging) is what remains.
|
||||
|
||||
## Migration Tooling `vbs migrate` (GCC 16.2, pin `0002e74`)
|
||||
|
||||
- `FullV1Tests.cmake_lists_import_renders_build_cpp_scaffold` **passed**: a sample CMakeLists with
|
||||
`set()`, `add_library(... STATIC ...)`, `target_include_directories`, `target_compile_definitions`,
|
||||
`add_executable`, `target_link_libraries` and `install(TARGETS ... DESTINATION bin)` imports to
|
||||
two targets with the expected sources, include dirs, defines, link edge and install rules; the
|
||||
rendered scaffold contains `static_library("demo_lib")`, `executable("demo_app")`,
|
||||
`.link(t_demo_lib` and `.install("bin")`.
|
||||
- A dry run over this project's own `CMakeLists.txt` produced a valid scaffold with
|
||||
`.sources({"sdk/Build.cpp", "sdk/Json.cpp"})`, sanitized identifiers for `::` alias targets and
|
||||
expanded `${CMAKE_CURRENT_SOURCE_DIR}`.
|
||||
- CLI contract covers `--help` and a missing input file (exit 1).
|
||||
|
||||
## Limits and Unrun Checks
|
||||
|
||||
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).
|
||||
|
||||
@@ -79,7 +79,7 @@ Concrete work this implies:
|
||||
2. Wine-first Windows target support (§2).
|
||||
3. Packaging parity: ZIP (stored), DEB, RPM, metadata, signing (`--archive-format` extensions).
|
||||
4. IDE ecosystem: File API shim (**done**: `vbs ide generate` emits codemodel-v2), presets import (**done**: `vbs presets`), external plugins.
|
||||
5. Migration tooling (`vbs migrate`) and migrating VoidLibrary onto VBS (**trial extended**: 25+ pure modules build with VBS in a separate clone; upstream #61 tracks the in-repo build description and the remaining externally dependent modules).
|
||||
5. Migration tooling (**done**: `vbs migrate` renders a `build.cpp` scaffold from a bounded CMakeLists subset) and migrating VoidLibrary onto VBS (**trial extended**: 25+ pure modules build with VBS in a separate clone; upstream #61 tracks the in-repo build description and the remaining externally dependent modules).
|
||||
6. Test-runner parity.
|
||||
7. Benchmarks against CMake/Meson/build2 on documented fixtures (including 10k-target scaling).
|
||||
8. CI on real runners, sanitizer jobs (**sanitizer build run done**), parser fuzzing (**deterministic mutation harness done**; coverage-guided libFuzzer still needs Clang).
|
||||
|
||||
Reference in new issue
Block a user