22 lines
460 B
C++
22 lines
460 B
C++
#pragma once
|
|
|
|
#include <string_view>
|
|
|
|
/*
|
|
* @namespace version
|
|
* @brief 提供应用程序的版本信息,包括Git提交哈希、标签、分支和构建时间
|
|
* @note 这些仅仅是声明
|
|
*
|
|
*/
|
|
|
|
namespace version
|
|
{
|
|
extern const std::string_view git_hash;
|
|
extern const std::string_view git_tag;
|
|
extern const std::string_view git_branch;
|
|
extern const std::string_view git_commit_time;
|
|
extern const std::string_view build_time;
|
|
}; // namespace version
|
|
|
|
|