2026-04-29 04:09:45 +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.Event";
|
|
|
|
|
cfg.outputName = "Crafter.Event";
|
|
|
|
|
cfg.type = ConfigurationType::LibraryStatic;
|
2026-04-29 20:16:30 +02:00
|
|
|
auto opts = ApplyStandardArgs(cfg, args);
|
|
|
|
|
if (opts.Has("--timing")) cfg.defines.push_back({"CRAFTER_TIMING", ""});
|
2026-04-29 04:09:45 +02:00
|
|
|
|
|
|
|
|
std::array<fs::path, 1> ifaces = { "interfaces/Crafter.Event" };
|
|
|
|
|
std::array<fs::path, 0> impls = {};
|
|
|
|
|
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
|
|
|
|
return cfg;
|
|
|
|
|
}
|