21 lines
991 B
C++
21 lines
991 B
C++
// Native VoidBuildSystem description for VoidLibrary itself (migration trial).
|
|
// The module closure is declared in build-support/vl/VoidLibraryModules.{hpp,cpp}.
|
|
#include "build-support/vl/VoidLibraryModules.hpp"
|
|
|
|
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"});
|
|
|
|
// Smoke test exercising the native VoidLibrary closure through VBS.
|
|
auto smoke = project.test("void_smoke");
|
|
smoke.cxx_standard(Void::Build::CxxStandard::Cxx26)
|
|
.sources({"tests/vl/smoke.cpp"})
|
|
.link(libs.modules.at("Testing"))
|
|
.link(libs.modules.at("Configuration"));
|
|
}
|