vcpkg/toolsrc/include/vcpkglib.h
Robert Schumacher b788c2b209 [vcpkg] ImmutableSortedVector is actually Mutable via move.
Use fmap instead of construct/insert.
Don't cache VS2015 instances since it is called once.
Add ParagraphDataMap alias.
2017-04-01 03:30:52 -07:00

38 lines
1.2 KiB
C++

#pragma once
#include "StatusParagraphs.h"
#include "vcpkg_paths.h"
#include "SortedVector.h"
namespace vcpkg
{
extern bool g_debugging;
StatusParagraphs database_load_check(const vcpkg_paths& paths);
void write_update(const vcpkg_paths& paths, const StatusParagraph& p);
struct StatusParagraph_and_associated_files
{
StatusParagraph pgh;
SortedVector<std::string> files;
};
std::vector<StatusParagraph*> get_installed_ports(const StatusParagraphs& status_db);
std::vector<StatusParagraph_and_associated_files> get_installed_files(const vcpkg_paths& paths, const StatusParagraphs& status_db);
struct CMakeVariable
{
CMakeVariable(const cwstring_view varname, const wchar_t* varvalue);
CMakeVariable(const cwstring_view varname, const std::string& varvalue);
CMakeVariable(const cwstring_view varname, const std::wstring& varvalue);
CMakeVariable(const cwstring_view varname, const fs::path& path);
std::wstring s;
};
std::wstring make_cmake_cmd(const fs::path& cmake_exe, const fs::path& cmake_script, const std::vector<CMakeVariable>& pass_variables);
} // namespace vcpkg