revisited usvfs, only building usvfs_proxy now

This commit is contained in:
isanae
2020-05-04 08:47:09 -04:00
parent 1f012760e9
commit 07da68acee
3 changed files with 16 additions and 0 deletions
+2
View File
@@ -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();
+9
View File
@@ -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"));
}
+5
View File
@@ -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()));