32 lines
774 B
C
Raw Normal View History

2016-09-18 20:50:08 -07:00
#pragma once
#include <vcpkg/base/files.h>
#include <vcpkg/base/optional.h>
#include <vcpkg/base/stringview.h>
#include <vcpkg/base/zstringview.h>
2017-01-05 12:47:08 -08:00
namespace vcpkg::System
2016-09-18 20:50:08 -07:00
{
Optional<std::string> get_environment_variable(ZStringView varname) noexcept;
2016-09-18 20:50:08 -07:00
Optional<std::string> get_registry_string(void* base_hkey, StringView subkey, StringView valuename);
enum class CPUArchitecture
{
X86,
X64,
ARM,
ARM64,
};
Optional<CPUArchitecture> to_cpu_architecture(StringView arch);
CPUArchitecture get_host_processor();
std::vector<CPUArchitecture> get_supported_host_architectures();
const Optional<fs::path>& get_program_files_32_bit();
const Optional<fs::path>& get_program_files_platform_bitness();
2017-01-05 12:47:08 -08:00
}