diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/DSUtilLite/DSUtilLite.vcxproj | 6 | ||||
-rw-r--r-- | common/includes/version.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/common/DSUtilLite/DSUtilLite.vcxproj b/common/DSUtilLite/DSUtilLite.vcxproj index b1f438d7..28af7355 100644 --- a/common/DSUtilLite/DSUtilLite.vcxproj +++ b/common/DSUtilLite/DSUtilLite.vcxproj @@ -62,11 +62,17 @@ <ClCompile> <PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> + <PreBuildEvent> + <Command>..\..\update_version.bat</Command> + </PreBuildEvent> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> <ClCompile> <PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> + <PreBuildEvent> + <Command>..\..\update_version.bat</Command> + </PreBuildEvent> </ItemDefinitionGroup> <ItemGroup> <ClInclude Include="BaseDSPropPage.h" /> diff --git a/common/includes/version.h b/common/includes/version.h index 87b031c2..7e844a36 100644 --- a/common/includes/version.h +++ b/common/includes/version.h @@ -8,6 +8,8 @@ #define LAV_VIDEO "LAV Video Decoder" #define LAV_SPLITTER "LAV Splitter" +#include "version_rev.h" + ///////////////////////////////////////////////////////// #ifndef ISPP_INCLUDED @@ -24,8 +26,8 @@ #define DO_MAKE_STR(x) #x #define MAKE_STR(x) DO_MAKE_STR(x) -#define LAV_VERSION LAV_VERSION_MAJOR.LAV_VERSION_MINOR.LAV_VERSION_REVISION -#define LAV_VERSION_TAG LAV_VERSION_MAJOR, LAV_VERSION_MINOR, LAV_VERSION_REVISION +#define LAV_VERSION LAV_VERSION_MAJOR.LAV_VERSION_MINOR.LAV_VERSION_REVISION.LAV_VERSION_COMMIT_NUM +#define LAV_VERSION_TAG LAV_VERSION_MAJOR, LAV_VERSION_MINOR, LAV_VERSION_REVISION, LAV_VERSION_COMMIT_NUM #define LAV_VERSION_STR MAKE_STR(LAV_VERSION) |