28 lines
905 B
C++
28 lines
905 B
C++
#pragma once
|
|
|
|
#include <Void/Build.hpp>
|
|
#include <Void/Functional/Error.hpp>
|
|
#include <Void/Functional/Result.hpp>
|
|
|
|
#include <filesystem>
|
|
#include <string>
|
|
|
|
namespace Void::Build::Recipes {
|
|
|
|
struct VbsSelfHostConfig {
|
|
std::filesystem::path vbs_source_dir;
|
|
std::filesystem::path void_source_dir;
|
|
std::filesystem::path stage_build_dir;
|
|
std::string version{"0.1.0"};
|
|
bool include_registry{true};
|
|
bool include_tests{false};
|
|
};
|
|
|
|
// Declares the COMPLETE native VoidBuildSystem target graph (VoidLibrary native closure +
|
|
// VoidBuildSdk + VoidBuildCore + optional VoidBuildRegistry + generated BootstrapConfig.hpp +
|
|
// vbs + optional vbs-registry) purely as native Void::Build targets — ZERO CMake! (Plan 18).
|
|
[[nodiscard]] Void::Result::Result<void, Void::Result::Error>
|
|
add_vbs_selfhost_native(Project &project, const VbsSelfHostConfig &config);
|
|
|
|
} // namespace Void::Build::Recipes
|