updated build system

This commit is contained in:
2024-10-17 11:18:08 -05:00
parent 0bd7070ec5
commit d192904f8c
42 changed files with 975 additions and 1670 deletions

View File

@@ -32,9 +32,7 @@
namespace repertory::utils::file {
auto change_to_process_directory() -> bool {
static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__),
};
REPERTORY_USES_FUNCTION_NAME();
try {
#if defined(_WIN32)
@@ -100,9 +98,7 @@ auto create_temp_name(std::wstring_view file_part) -> std::wstring {
auto get_free_drive_space(std::string_view path)
-> std::optional<std::uint64_t> {
static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__),
};
REPERTORY_USES_FUNCTION_NAME();
try {
#if defined(_WIN32)
@@ -168,9 +164,7 @@ auto get_time(std::wstring_view path,
}
auto get_times(std::string_view path) -> std::optional<file_times> {
static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__),
};
REPERTORY_USES_FUNCTION_NAME();
try {
file_times ret{};
@@ -244,9 +238,7 @@ auto get_times(std::wstring_view path) -> std::optional<file_times> {
auto get_total_drive_space(std::string_view path)
-> std::optional<std::uint64_t> {
static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__),
};
REPERTORY_USES_FUNCTION_NAME();
try {
#if defined(_WIN32)
@@ -337,9 +329,7 @@ auto read_json_file(std::string_view path, nlohmann::json &data,
#else // !defined(PROJECT_ENABLE_LIBSODIUM) && defined(PROJECT_ENABLE_BOOST)
auto read_json_file(std::string_view path, nlohmann::json &data) -> bool {
#endif // defined(PROJECT_ENABLE_LIBSODIUM) && defined(PROJECT_ENABLE_BOOST)
static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__),
};
REPERTORY_USES_FUNCTION_NAME();
try {
auto abs_path = utils::path::absolute(path);
@@ -395,9 +385,7 @@ auto write_json_file(std::string_view path, const nlohmann::json &data,
auto write_json_file(std::string_view path,
const nlohmann::json &data) -> bool {
#endif // defined(PROJECT_ENABLE_LIBSODIUM) && defined(PROJECT_ENABLE_BOOST)
static constexpr const std::string_view function_name{
static_cast<const char *>(__FUNCTION__),
};
REPERTORY_USES_FUNCTION_NAME();
try {
auto file = file::open_or_create_file(path);