blob: a78faf9f9e9bd17706e2240433d67188779c86fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <filesystem>
#include <iostream>
#include "build.hh"
#include "lua_build.hh"
#include "vars.hh"
void build(Pkg pkg) {
if (pkg.src != std::filesystem::current_path().string()) {
std::filesystem::current_path(pkg.src);
}
if (lua_build(pkg.name.c_str(), pkg.target, pkg.src.c_str())) {
return;
} else {
std::cout << print_error << "no usable build system was found\n";
}
}
|