diff --git a/.gitignore b/.gitignore index f233444a5..c45ceed94 100644 --- a/.gitignore +++ b/.gitignore @@ -95,4 +95,3 @@ Thumbs.db /Plugin64/RSP/RSP-HLE_d.dll /Plugin64/RSP/RSP-HLE.dll /Save -/Source/Project64-video/Version.h diff --git a/Source/Project64-video/Project64-video.vcxproj b/Source/Project64-video/Project64-video.vcxproj index 1b933c04e..2e40b9542 100644 --- a/Source/Project64-video/Project64-video.vcxproj +++ b/Source/Project64-video/Project64-video.vcxproj @@ -1,219 +1,219 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {A4D13408-A794-4199-8FC7-4A9A32505005} - Project64-video - - - DynamicLibrary - - - - - - - - - Project64-Video - Project64-Video_d - $(SolutionDir)Plugin\GFX\ - $(SolutionDir)Plugin64\GFX\ - - - - $(Root)Source/Project64-video/Renderer/inc;inc;%(AdditionalIncludeDirectories) - __MSC__;%(PreprocessorDefinitions) - NO_ASM;%(PreprocessorDefinitions) - RDP_LOGGING;RDP_ERROR_LOG;%(PreprocessorDefinitions) - - 4611 - - - "$(SolutionDir)Source\Script\UpdateVersion.cmd" "$(Configuration)" "$(Platform)" "$(SolutionDir)Source\Project64-video\Version.h.in" "$(SolutionDir)Source\Project64-video\Version.h" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - true - - - true - - - true - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {17836496-31b0-46f2-b1b1-366d7df6f04c} - - - {731bd205-2826-4631-b7af-117658e88dbc} - - - {b4a4b994-9111-42b1-93c2-6f1ca8bc4421} - false - - - {8b9961b1-88d9-4ea3-a752-507a00dd9f3d} - false - - - {1968162c-0793-491d-91a1-81645a24d399} - - + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {A4D13408-A794-4199-8FC7-4A9A32505005} + Project64-video + + + DynamicLibrary + + + + + + + + + Project64-Video + Project64-Video_d + $(SolutionDir)Plugin\GFX\ + $(SolutionDir)Plugin64\GFX\ + + + + $(Root)Source/Project64-video/Renderer/inc;inc;%(AdditionalIncludeDirectories) + __MSC__;%(PreprocessorDefinitions) + NO_ASM;%(PreprocessorDefinitions) + RDP_LOGGING;RDP_ERROR_LOG;%(PreprocessorDefinitions) + + 4611 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + true + + + true + + + true + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {17836496-31b0-46f2-b1b1-366d7df6f04c} + + + {731bd205-2826-4631-b7af-117658e88dbc} + + + {b4a4b994-9111-42b1-93c2-6f1ca8bc4421} + false + + + {8b9961b1-88d9-4ea3-a752-507a00dd9f3d} + false + + + {1968162c-0793-491d-91a1-81645a24d399} + + \ No newline at end of file diff --git a/Source/Project64-video/Version.h b/Source/Project64-video/Version.h new file mode 100644 index 000000000..8aac56dee --- /dev/null +++ b/Source/Project64-video/Version.h @@ -0,0 +1,59 @@ +#define STRINGIZE2(s) #s +#define STRINGIZE(s) STRINGIZE2(s) + +#ifndef VERSION_MAJOR +#define VERSION_MAJOR 4 +#endif +#ifndef VERSION_MINOR +#define VERSION_MINOR 0 +#endif +#ifndef VERSION_REVISION +#define VERSION_REVISION 0 +#endif +#ifndef VERSION_BUILD +#define VERSION_BUILD 9999 +#endif +#ifndef VERSION_PREFIX +#define VERSION_PREFIX "Dev-" +#endif +#ifndef VERSION_BUILD_YEAR +#define VERSION_BUILD_YEAR 2022 +#endif + +#ifndef GIT_REVISION +#define GIT_REVISION "" +#endif +#ifndef GIT_REVISION_SHORT +#define GIT_REVISION_SHORT "" +#endif +#ifndef GIT_DIRTY +#define GIT_DIRTY "" +#endif +#ifndef GIT_VERSION +#define GIT_VERSION Unknown +#endif + +#define VER_FILE_DESCRIPTION_STR "Project64-video" +#define VER_FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_BUILD +#define VER_FILE_VERSION_STR VERSION_PREFIX STRINGIZE(VERSION_MAJOR) \ + "." STRINGIZE(VERSION_MINOR) \ + "." STRINGIZE(VERSION_REVISION) \ + "." STRINGIZE(VERSION_BUILD) \ + "-" STRINGIZE(GIT_VERSION) + +#define VER_PRODUCTNAME_STR "Project64-video" +#define VER_PRODUCT_VERSION VER_FILE_VERSION +#define VER_PRODUCT_VERSION_STR VER_FILE_VERSION_STR +#define VER_ORIGINAL_FILENAME_STR VER_PRODUCTNAME_STR ".dll" +#define VER_INTERNAL_NAME_STR VER_PRODUCTNAME_STR +#define VER_COPYRIGHT_STR "Copyright (C) " STRINGIZE(VERSION_BUILD_YEAR) + +#ifdef _DEBUG +#define VER_VER_DEBUG VS_FF_DEBUG +#else +#define VER_VER_DEBUG 0 +#endif + +#define VER_FILEOS VOS_NT_WINDOWS32 +#define VER_FILEFLAGS VER_VER_DEBUG +#define VER_FILETYPE VFT_DLL