Skip to content

Commit

Permalink
Merge pull request #191 from kobake/fix-non-git-build
Browse files Browse the repository at this point in the history
Git情報がなくてもビルドできるようにする (Close #148)
  • Loading branch information
m-tmatma authored Jun 30, 2018
2 parents 5546567 + 16c199f commit 404aac6
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions sakura_core/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,15 @@
#define ALPHA_VERSION_STR_WITH_SPACE ""
#endif

// リソース埋め込み用バージョン文字列
// e.g. "2.3.2.0 (4a0de579) UNICODE 64bit DEBUG"
// e.g. "2.3.2.0 (4a0de579) UNICODE 64bit"
#define RESOURCE_VERSION_STRING(_VersionString) _VersionString " (" GIT_SHORT_COMMIT_HASH ") " VER_CHARSET " " VER_PLATFORM SPACE_WHEN_DEBUG VER_CONFIG ALPHA_VERSION_STR_WITH_SPACE
// バージョン情報埋め込み用 Git ハッシュ文字列 (存在しない場合には空文字列)
#ifdef GIT_SHORT_COMMIT_HASH
#define VER_GIT_SHORTHASH " (" GIT_SHORT_COMMIT_HASH ")"
#else
#define VER_GIT_SHORTHASH ""
#endif

// リソース埋め込み用バージョン文字列 //
// e.g. "2.3.2.0 (4a0de579) UNICODE 64bit DEBUG" … デバッグビルド時の例 //
// e.g. "2.3.2.0 (4a0de579) UNICODE 64bit" … リリースビルド時の例 //
// e.g. "2.3.2.0 UNICODE 64bit" … Git 情報無い場合の例 //
#define RESOURCE_VERSION_STRING(_VersionString) _VersionString VER_GIT_SHORTHASH " " VER_CHARSET " " VER_PLATFORM SPACE_WHEN_DEBUG VER_CONFIG ALPHA_VERSION_STR_WITH_SPACE

0 comments on commit 404aac6

Please sign in to comment.