Files
mob/src/tasks/spdlog.cpp
T

39 lines
515 B
C++
Raw Normal View History

#include "pch.h"
#include "tasks.h"
2020-05-02 03:12:34 -04:00
namespace mob
{
spdlog::spdlog()
: basic_task("spdlog")
{
}
2020-05-17 14:14:29 -04:00
std::string spdlog::version()
2020-05-07 11:08:33 -04:00
{
2020-05-17 15:50:15 -04:00
return conf::version_by_name("spdlog");
2020-05-07 11:08:33 -04:00
}
bool spdlog::prebuilt()
{
return false;
}
fs::path spdlog::source_path()
{
2020-05-07 11:08:33 -04:00
return paths::build() / ("spdlog-" + version());
}
void spdlog::do_fetch()
{
2020-05-21 04:45:49 -04:00
instrument<times::fetch>([&]
2020-05-20 05:41:19 -04:00
{
run_tool(task_conf().make_git()
.url(make_github_url("gabime", "spdlog"))
.branch(version())
.root(source_path()));
});
}
} // namespace