23 lines
629 B
C++
23 lines
629 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 = "aarch-hello";
|
||
|
|
cfg.outputName = "aarch-hello";
|
||
|
|
cfg.target = "aarch64-linux-gnu";
|
||
|
|
cfg.march = "armv8-a";
|
||
|
|
cfg.mtune = "generic";
|
||
|
|
cfg.sysroot = "/opt/aarch64-rootfs";
|
||
|
|
cfg.type = ConfigurationType::Executable;
|
||
|
|
|
||
|
|
std::array<fs::path, 0> ifaces = {};
|
||
|
|
std::array<fs::path, 1> impls = { "main" };
|
||
|
|
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
||
|
|
|
||
|
|
|
||
|
|
return cfg;
|
||
|
|
}
|