// 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 form with one configuration: a library whose test links it, so the // test's dependency is a pointer to the Configuration this function returns. extern "C" Configuration CrafterBuildProject(std::span) { Configuration cfg; cfg.path = "./"; cfg.name = "single"; cfg.outputName = "single"; cfg.type = ConfigurationType::LibraryStatic; std::array interfaces = { "Single" }; std::array implementations = {}; cfg.GetInterfacesAndImplementations(interfaces, implementations); cfg.AddTest("SelfTest").Dependencies({ &cfg }); return cfg; }