]> git.proxmox.com Git - libgit2.git/commitdiff
win32: add the patch level to the .dll fileversion
authorEdward Thomson <ethomson@microsoft.com>
Mon, 2 Mar 2015 15:35:26 +0000 (10:35 -0500)
committerEdward Thomson <ethomson@microsoft.com>
Mon, 2 Mar 2015 15:35:26 +0000 (10:35 -0500)
Win32 DLLs have four fields for the version number (major, minor,
teeny, patch).  If a consumer wants to build a custom DLL, it may
be useful to set the patchlevel version number in the DLL.

This value only affects the DLL version number, it does not affect
the resultant "version number", which remains major.minor.teeny.

include/git2/version.h
src/win32/git2.rc

index a330685e0870070c399503b32118dd417610439c..456bbe258d3666c71e65cb26d1870c15d2b5869e 100644 (file)
@@ -11,6 +11,7 @@
 #define LIBGIT2_VER_MAJOR 0
 #define LIBGIT2_VER_MINOR 22
 #define LIBGIT2_VER_REVISION 0
+#define LIBGIT2_VER_PATCH 0
 
 #define LIBGIT2_SOVERSION 22
 
index 22c63f6950ab5ae7ac3561c39b0a124110766f81..b2e59807b4bf48b5c622c0204af0dcec3b387e6a 100644 (file)
@@ -6,8 +6,8 @@
 #endif
 
 VS_VERSION_INFO                VERSIONINFO     MOVEABLE IMPURE LOADONCALL DISCARDABLE
-  FILEVERSION          LIBGIT2_VER_MAJOR,LIBGIT2_VER_MINOR,LIBGIT2_VER_REVISION,0
-  PRODUCTVERSION       LIBGIT2_VER_MAJOR,LIBGIT2_VER_MINOR,LIBGIT2_VER_REVISION,0
+  FILEVERSION          LIBGIT2_VER_MAJOR,LIBGIT2_VER_MINOR,LIBGIT2_VER_REVISION,LIBGIT2_VER_PATCH
+  PRODUCTVERSION       LIBGIT2_VER_MAJOR,LIBGIT2_VER_MINOR,LIBGIT2_VER_REVISION,LIBGIT2_VER_PATCH
   FILEFLAGSMASK                VS_FFI_FILEFLAGSMASK
 #ifdef _DEBUG
   FILEFLAGS            VS_FF_DEBUG