-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[x64対応] バージョン情報にPlatform情報を埋め込み (32bit/64bit) #179
Changes from 6 commits
8b37191
b4965ae
87d3dd1
2b43a34
6071052
30e4286
5068768
901173a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
|
||
#include "gitrev.h" | ||
|
||
#ifdef _UNICODE | ||
#define VER_CHARSET "UNICODE" | ||
#else | ||
#define VER_CHARSET "ANSI" | ||
#endif | ||
|
||
#ifdef _WIN64 | ||
#define VER_PLATFORM "64bit" | ||
#else | ||
#define VER_PLATFORM "32bit" | ||
#endif | ||
|
||
#ifdef _DEBUG | ||
#define VER_CONFIG "DEBUG" | ||
#else | ||
#define VER_CONFIG "" | ||
#endif | ||
|
||
// リソース埋め込み用バージョン文字列 | ||
// e.g. "2.3.2.0 (4a0de579) UNICODE 64bit DEBUG" | ||
#define RESOURCE_VERSION_STRING(_VersionString) _VersionString " (" GIT_SHORT_COMMIT_HASH ") " VER_CHARSET " " VER_PLATFORM " " VER_CONFIG | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #90 で書きましたが、Release 版のときに、 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 対応しました |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2790,7 +2790,6 @@ END | |
// | ||
// Version | ||
// | ||
|
||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION FL_VER | ||
PRODUCTVERSION PR_VER | ||
|
@@ -2817,16 +2816,7 @@ BEGIN | |
VALUE "LegalTrademarks", " \0" | ||
VALUE "OriginalFilename", "sakura.exe\0" | ||
VALUE "ProductName", "Sakura Editor Language DLL\0" | ||
VALUE "ProductVersion", PR_VER_STR | ||
#if defined(GIT_SHORT_COMMIT_HASH) | ||
" (GitHash " GIT_SHORT_COMMIT_HASH ")" | ||
#endif | ||
#ifdef _DEBUG | ||
" Debug version" | ||
#endif | ||
#ifndef _UNICODE | ||
" ANSI" | ||
#endif | ||
VALUE "ProductVersion", RESOURCE_VERSION_STRING(PR_VER_STR) // e.g. "2.3.2.0 4a0de579 UNICODE 64bit DEBUG" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 対応しました |
||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
以下のようにするのはいかがでしょうか?
追加や削除が容易になると思います。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今は x64 マージを優先したいです
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
了解です