Crafter.Event/project.cpp
Jorijn van der Graaf 599144ca70 SPDX license update
Canonical LGPL-3.0-only text, GPL-3.0 companion, SPDX headers on all sources.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-22 18:16:17 +02:00

22 lines
749 B
C++

//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;
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;
auto opts = ApplyStandardArgs(cfg, args);
if (opts.Has("--timing")) cfg.defines.push_back({"CRAFTER_TIMING", ""});
std::array<fs::path, 1> ifaces = { "interfaces/Crafter.Event" };
std::array<fs::path, 0> impls = {};
cfg.GetInterfacesAndImplementations(ifaces, impls);
return cfg;
}