27 lines
833 B
C++
27 lines
833 B
C++
|
|
import std;
|
||
|
|
import Crafter.Build;
|
||
|
|
namespace fs = std::filesystem;
|
||
|
|
using namespace Crafter;
|
||
|
|
|
||
|
|
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
||
|
|
Configuration cfg;
|
||
|
|
cfg.path = "./";
|
||
|
|
cfg.name = "qemu-meta";
|
||
|
|
cfg.outputName = "qemu-meta";
|
||
|
|
cfg.target = "x86_64-pc-linux-gnu";
|
||
|
|
cfg.type = ConfigurationType::Executable;
|
||
|
|
|
||
|
|
Test t;
|
||
|
|
t.config.path = "./";
|
||
|
|
t.config.name = "Hello";
|
||
|
|
t.config.outputName = "Hello";
|
||
|
|
t.config.target = "x86_64-pc-linux-gnu";
|
||
|
|
t.config.type = ConfigurationType::Executable;
|
||
|
|
std::array<fs::path, 0> ifaces = {};
|
||
|
|
std::array<fs::path, 1> impls = { "tests/Hello" };
|
||
|
|
t.config.GetInterfacesAndImplementations(ifaces, impls);
|
||
|
|
t.runner = TestRunner::FromEnv(t.config.target);
|
||
|
|
cfg.tests.push_back(std::move(t));
|
||
|
|
|
||
|
|
return cfg;
|
||
|
|
}
|