mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
45 lines
628 B
C++
45 lines
628 B
C++
#include "pch.h"
|
|
#include "tasks.h"
|
|
|
|
namespace mob::tasks
|
|
{
|
|
|
|
boost_di::boost_di()
|
|
: basic_task("boost-di", "boostdi", "boost_di")
|
|
{
|
|
}
|
|
|
|
std::string boost_di::version()
|
|
{
|
|
return {};
|
|
}
|
|
|
|
bool boost_di::prebuilt()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
fs::path boost_di::source_path()
|
|
{
|
|
return conf().path().build() / "di";
|
|
}
|
|
|
|
void boost_di::do_clean(clean c)
|
|
{
|
|
if (is_set(c, clean::reclone))
|
|
{
|
|
git_wrap::delete_directory(cx(), source_path());
|
|
return;
|
|
}
|
|
}
|
|
|
|
void boost_di::do_fetch()
|
|
{
|
|
run_tool(task_conf().make_git()
|
|
.url(task_conf().make_git_url("boost-experimental", "di"))
|
|
.branch("cpp14")
|
|
.root(source_path()));
|
|
}
|
|
|
|
} // namespace
|