29 lines
1.3 KiB
Markdown
29 lines
1.3 KiB
Markdown
# VoidLibrary → VBS migration assets
|
|
|
|
Verified against VoidLibrary `0002e74` in a separate clone (never the shared checkout).
|
|
VoidLibrary does not yet have a first-class build description; this is the trial that proves
|
|
VBS can build and test it natively. Tracked upstream as
|
|
[Void/Library#61](https://git.faumaray.com/Void/Library/issues/61).
|
|
|
|
## Apply to a VoidLibrary clone
|
|
|
|
```sh
|
|
cp -r contrib/voidlibrary-migration/. /path/to/VoidLibrary-clone/
|
|
cd /path/to/VoidLibrary-clone
|
|
vbs build --project . --build-dir build-vbs --profile debug --target void_smoke
|
|
vbs test --project . --build-dir build-vbs --target void_smoke
|
|
```
|
|
|
|
`build-support/vl/VoidLibraryModules.{hpp,cpp}` is the native module closure (the same logic as
|
|
`recipes/VoidLibrary/VoidLibraryRecipe.cpp`), `build.cpp` declares the enabled module set, and
|
|
`tests/vl/smoke.cpp` is a runtime smoke test linked against the built modules.
|
|
|
|
Keep the smoke test outside `build-support/`: the configuration frontend treats every
|
|
`build-support/**/*.cpp` as part of the build description itself.
|
|
|
|
## Known limits
|
|
|
|
- Only modules described by the native module table can be enabled; Net (Boost/OpenSSL),
|
|
Sqlite (SQLite3), Stacktrace (Boost + dl) and many others are missing.
|
|
- Use absolute `--project`/`--build-dir` paths when invoking `vbs` from outside the project root.
|