27 lines
755 B
C++
27 lines
755 B
C++
|
|
import std;
|
||
|
|
import Crafter.Build;
|
||
|
|
namespace fs = std::filesystem;
|
||
|
|
using namespace Crafter;
|
||
|
|
|
||
|
|
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view> args) {
|
||
|
|
std::vector<std::string> graphicsArgs(args.begin(), args.end());
|
||
|
|
Configuration* graphics = LocalProject({
|
||
|
|
.projectFile = "../../project.cpp",
|
||
|
|
.args = graphicsArgs,
|
||
|
|
});
|
||
|
|
|
||
|
|
Configuration cfg;
|
||
|
|
cfg.path = "./";
|
||
|
|
cfg.name = "VulkanUI";
|
||
|
|
cfg.outputName = "VulkanUI";
|
||
|
|
ApplyStandardArgs(cfg, args);
|
||
|
|
cfg.dependencies = { graphics };
|
||
|
|
|
||
|
|
std::array<fs::path, 0> ifaces = {};
|
||
|
|
std::array<fs::path, 1> impls = { "main" };
|
||
|
|
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
||
|
|
|
||
|
|
cfg.files.push_back("Inter.ttf");
|
||
|
|
|
||
|
|
return cfg;
|
||
|
|
}
|