// 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; // A project of three configurations: a library, a program built on it, and // a tool that shares nothing with either. The library and the tool each // declare a test and a script. --no-tool leaves the tool out, which leaves // one executable for -r to run. --packaged packages both programs as // Flatpaks, for install and bundle to choose between, and makes them wasm // builds, which a build refuses to package wherever the test runs: nothing // is ever exported, let alone installed. --twin-test has the library // declare the tool's test as well, which a test run refuses to build. // --twin adds a fourth configuration of the tool's name and path, which // would be built into the tool's directory. namespace { // One new set per call, at addresses that never change: whoever loads // this file keeps the pointers it returns. std::deque Owned; // Leaves `