build: install rules, packaging and profile definitions

This commit is contained in:
Void agent committed 2026-12-05 10:41:11 +03:00
1 parent 9f0fa67f56
commit e44612b505
2 files changed
+18

No files matched your search

+10
View File
@@ -33,6 +33,16 @@ void build(Void::Build::Project &project) {
.link_option("-ldl", Void::Build::Visibility::Public);
}
// Install/packaging rules: module archives, public headers and license metadata.
for (auto &[name, target] : libs.modules) {
if (target.record().kind == Void::Build::TargetKind::HeaderOnly) {
continue;
}
target.install("lib");
}
project.install_directory("include", "include");
project.install_file("README.md", "share/doc/VoidLibrary");
// Smoke test exercising the native VoidLibrary closure through VBS.
auto smoke = project.test("void_smoke");
smoke.cxx_standard(Void::Build::CxxStandard::Cxx26)