Commits

Adrian Buehlmann committed b511275

shellext: add simple version resource

  • Participants
  • Parent commits 77428c3
  • Branches stable

Comments (0)

Files changed (3)

 *.idb
 *.pdb
 *.manifest
+*.res
 glob:win32/shellext/shellext.ncb
 glob:win32/shellext/shellext.suo
 glob:win32/shellext/Debug/

File win32/shellext/Makefile.nmake

 all: THgShell.dll
 
 clean:
-    del *.obj *.dll *.exe *.lib *.exp *.manifest
+    del *.obj *.dll *.exe *.lib *.exp *.manifest *.res
 
 THgShell.dll: $(OBJECTS_THGSGELL)
-    link /OUT:$@ $(LDFLAGS_THGSHELL) $**
+    rc shellext.rc
+    link /OUT:$@ $(LDFLAGS_THGSHELL) $** shellext.res
     mt -nologo -manifest $@.manifest -outputresource:"$@;#2"
 
 dirstate.exe: dirstate.obj $(OBJECTS_DIRSTATE)

File win32/shellext/shellext.rc

+#include "windows.h"
+
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 0,9,3,0
+ PRODUCTVERSION 0,9,3,0
+ FILEFLAGSMASK 0x17L
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904b0"
+        BEGIN
+            VALUE "Comments", "TortoiseHg Shell Extension"
+            VALUE "CompanyName", "TortoiseHg Project"
+            VALUE "FileDescription", "TortoiseHg Shell Extension Dynamic Link Library"
+            VALUE "FileVersion", "0, 9, 3, 0"
+            VALUE "InternalName", "shellext"
+            VALUE "LegalCopyright", "Copyright (C) 2010"
+            VALUE "OriginalFilename", "ThgShell.dll"
+            VALUE "ProductName", "TortoiseHg Shell Extension Dynamic Link Library"
+            VALUE "ProductVersion", "0, 9, 3, 0"
+        END
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x409, 1200
+    END
+END