mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
revisited usvfs, only building usvfs_proxy now
This commit is contained in:
@@ -332,6 +332,7 @@ public:
|
||||
protected:
|
||||
void do_fetch() override;
|
||||
void do_build_and_install() override;
|
||||
void do_clean_for_rebuild() override;
|
||||
};
|
||||
|
||||
|
||||
@@ -344,6 +345,7 @@ public:
|
||||
protected:
|
||||
void do_fetch() override;
|
||||
void do_build_and_install() override;
|
||||
void do_clean_for_rebuild() override;
|
||||
|
||||
private:
|
||||
static url source_url();
|
||||
|
||||
@@ -14,6 +14,13 @@ fs::path usvfs::source_path()
|
||||
return paths::build() / "usvfs";
|
||||
}
|
||||
|
||||
void usvfs::do_clean_for_rebuild()
|
||||
{
|
||||
op::delete_directory(cx(), source_path() / "bin", op::optional);
|
||||
op::delete_directory(cx(), source_path() / "lib", op::optional);
|
||||
op::delete_directory(cx(), source_path() / "vsbuild" / "Release", op::optional);
|
||||
}
|
||||
|
||||
void usvfs::do_fetch()
|
||||
{
|
||||
run_tool(git_clone()
|
||||
@@ -31,10 +38,12 @@ void usvfs::do_build_and_install()
|
||||
|
||||
run_tool(msbuild()
|
||||
.platform("x64")
|
||||
.projects({"usvfs_proxy"})
|
||||
.solution(source_path() / "vsbuild" / "usvfs.sln"));
|
||||
|
||||
run_tool(msbuild()
|
||||
.platform("x86")
|
||||
.projects({"usvfs_proxy"})
|
||||
.solution(source_path() / "vsbuild" / "usvfs.sln"));
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,11 @@ fs::path zlib::source_path()
|
||||
return paths::build() / ("zlib-" + versions::zlib());
|
||||
}
|
||||
|
||||
void zlib::do_clean_for_rebuild()
|
||||
{
|
||||
cmake::clean(cx(), source_path());
|
||||
}
|
||||
|
||||
void zlib::do_fetch()
|
||||
{
|
||||
const auto file = run_tool(downloader(source_url()));
|
||||
|
||||
Reference in New Issue
Block a user