diff options
author | mvel <mvel@yandex-team.ru> | 2022-02-10 16:45:41 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:41 +0300 |
commit | 43f5a35593ebc9f6bcea619bb170394ea7ae468e (patch) | |
tree | e98df59de24d2ef7c77baed9f41e4875a2fef972 /library/cpp/build_info | |
parent | bd30392c4cc92487950adc375c07adf52da1d592 (diff) | |
download | ydb-43f5a35593ebc9f6bcea619bb170394ea7ae468e.tar.gz |
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/build_info')
-rw-r--r-- | library/cpp/build_info/build_info.h | 2 | ||||
-rw-r--r-- | library/cpp/build_info/sandbox.cpp.in | 50 | ||||
-rw-r--r-- | library/cpp/build_info/sandbox.h | 22 | ||||
-rw-r--r-- | library/cpp/build_info/ya.make | 8 |
4 files changed, 41 insertions, 41 deletions
diff --git a/library/cpp/build_info/build_info.h b/library/cpp/build_info/build_info.h index d8e3843f03..a494870ba3 100644 --- a/library/cpp/build_info/build_info.h +++ b/library/cpp/build_info/build_info.h @@ -1,6 +1,6 @@ #pragma once -#include "sandbox.h" +#include "sandbox.h" #include "build_info_static.h" #if defined(__cplusplus) diff --git a/library/cpp/build_info/sandbox.cpp.in b/library/cpp/build_info/sandbox.cpp.in index 071268c197..ac3b2d9004 100644 --- a/library/cpp/build_info/sandbox.cpp.in +++ b/library/cpp/build_info/sandbox.cpp.in @@ -1,27 +1,27 @@ #include <library/cpp/build_info/sandbox.h> #include <library/cpp/string_utils/base64/base64.h> -#include <util/generic/string.h> -#include <util/string/subst.h> - -extern "C" const char* GetSandboxTaskId() { - return "@SANDBOX_TASK_ID@"; -} - -class TKosherVersionHolder { -public: - const char* Version() const { - if (!Version_) { - TString version = "@KOSHER_SVN_VERSION@"; - SubstGlobal(version, ".", "="); - Version_ = Base64Decode(version); - } - return Version_.c_str(); - } -private: - mutable TString Version_; -}; - -// Experimental code for RMDEV-365 -extern "C" const char* GetKosherSvnVersion() { - return Singleton<TKosherVersionHolder>()->Version(); -} +#include <util/generic/string.h> +#include <util/string/subst.h> + +extern "C" const char* GetSandboxTaskId() { + return "@SANDBOX_TASK_ID@"; +} + +class TKosherVersionHolder { +public: + const char* Version() const { + if (!Version_) { + TString version = "@KOSHER_SVN_VERSION@"; + SubstGlobal(version, ".", "="); + Version_ = Base64Decode(version); + } + return Version_.c_str(); + } +private: + mutable TString Version_; +}; + +// Experimental code for RMDEV-365 +extern "C" const char* GetKosherSvnVersion() { + return Singleton<TKosherVersionHolder>()->Version(); +} diff --git a/library/cpp/build_info/sandbox.h b/library/cpp/build_info/sandbox.h index 331340db18..924ff89c8c 100644 --- a/library/cpp/build_info/sandbox.h +++ b/library/cpp/build_info/sandbox.h @@ -1,12 +1,12 @@ -#pragma once - -#if defined(__cplusplus) -extern "C" { -#endif - +#pragma once + +#if defined(__cplusplus) +extern "C" { +#endif + const char* GetSandboxTaskId(); -const char* GetKosherSvnVersion(); - -#if defined(__cplusplus) -} -#endif +const char* GetKosherSvnVersion(); + +#if defined(__cplusplus) +} +#endif diff --git a/library/cpp/build_info/ya.make b/library/cpp/build_info/ya.make index 1ddbe0d7df..99886a8893 100644 --- a/library/cpp/build_info/ya.make +++ b/library/cpp/build_info/ya.make @@ -11,12 +11,12 @@ DEFAULT(KOSHER_SVN_VERSION "") CREATE_BUILDINFO_FOR(buildinfo_data.h) -PEERDIR( +PEERDIR( library/cpp/string_utils/base64 -) - +) + SRCS( - sandbox.cpp.in + sandbox.cpp.in build_info.cpp.in build_info_static.cpp ) |