减少unsport code打印,新增git信息获取

This commit is contained in:
monktan
2020-12-29 11:36:06 +08:00
parent 871127d11a
commit 47f2f5b349
5 changed files with 63 additions and 1 deletions

11
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__