2016-09-18 20:50:08 -07:00
|
|
|
#pragma once
|
|
|
|
|
2017-10-13 18:37:41 -07:00
|
|
|
#include <vcpkg/base/files.h>
|
|
|
|
#include <vcpkg/base/optional.h>
|
2019-04-08 23:26:18 -07:00
|
|
|
#include <vcpkg/base/stringview.h>
|
|
|
|
#include <vcpkg/base/zstringview.h>
|
2017-10-13 18:37:41 -07:00
|
|
|
|
2017-01-05 12:47:08 -08:00
|
|
|
namespace vcpkg::System
|
2016-09-18 20:50:08 -07:00
|
|
|
{
|
2019-04-08 23:26:18 -07:00
|
|
|
Optional<std::string> get_environment_variable(ZStringView varname) noexcept;
|
2016-09-18 20:50:08 -07:00
|
|
|
|
2019-04-08 23:26:18 -07:00
|
|
|
Optional<std::string> get_registry_string(void* base_hkey, StringView subkey, StringView valuename);
|
2017-03-31 17:24:45 -07:00
|
|
|
|
2017-05-03 16:33:02 -07:00
|
|
|
enum class CPUArchitecture
|
|
|
|
{
|
|
|
|
X86,
|
|
|
|
X64,
|
|
|
|
ARM,
|
|
|
|
ARM64,
|
|
|
|
};
|
|
|
|
|
2019-04-08 23:26:18 -07:00
|
|
|
Optional<CPUArchitecture> to_cpu_architecture(StringView arch);
|
2017-05-03 16:33:02 -07:00
|
|
|
|
|
|
|
CPUArchitecture get_host_processor();
|
|
|
|
|
2017-08-24 13:26:42 +03:00
|
|
|
std::vector<CPUArchitecture> get_supported_host_architectures();
|
|
|
|
|
2018-03-21 18:21:30 -07:00
|
|
|
const Optional<fs::path>& get_program_files_32_bit();
|
2017-03-31 17:24:45 -07:00
|
|
|
|
2018-03-21 18:21:30 -07:00
|
|
|
const Optional<fs::path>& get_program_files_platform_bitness();
|
2017-01-05 12:47:08 -08:00
|
|
|
}
|