feat: migration breadth, project templates, preset export, IDE/registry polish
VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m11s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m33s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 2m44s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m16s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m37s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m29s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 24s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m52s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 20s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m57s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m47s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 7m4s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped

- vbs migrate --from meson: bounded meson.build importer (project, variable
  assignments, files()/include_directories(), executable/static_library/
  shared_library/library with link_with, include_directories, dependencies,
  install/install_dir) rendering the same build.cpp scaffold; everything
  untranslated is reported as a note.
- vbs init --template app|library|header-only|shared; every template
  scaffolds a project whose own test passes.
- vbs presets --export FILE: writes VBS profiles as CMake configure presets
  (round-trips through the CMakePresets importer).
- vbs ide generate also writes JetBrains run configurations per target.
- VBS_HOST_CXX_FLAGS/VBS_HOST_LDFLAGS instrument the compiled build
  descriptor (the CI sanitizer lane sets them).
- The registry queue counts lease attempts and abandons an action after 5
  attempts into a dead-letter list instead of leasing it forever.
- CI: coverage lane (lcov report), sanitizer descriptor flags; docs ledger
  brought up to date (STATE/TASKS/superiority roadmap).

Verified: the new FullV1Tests and RegistryTests cases pass and the full
CTest suite passes 8/8.
This commit is contained in:
faumaray committed 2026-12-06 17:23:59 +03:00
1 parent 9da1387031
commit fe453bd601
17 files changed
+898 -54

No files matched your search

+37
View File
@@ -1067,6 +1067,43 @@ generate_ide_configs(const Graph::BuildGraph &graph, const IdeConfigOptions &opt
if (auto r = write_ide_file(proj_root / ".idea" / "customTargets.xml", xml); !r) {
return std::unexpected{r.error()};
}
// JetBrains run configurations per target (shell-script configs, portable across hosts).
const auto shell_config = [&](const std::string &name, const std::string &script) {
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<component name=\"ProjectRunConfigurationManager\">\n"
" <configuration default=\"false\" name=\"" +
escape_xml_attr(name) +
"\" type=\"ShConfigurationType\">\n"
" <option name=\"SCRIPT_TEXT\" value=\"" +
escape_xml_attr(script) +
"\" />\n"
" <option name=\"INDEPENDENT_SCRIPT_PATH\" value=\"true\" />\n"
" <option name=\"SCRIPT_WORKING_DIRECTORY\" value=\"$PROJECT_DIR$\" />\n"
" <option name=\"INDEPENDENT_SCRIPT_WORKING_DIRECTORY\" value=\"true\" />\n"
" <method v=\"2\" />\n"
" </configuration>\n"
"</component>\n";
};
std::size_t run_configs = 0;
for (const auto &target : graph.targets) {
if (run_configs >= 128) {
break;
}
const bool is_test = target.kind == TargetKind::Test;
if (!is_test && target.kind != TargetKind::Executable) {
continue;
}
const std::string script = is_test
? "vbs test --target " + target.name
: "vbs build --target " + target.name;
const auto file = proj_root / ".idea" / "runConfigurations" /
(std::string{is_test ? "vbs_test_" : "vbs_build_"} + target.name +
".xml");
if (auto r = write_ide_file(file, shell_config(script, script)); !r) {
return std::unexpected{r.error()};
}
++run_configs;
}
}
return report;