mirror of https://github.com/microsoft/vcpkg.git
Make install_and_write_listfile() public
(also rename it)
This commit is contained in:
parent
d52ddf8263
commit
9b5275bb85
|
|
@ -43,6 +43,15 @@ namespace vcpkg::Commands
|
|||
|
||||
namespace Install
|
||||
{
|
||||
struct InstallationDirs
|
||||
{
|
||||
fs::path source_dir; // "source" from source-destination, not source code.
|
||||
fs::path destination_root;
|
||||
std::string destination_subdirectory;
|
||||
fs::path listfile;
|
||||
};
|
||||
|
||||
void install_files_and_write_listfile(Files::Filesystem& fs, const InstallationDirs& dirs);
|
||||
void install_package(const VcpkgPaths& paths, const BinaryParagraph& binary_paragraph, StatusParagraphs* status_db);
|
||||
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, const Triplet& default_triplet);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,15 +15,7 @@ namespace vcpkg::Commands::Install
|
|||
using Dependencies::RequestType;
|
||||
using Dependencies::InstallPlanType;
|
||||
|
||||
struct InstallationDirs
|
||||
{
|
||||
fs::path source_dir; // "source" from source-destination, not source code.
|
||||
fs::path destination_root;
|
||||
std::string destination_subdirectory;
|
||||
fs::path listfile;
|
||||
};
|
||||
|
||||
static void install_and_write_listfile(Files::Filesystem& fs, const InstallationDirs& dirs)
|
||||
void install_files_and_write_listfile(Files::Filesystem& fs, const InstallationDirs& dirs)
|
||||
{
|
||||
std::vector<std::string> output;
|
||||
|
||||
|
|
@ -229,7 +221,7 @@ namespace vcpkg::Commands::Install
|
|||
dirs.destination_subdirectory = triplet.to_string();
|
||||
dirs.listfile = paths.listfile_path(binary_paragraph);
|
||||
|
||||
install_and_write_listfile(paths.get_filesystem(), dirs);
|
||||
install_files_and_write_listfile(paths.get_filesystem(), dirs);
|
||||
|
||||
source_paragraph.state = InstallState::INSTALLED;
|
||||
write_update(paths, source_paragraph);
|
||||
|
|
|
|||
Loading…
Reference in New Issue