2016-09-19 11:50:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
2017-04-28 08:56:06 +08:00
|
|
|
#include "SortedVector.h"
|
2016-09-19 11:50:08 +08:00
|
|
|
#include "StatusParagraphs.h"
|
2017-04-04 07:29:11 +08:00
|
|
|
#include "VcpkgPaths.h"
|
2016-09-19 11:50:08 +08:00
|
|
|
|
|
|
|
namespace vcpkg
|
|
|
|
{
|
2017-03-14 07:39:40 +08:00
|
|
|
extern bool g_debugging;
|
|
|
|
|
2017-04-04 07:29:11 +08:00
|
|
|
StatusParagraphs database_load_check(const VcpkgPaths& paths);
|
2016-09-19 11:50:08 +08:00
|
|
|
|
2017-04-04 07:29:11 +08:00
|
|
|
void write_update(const VcpkgPaths& paths, const StatusParagraph& p);
|
2016-11-16 03:56:46 +08:00
|
|
|
|
2017-04-04 07:32:14 +08:00
|
|
|
struct StatusParagraphAndAssociatedFiles
|
2016-12-02 07:36:39 +08:00
|
|
|
{
|
|
|
|
StatusParagraph pgh;
|
2017-04-01 18:30:52 +08:00
|
|
|
SortedVector<std::string> files;
|
2016-12-02 07:36:39 +08:00
|
|
|
};
|
|
|
|
|
2017-03-30 07:00:41 +08:00
|
|
|
std::vector<StatusParagraph*> get_installed_ports(const StatusParagraphs& status_db);
|
2017-04-28 08:56:06 +08:00
|
|
|
std::vector<StatusParagraphAndAssociatedFiles> get_installed_files(const VcpkgPaths& paths,
|
|
|
|
const StatusParagraphs& status_db);
|
2017-03-11 08:39:04 +08:00
|
|
|
|
|
|
|
struct CMakeVariable
|
|
|
|
{
|
2017-04-04 05:21:51 +08:00
|
|
|
CMakeVariable(const CWStringView varname, const wchar_t* varvalue);
|
|
|
|
CMakeVariable(const CWStringView varname, const std::string& varvalue);
|
|
|
|
CMakeVariable(const CWStringView varname, const std::wstring& varvalue);
|
|
|
|
CMakeVariable(const CWStringView varname, const fs::path& path);
|
2017-03-11 08:39:04 +08:00
|
|
|
|
|
|
|
std::wstring s;
|
|
|
|
};
|
|
|
|
|
2017-04-28 08:56:06 +08:00
|
|
|
std::wstring make_cmake_cmd(const fs::path& cmake_exe,
|
|
|
|
const fs::path& cmake_script,
|
|
|
|
const std::vector<CMakeVariable>& pass_variables);
|
2017-03-11 08:39:04 +08:00
|
|
|
|
2016-09-19 11:50:08 +08:00
|
|
|
} // namespace vcpkg
|