mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
new task_conf() to avoid fiddling with names everywhere changed syntax from tool/section to tool:section, easier to parse
46 lines
606 B
C++
46 lines
606 B
C++
#include "pch.h"
|
|
#include "tasks.h"
|
|
|
|
namespace mob
|
|
{
|
|
|
|
libffi::libffi()
|
|
: basic_task("libffi")
|
|
{
|
|
}
|
|
|
|
std::string libffi::version()
|
|
{
|
|
return {};
|
|
}
|
|
|
|
bool libffi::prebuilt()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
fs::path libffi::source_path()
|
|
{
|
|
return paths::build() / "libffi";
|
|
}
|
|
|
|
void libffi::do_fetch()
|
|
{
|
|
run_tool(git(task_conf().git_op())
|
|
.url(make_github_url("python","cpython-bin-deps"))
|
|
.branch("libffi")
|
|
.output(source_path()));
|
|
}
|
|
|
|
fs::path libffi::include_path()
|
|
{
|
|
return libffi::source_path() / "amd64" / "include";
|
|
}
|
|
|
|
fs::path libffi::lib_path()
|
|
{
|
|
return libffi::source_path() / "amd64";
|
|
}
|
|
|
|
} // namespace
|