forked from assimp/assimp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add git commit, original filename to DLL PE header
Windows only
- Loading branch information
1 parent
bdf6612
commit b8d4ae5
Showing
2 changed files
with
12 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,16 @@ | |
#define STR(x) STR_HELP(x) | ||
|
||
#define VER_FILEVERSION VER_MAJOR,VER_MINOR,VER_PATCH,VER_BUILD | ||
#if (GitVersion == 0) | ||
#define VER_FILEVERSION_STR STR(VER_MAJOR) "." STR(VER_MINOR) "." STR(VER_PATCH) "." STR(VER_BUILD) | ||
#else | ||
#define VER_FILEVERSION_STR STR(VER_MAJOR) "." STR(VER_MINOR) "." STR(VER_PATCH) "." STR(VER_BUILD) " (Commit 0x@GIT_COMMIT_HASH@)" | ||
#endif | ||
|
||
#ifdef NDEBUG | ||
#define VER_ORIGINAL_FILENAME_STR "assimp@[email protected]" | ||
#else | ||
#define VER_ORIGINAL_FILENAME_STR "assimp@LIBRARY_SUFFIX@@[email protected]" | ||
#endif // NDEBUG | ||
|
||
#endif // ASSIMP_REVISION_H_INC |