// 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; // --wide is this project's own flag, and it changes what M declares. extern "C" Configuration CrafterBuildProject(std::span args) { Configuration cfg; cfg.path = "./"; cfg.name = "M"; cfg.outputName = "M"; cfg.type = ConfigurationType::LibraryStatic; ApplyStandardArgs(cfg, args); if (std::ranges::contains(args, std::string_view("--wide"))) cfg.compileFlags.push_back("-DWIDE"); std::array ifaces = { "interfaces/M" }; std::array impls = {}; cfg.GetInterfacesAndImplementations(ifaces, impls); return cfg; }