Go to the documentation of this file.
125 std::filesystem::path
ApplyBinaryExtension(
const std::filesystem::path &basename,
bool windows);
262 std::ostream &
operator<<(std::ostream &os,
const Config &o);
constexpr char TaskDefinitionC[]
TaskDefinitionC denotes the path to a C task definition source file.
Definition: rez.hpp:31
@ C
C denotes C, the successor to BCPL.
constexpr char Version[]
Version is semver.
Definition: rez.hpp:21
constexpr char DefaultMSVCToolchainQueryScript[]
DefaultMSVCToolchainQueryScript denotes the standard script which prepares environment variables for ...
Definition: rez.hpp:87
Lang task_definition_lang
task_definition_lang denotes the programming language for the user's task definition source file....
Definition: rez.hpp:192
void Load()
Load populates build parameters according to the documented defaults and override mechanisms.
Definition: rez.cpp:180
bool debug
debug controls whether additional logging is performed. (Default: false)
Definition: rez.hpp:160
std::ostream & operator<<(std::ostream &os, const Lang &o)
<< formats a Lang to an ostream.
Definition: rez.cpp:25
constexpr char ArchitectureMsvcAmd64[]
ArchitectureMsvcAmd64 denotes the amd64 architecture in MSVC nomenclature.
Definition: rez.hpp:92
std::filesystem::path task_definition_path
task_definition_path denotes the user's task definition source file. (Default: rez....
Definition: rez.hpp:182
Lang
Lang denotes a programming language.
Definition: rez.hpp:97
std::string build_command
build_command denotes the compilation step for the user task source file (Default: Determined at runt...
Definition: rez.hpp:236
constexpr char DefaultCompilerWindows[]
DefaultCompilerWindows denotes the standard Microsoft Visual C++ (MSVC) compiler executable basename.
Definition: rez.hpp:62
void ApplyMSVCToolchain() const
ApplyMSVCToolchain loads MSVC environment variables for cl into the current process.
Definition: rez.cpp:81
std::filesystem::path cache_file_path
Definition: rez.hpp:150
constexpr char DefaultCompilerUnixCpp[]
DefaultCompilerUnixCpp denotes the standard UNIX C++ compiler executable basename.
Definition: rez.hpp:71
@ Cpp
Cpp denotes C++, object oriented C.
constexpr char CacheDir[]
CacheDir denotes the path to the rez internal cache directory.
Definition: rez.hpp:36
std::filesystem::path ApplyBinaryExtension(const std::filesystem::path &basename, bool windows)
ApplyBinaryExtension applies OS-appropriate file extensions to binaries.
Definition: rez.cpp:34
std::string compiler
compiler denotes the executable used to build the user task tree. (Default: Determined at runtime by ...
Definition: rez.hpp:207
constexpr char ArtifactDirBasename[]
ArtifactDirBaename denotes the path insode of CacheDir where artifacts are housed.
Definition: rez.hpp:46
constexpr char TaskDefinitionCpp[]
TaskDefinitionCpp denotes the path to a C++ task definition source file.
Definition: rez.hpp:26
Config parameterizes rez builds.
Definition: rez.hpp:149
constexpr char CacheFileBasename[]
CacheFileBasename denotes the basename of the internal rez cache file.
Definition: rez.hpp:41
bool windows
windows denotes whether the runtime environment is (COMSPEC) Windows. (Default: Determined at runtime...
Definition: rez.hpp:170
std::filesystem::path artifact_dir_path
artifact_dir_path denotes the path where rez binaries are housed (Default: std::filesystem::path(Cach...
Definition: rez.hpp:216
rez manages C++ tasks.
Definition: rez.hpp:17
bool DetectWindowsEnvironment()
DetectWindowsEnvironment determines whether the runtime environment is (COMSPEC) Windows.
Definition: rez.cpp:77
constexpr char DefaultCompilerUnixC[]
DefaultCompilerUnixC denotes the standard UNIX C compiler executable basename.
Definition: rez.hpp:80
constexpr char ArtifactFileBasenameUnix[]
ArtifactFileBasenameUnix denotes the basename of user task binaries generated by UNIX compilers.
Definition: rez.hpp:51
std::filesystem::path artifact_file_path
artifact_file_path denotes the binary path where user task executable shall be generated (Default: De...
Definition: rez.hpp:226
std::optional< std::string > GetEnvironmentVariable(const std::string &key)
GetEnvironmentVariable retrieves environment variables.
Definition: rez.cpp:44