20 lines
686 B
C++
20 lines
686 B
C++
|
|
import std;
|
||
|
|
import Crafter.Build;
|
||
|
|
namespace fs = std::filesystem;
|
||
|
|
using namespace Crafter;
|
||
|
|
|
||
|
|
// A pure library project: the root Configuration is the lib itself. Tests
|
||
|
|
// under tests/ are auto-discovered (see tests/Smoke and tests/UnitMyMath).
|
||
|
|
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
||
|
|
Configuration cfg;
|
||
|
|
cfg.path = "./mylib/";
|
||
|
|
cfg.name = "MyMath";
|
||
|
|
cfg.outputName = "MyMath";
|
||
|
|
cfg.target = "x86_64-pc-linux-gnu";
|
||
|
|
cfg.type = ConfigurationType::LibraryStatic;
|
||
|
|
|
||
|
|
std::array<fs::path, 1> ifaces = { "MyMath" };
|
||
|
|
std::array<fs::path, 0> impls = {};
|
||
|
|
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
||
|
|
return cfg;
|
||
|
|
}
|