Stringize GIT_VERSION
This commit is contained in:
parent
5b63c2ebdb
commit
ecb5379809
|
@ -22,6 +22,7 @@
|
|||
<GitPreprocessorDefinitions>
|
||||
GIT_REVISION=$(GitRevision);
|
||||
GIT_REVISION_SHORT=$(GitRevisionShort);
|
||||
GIT_VERSION=$(GitVersion);
|
||||
VERSION_BUILD=$(GitRevisionCount);
|
||||
VERSION_BUILD_YEAR=$([System.DateTime]::Now.ToString(`yyyy`))
|
||||
</GitPreprocessorDefinitions>
|
||||
|
@ -37,14 +38,14 @@
|
|||
<ClCompile>
|
||||
<PreprocessorDefinitions>
|
||||
%(PreprocessorDefinitions);
|
||||
$(GitPreprocessorDefinitions)
|
||||
$(GitPreprocessorDefinitions);
|
||||
</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>
|
||||
%(PreprocessorDefinitions);
|
||||
$(GitPreprocessorDefinitions)
|
||||
</PreprocessorDefinitions>
|
||||
$(GitPreprocessorDefinitions);
|
||||
</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
//
|
||||
#include "resource.h"
|
||||
#include "Version.h"
|
||||
#include <Windows.h>
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#define GIT_DIRTY ""
|
||||
#endif
|
||||
#ifndef GIT_VERSION
|
||||
#define GIT_VERSION "Unknown"
|
||||
#define GIT_VERSION Unknown
|
||||
#endif
|
||||
|
||||
#define VER_FILE_DESCRIPTION_STR "Project64-audio"
|
||||
|
@ -39,7 +39,7 @@
|
|||
"." STRINGIZE(VERSION_MINOR) \
|
||||
"." STRINGIZE(VERSION_REVISION) \
|
||||
"." STRINGIZE(VERSION_BUILD) \
|
||||
"-" GIT_VERSION
|
||||
"-" STRINGIZE(GIT_VERSION)
|
||||
|
||||
#define VER_PRODUCTNAME_STR "Project64-audio"
|
||||
#define VER_PRODUCT_VERSION VER_FILE_VERSION
|
||||
|
|
Loading…
Reference in New Issue