Stringize GIT_VERSION

This commit is contained in:
Julio C. Rocha 2024-05-10 15:08:55 -07:00
parent 5b63c2ebdb
commit ecb5379809
3 changed files with 7 additions and 5 deletions

View File

@ -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>

View File

@ -2,6 +2,7 @@
//
#include "resource.h"
#include "Version.h"
#include <Windows.h>
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////

View File

@ -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