// SPDX-License-Identifier: LGPL-3.0-only // SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® import std; import Crafter.Build; #pragma crafter dependency "../tool" using namespace Crafter; // Loads for itself the sibling its tool loads, by the same path and, when // the app gets no args, with the same args. extern "C" Configuration CrafterBuildProject(std::span args) { Configuration* shared = LocalProject({ .projectFile = "../shared/project.cpp" }); Configuration cfg; cfg.path = "./"; cfg.name = "app"; cfg.outputName = "app"; cfg.type = ConfigurationType::Executable; ApplyStandardArgs(cfg, args); cfg.dependencies = { shared, ProjectDependency("tool") }; return cfg; }