Implement VoidBuildSystem v1 (Plans 01-19) with VoidLibrary integration
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s

This commit is contained in:
faumaray committed 2026-11-26 20:45:54 +03:00
1 parent 3cac890ce9
commit ab64147f9d
114 files changed
+23777 -1392

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
#pragma once
#include <Void/Build.hpp>
#include <Void/Build/Graph/Graph.hpp>
#include <Void/Functional/Error.hpp>
#include <Void/Functional/Result.hpp>
#include <filesystem>
#include <optional>
#include <string>
#include <vector>
namespace Void::Build::Install {
struct InstallOptions {
std::string package_name;
std::string package_version{"0.1.0"};
std::filesystem::path prefix;
std::optional<std::string> component; // Empty = install all components
bool export_cmake_config{true};
bool export_native_metadata{true};
};
struct InstallReport {
std::filesystem::path prefix;
std::filesystem::path manifest_path;
std::vector<std::filesystem::path> installed_files;
std::optional<std::filesystem::path> cmake_config_file;
std::optional<std::filesystem::path> native_package_file;
};
// Installs declared targets, files, headers, and relocatable native + CMake export
// metadata into `options.prefix` via managed staging and an ownership manifest (Plan 15).
// Rejects path traversal, destination collisions, and build-tree path leaks.
[[nodiscard]] Void::Result::Result<InstallReport, Void::Result::Error>
install_project(const Graph::ProjectDescription &description, const Graph::BuildGraph &graph,
const InstallOptions &options);
// Safely removes ONLY files owned by VBS in `<prefix>/.vbs-install-manifest.json`,
// preserving all unrelated user files in the prefix!
[[nodiscard]] Void::Result::Result<std::size_t, Void::Result::Error>
uninstall_prefix(const std::filesystem::path &prefix);
} // namespace Void::Build::Install