mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 02:49:01 +08:00
Naming scheme
This commit is contained in:
parent
d09e7fa2d9
commit
f1867a8e89
@ -283,36 +283,36 @@ namespace vcpkg::System
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const fs::path& get_ProgramFiles()
|
static const fs::path& get_program_files()
|
||||||
{
|
{
|
||||||
static const fs::path p = System::get_environment_variable(L"PROGRAMFILES").value_or_exit(VCPKG_LINE_INFO);
|
static const fs::path PATH = System::get_environment_variable(L"PROGRAMFILES").value_or_exit(VCPKG_LINE_INFO);
|
||||||
return p;
|
return PATH;
|
||||||
}
|
}
|
||||||
|
|
||||||
const fs::path& get_ProgramFiles_32_bit()
|
const fs::path& get_ProgramFiles_32_bit()
|
||||||
{
|
{
|
||||||
static const fs::path p = []() -> fs::path {
|
static const fs::path PATH = []() -> fs::path {
|
||||||
auto value = System::get_environment_variable(L"ProgramFiles(x86)");
|
auto value = System::get_environment_variable(L"ProgramFiles(x86)");
|
||||||
if (auto v = value.get())
|
if (auto v = value.get())
|
||||||
{
|
{
|
||||||
return std::move(*v);
|
return std::move(*v);
|
||||||
}
|
}
|
||||||
return get_ProgramFiles();
|
return get_program_files();
|
||||||
}();
|
}();
|
||||||
return p;
|
return PATH;
|
||||||
}
|
}
|
||||||
|
|
||||||
const fs::path& get_ProgramFiles_platform_bitness()
|
const fs::path& get_ProgramFiles_platform_bitness()
|
||||||
{
|
{
|
||||||
static const fs::path p = []() -> fs::path {
|
static const fs::path PATH = []() -> fs::path {
|
||||||
auto value = System::get_environment_variable(L"ProgramW6432");
|
auto value = System::get_environment_variable(L"ProgramW6432");
|
||||||
if (auto v = value.get())
|
if (auto v = value.get())
|
||||||
{
|
{
|
||||||
return std::move(*v);
|
return std::move(*v);
|
||||||
}
|
}
|
||||||
return get_ProgramFiles();
|
return get_program_files();
|
||||||
}();
|
}();
|
||||||
return p;
|
return PATH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user