diff options
| author | ras0219 <robertallenschumacher@gmail.com> | 2020-06-17 12:32:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-17 12:32:05 -0700 |
| commit | 4cbbf4ebe67f953f4b4611ec0f7dc34bcc44f43d (patch) | |
| tree | 5d641fe1c4557e63dc459466e7bb0381d2843e9c /toolsrc/include | |
| parent | a4d42aac246ded930e014c95608ec582959c165d (diff) | |
| download | vcpkg-4cbbf4ebe67f953f4b4611ec0f7dc34bcc44f43d.tar.gz vcpkg-4cbbf4ebe67f953f4b4611ec0f7dc34bcc44f43d.zip | |
[vcpkg] Fix issue #9781 by exporting from the installed directory (#11015)
* [vcpkg] Fix issue #9781 by exporting from the installed directory
* [vcpkg] Address code review comments for #11015
* [vcpkg] Remove duplicate triplet in installed path from exports
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/base/files.h | 2 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/install.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/base/files.h b/toolsrc/include/vcpkg/base/files.h index 909029b55..cb0419221 100644 --- a/toolsrc/include/vcpkg/base/files.h +++ b/toolsrc/include/vcpkg/base/files.h @@ -111,6 +111,8 @@ namespace vcpkg::Files { std::string read_contents(const fs::path& file_path, LineInfo linfo) const; virtual Expected<std::string> read_contents(const fs::path& file_path) const = 0; + /// <summary>Read text lines from a file</summary> + /// <remarks>Lines will have up to one trailing carriage-return character stripped (CRLF)</remarks> virtual Expected<std::vector<std::string>> read_lines(const fs::path& file_path) const = 0; virtual fs::path find_file_recursively_up(const fs::path& starting_dir, const std::string& filename) const = 0; virtual std::vector<fs::path> get_files_recursive(const fs::path& dir) const = 0; diff --git a/toolsrc/include/vcpkg/install.h b/toolsrc/include/vcpkg/install.h index ad91bbb37..9a438b039 100644 --- a/toolsrc/include/vcpkg/install.h +++ b/toolsrc/include/vcpkg/install.h @@ -70,7 +70,13 @@ namespace vcpkg::Install std::vector<std::string> get_all_port_names(const VcpkgPaths& paths); - void install_files_and_write_listfile(Files::Filesystem& fs, const fs::path& source_dir, const InstallDir& dirs); + void install_package_and_write_listfile(const VcpkgPaths& paths, const PackageSpec& spec, const InstallDir& dirs); + + void install_files_and_write_listfile(Files::Filesystem& fs, + const fs::path& source_dir, + const std::vector<fs::path>& files, + const InstallDir& destination_dir); + InstallResult install_package(const VcpkgPaths& paths, const BinaryControlFile& binary_paragraph, StatusParagraphs* status_db); |
