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
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user