// SPDX-License-Identifier: LGPL-3.0-only // SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® import std; import Crafter.Build; using namespace Crafter; // The project crafter-build is pointed at: an executable, with two sibling // projects whose executables it depends on, loaded with this file's args. // The second packages its own as a Flatpak. extern "C" Configuration CrafterBuildProject(std::span args) { Configuration* tool = LocalProject({ .projectFile = "../tool/project.cpp" }); Configuration* packaged = LocalProject({ .projectFile = "../packaged/project.cpp" }); Configuration cfg; cfg.path = "./"; cfg.name = "app"; cfg.outputName = "app"; cfg.type = ConfigurationType::Executable; ApplyStandardArgs(cfg, args); cfg.dependencies = { tool, packaged }; return cfg; }