// SPDX-License-Identifier: LGPL-3.0-only // SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® import std; import Crafter.Build; namespace fs = std::filesystem; using namespace Crafter; // The sibling project the consumer's project.cpp imports a module from. // ApplyStandardArgs on purpose: it reads CRAFTER_BUILD_MARCH from the // environment, and the pre-pass has to override whatever it picked. extern "C" Configuration CrafterBuildProject(std::span args) { Configuration cfg; cfg.path = "./"; cfg.name = "greeter"; cfg.outputName = "greeter"; cfg.type = ConfigurationType::LibraryStatic; ApplyStandardArgs(cfg, args); std::array ifaces = { "interfaces/Greeter" }; std::array impls = {}; cfg.GetInterfacesAndImplementations(ifaces, impls); return cfg; }