-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8b37191
gitrev.h に #pragma once 埋め込み
kobake b4965ae
exe, dll のバージョン情報にPlatform情報を埋め込み (32bit/64bit)
kobake 87d3dd1
バージョンダイアログ表示にPlatform情報を埋め込み (32bit/64bit)
kobake 2b43a34
RESOURCE_VERSION_STRING マクロの引数を _PascalCase に変更
kobake 6071052
リソースコンパイル時にも x64 版では _WIN64 定数を定義
kobake 30e4286
冗長インクルード除外
kobake 5068768
sakura_lang 側でも version.h を利用
kobake 901173a
リリースビルド時にバージョン文字列末尾に空白が入る問題を修正
kobake File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#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 | ||
|
||
#ifdef _DEBUG | ||
#define SPACE_WHEN_DEBUG " " | ||
#else | ||
#define SPACE_WHEN_DEBUG "" | ||
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
#else | ||
#include "sakura_lang.h" | ||
#endif | ||
#include "../sakura_core/gitrev.h" | ||
#include "../sakura_core/version.h" | ||
|
||
#define APSTUDIO_READONLY_SYMBOLS | ||
///////////////////////////////////////////////////////////////////////////// | ||
|
@@ -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" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
了解です