25 lines
815 B
C++
25 lines
815 B
C++
#pragma once
|
|
|
|
#include <Void/Build.hpp>
|
|
|
|
#include <filesystem>
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Void::Build::Recipes {
|
|
|
|
// Pure native VBS recipe for VoidLibrary (pinned commit 0002e74a7da94a756f55a4a5574d20b77736c185).
|
|
// Translates VoidLibrary's module closure directly into native VBS targets without invoking
|
|
// CMake or modifying the VoidLibrary source checkout (Plan 18).
|
|
struct VoidLibraryTargets {
|
|
std::map<std::string, Target, std::less<>> modules;
|
|
};
|
|
|
|
[[nodiscard]] VoidLibraryTargets
|
|
add_void_library_native(Project &project, const std::filesystem::path &void_source_dir,
|
|
const std::vector<std::string> &enabled_modules = {
|
|
"Configuration", "Text", "Unicode", "Async", "Testing"});
|
|
|
|
} // namespace Void::Build::Recipes
|