diff --git a/contrib/voidlibrary-migration/build.cpp b/contrib/voidlibrary-migration/build.cpp index 59092d6..78ce995 100644 --- a/contrib/voidlibrary-migration/build.cpp +++ b/contrib/voidlibrary-migration/build.cpp @@ -6,10 +6,32 @@ void build(Void::Build::Project &project) { const auto &ctx = project.context(); (void)ctx; - auto libs = Void::Build::Recipes::add_void_library_native(project, ".", - {"Configuration", "Text", "Unicode", - "Async", "Algorithms", "Crypto", - "Archive", "Testing", "Log"}); + auto libs = Void::Build::Recipes::add_void_library_native( + project, ".", + {"Algorithms", "Archive", "Async", "Binary", "Configuration", "ConfigurationAsync", "Containers", "Core", "Data", "Discovery", "DiscoveryRpc", "Fsm", "Functional", "FunctionalCoreFormatting", "IO", "IPC", "Log", "LogConfig", "LogState", "MCP", "Math", "Memory", "Messaging", "MessagingRpc", "MessagingStorage", "Observability", "ObservabilityHooks", "Plugin", "RPC", "Resilience", "ResilienceAsync", "Runtime", "Scheduler", "SchedulerStorage", "Service", "ServicePlugin", "ShortUrl", "ShortUrlRemote", "ShortUrlStorage", "SqliteAsync", "Storage", "Testing", "TestingMock", "Text", "Time", "Unicode", "Update", "Net", "Sqlite", "Security", "SecurityAsync", "Script", "Stacktrace", "SystemAsync", "CryptoAsync" }); + + // System libraries for the externally dependent modules (provided by the shell). + if (auto it = libs.modules.find("Net"); it != libs.modules.end()) { + it->second.link_option("-lssl", Void::Build::Visibility::Public) + .link_option("-lcrypto", Void::Build::Visibility::Public) + .link_option("-lboost_url", Void::Build::Visibility::Public) + .link_option("-ldl", Void::Build::Visibility::Public); + } + if (auto it = libs.modules.find("Sqlite"); it != libs.modules.end()) { + it->second.link_option("-lsqlite3", Void::Build::Visibility::Public); + } + for (const char *secure : {"Security", "SecurityAsync"}) { + if (auto it = libs.modules.find(secure); it != libs.modules.end()) { + it->second.link_option("-lsodium", Void::Build::Visibility::Public); + } + } + if (auto it = libs.modules.find("Script"); it != libs.modules.end()) { + it->second.link_option("-llua", Void::Build::Visibility::Public); + } + if (auto it = libs.modules.find("Stacktrace"); it != libs.modules.end()) { + it->second.link_option("-lboost_stacktrace_addr2line", Void::Build::Visibility::Public) + .link_option("-ldl", Void::Build::Visibility::Public); + } // Smoke test exercising the native VoidLibrary closure through VBS. auto smoke = project.test("void_smoke"); diff --git a/docs/agent-workflow/STATE.md b/docs/agent-workflow/STATE.md index be4c4e8..7c91741 100644 --- a/docs/agent-workflow/STATE.md +++ b/docs/agent-workflow/STATE.md @@ -328,6 +328,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B - **Wave 117 (#61 VBS-Side Gaps)**: three gaps noted on Void/Library#61 are fixed in VBS - (1) `ProcessRequest::descendant_grace` bounds post-leader orphan supervision and the group is fully reaped so test runs cannot hang on escaped grandchildren; (2) installer archives are signed over a short canonical `vbs-installer-v1` digest message (streamed SHA-256, `.msg` written) instead of the archive bytes, removing the 16 MiB one-shot crypto limit; (3) `.native_builder({...})` options are passed to a dependency's `build.cpp` as `VBS_DEP_OPTION_` (plus `VBS_DEP_NAME`), readable through the new SDK `Void::Build::dependency_option()`. +- **Wave 118 (VoidLibrary In-Repo Build Description)**: pushed branch `build-vbs` to Void/Library containing `build.cpp`, `build-support/vl/VoidLibraryModules.{hpp,cpp}` and `tests/vl/smoke.cpp` (all 57 modules, verified in the clone: 134 actions and a passing smoke test). [Void/Library#61](https://git.faumaray.com/Void/Library/issues/61) was updated with the branch, verification details and the remaining CI/install work; `contrib/voidlibrary-migration/` now mirrors the exact pushed files. + ## 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. diff --git a/docs/agent-workflow/TASKS.md b/docs/agent-workflow/TASKS.md index f2d4b61..f031586 100644 --- a/docs/agent-workflow/TASKS.md +++ b/docs/agent-workflow/TASKS.md @@ -120,4 +120,5 @@ Base HEAD: `fe0d1a6` | Wave 114 (VS Code extension repo) | Portable `vbs ide plugin` output published to `Void/VbsVsCode` (6 commands, LICENSE, README) | COMPLETE & VERIFIED (unit test and CLI contract pass; repo contents confirmed via the Gitea API) | `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, [Void/VbsVsCode](https://git.faumaray.com/Void/VbsVsCode), docs | | Wave 115 (Zed extension repo) | `vbs ide plugin --editor zed` emits extension.toml/tasks.json/README; published to `Void/VbsZed` | COMPLETE & VERIFIED (unit test passes; repo contents confirmed via the Gitea API) | `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, [Void/VbsZed](https://git.faumaray.com/Void/VbsZed), docs | | Wave 116 (CLion extension repo) | `vbs ide plugin --editor clion` emits a JetBrains plugin skeleton; published to `Void/VbsCLion` | COMPLETE & VERIFIED (unit test passes; repo contents confirmed via the Gitea API; full CTest 8/8) | `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, [Void/VbsCLion](https://git.faumaray.com/Void/VbsCLion), docs | +| Wave 118 (VoidLibrary in-repo build description) | Branch `build-vbs` in Void/Library with build.cpp + module table + smoke test; #61 updated | PUSHED & VERIFIED IN CLONE (branch content confirmed via Gitea API) | [Void/Library branch build-vbs](https://git.faumaray.com/Void/Library/src/branch/build-vbs), `contrib/voidlibrary-migration/`, Void/Library#61 | | 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) |