合并pr(#661): 减少unsport code打印,新增git信息获取

(cherry picked from commit 47f2f5b349)
This commit is contained in:
monktan
2020-12-29 11:36:06 +08:00
committed by xiongziliang
parent d37607026f
commit 3ddc14d35d
6 changed files with 72 additions and 8 deletions

11
server/version.h.ini Normal file
View File

@@ -0,0 +1,11 @@
#ifndef __GIT_VERSION_H__
#define __GIT_VERSION_H__
#include <string>
const std::string commit_hash = "@COMMIT_HASH@";
const std::string branch_name = "@BRANCH_NAME@";
const std::string build_time = "@BUILD_TIME@";
#endif //__GIT_VERSION_H__