import std; import Crafter.Build; namespace fs = std::filesystem; using namespace Crafter; extern "C" Configuration CrafterBuildProject(std::span args) { std::string target = "x86_64-pc-linux-gnu"; for (auto a : args) { if (a.starts_with("--target=")) target = std::string(a.substr(9)); } Configuration cfg; cfg.path = "tests/Defines/"; cfg.name = "Defines"; cfg.outputName = "defines-app"; cfg.target = target; cfg.type = ConfigurationType::Executable; cfg.defines.push_back({"CRAFTER_TEST_FOO", "42"}); std::array ifaces = {}; std::array impls = { "main" }; cfg.GetInterfacesAndImplementations(ifaces, impls); return cfg; }