2026-07-22 17:58:06 +02:00
|
|
|
//SPDX-License-Identifier: LGPL-3.0-only
|
|
|
|
|
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
|
|
|
|
|
2026-05-06 01:06:09 +02:00
|
|
|
import std;
|
|
|
|
|
import Crafter.Build;
|
|
|
|
|
namespace fs = std::filesystem;
|
|
|
|
|
using namespace Crafter;
|
|
|
|
|
|
|
|
|
|
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view> args) {
|
|
|
|
|
Configuration cfg;
|
|
|
|
|
cfg.path = "./";
|
|
|
|
|
cfg.name = "Crafter.Thread";
|
|
|
|
|
cfg.outputName = "Crafter.Thread";
|
|
|
|
|
cfg.type = ConfigurationType::LibraryStatic;
|
|
|
|
|
ApplyStandardArgs(cfg, args);
|
|
|
|
|
|
|
|
|
|
std::array<fs::path, 2> ifaces = {
|
|
|
|
|
"interfaces/Crafter.Thread",
|
|
|
|
|
"interfaces/Crafter.Thread-ThreadPool",
|
|
|
|
|
};
|
|
|
|
|
std::array<fs::path, 1> impls = {
|
|
|
|
|
"implementations/Crafter.Thread-ThreadPool",
|
|
|
|
|
};
|
|
|
|
|
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
|
|
|
|
|
|
|
|
|
return cfg;
|
|
|
|
|
}
|