import std; import Crafter.Build; namespace fs = std::filesystem; using namespace Crafter; extern "C" Configuration CrafterBuildProject(std::span) { Configuration cfg; cfg.path = "./"; cfg.name = "winhello-meta"; cfg.outputName = "winhello-meta"; cfg.target = "x86_64-pc-linux-gnu"; cfg.type = ConfigurationType::Executable; Test t; t.config.path = "./"; t.config.name = "winhello"; t.config.outputName = "winhello"; t.config.target = "x86_64-w64-mingw32"; t.config.type = ConfigurationType::Executable; std::array ifaces = {}; std::array impls = { "main" }; t.config.GetInterfacesAndImplementations(ifaces, impls); t.runner = TestRunner::FromEnv(t.config.target); cfg.tests.push_back(std::move(t)); return cfg; }