[or-cvs] r17045: {torvm} Add resource files for torvm.exe launcher app, version info, (torvm/trunk/build/win32/src/torvm-w32)

coderman at seul.org coderman at seul.org
Sun Oct 5 14:19:14 UTC 2008


Author: coderman
Date: 2008-10-05 10:19:13 -0400 (Sun, 05 Oct 2008)
New Revision: 17045

Added:
   torvm/trunk/build/win32/src/torvm-w32/tor-icon-16.ico
   torvm/trunk/build/win32/src/torvm-w32/tor-icon-32.ico
   torvm/trunk/build/win32/src/torvm-w32/tor-icon-48.ico
   torvm/trunk/build/win32/src/torvm-w32/torvm.rc
Modified:
   torvm/trunk/build/win32/src/torvm-w32/Makefile
Log:
Add resource files for torvm.exe launcher app, version info, etc.

Modified: torvm/trunk/build/win32/src/torvm-w32/Makefile
===================================================================
--- torvm/trunk/build/win32/src/torvm-w32/Makefile	2008-10-05 14:17:40 UTC (rev 17044)
+++ torvm/trunk/build/win32/src/torvm-w32/Makefile	2008-10-05 14:19:13 UTC (rev 17045)
@@ -10,14 +10,17 @@
 
 all: torvm$(EXESUF)
 
-OBJS+=torvm.o
+OBJS+=torvm.o torvmrc.o
 
 torvm$(EXESUF): $(OBJS)
-	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
 
-%.o: %.c
+torvm.o: torvm.c
 	$(CC) $(CPPFLAGS) -c -o $@ $<
 
+torvmrc.o: torvm.rc
+	windres torvm.rc torvmrc.o
+
 clean:
 	rm -f *.o *.d torvm$(EXESUF)
 

Added: torvm/trunk/build/win32/src/torvm-w32/tor-icon-16.ico
===================================================================
(Binary files differ)


Property changes on: torvm/trunk/build/win32/src/torvm-w32/tor-icon-16.ico
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: torvm/trunk/build/win32/src/torvm-w32/tor-icon-32.ico
===================================================================
(Binary files differ)


Property changes on: torvm/trunk/build/win32/src/torvm-w32/tor-icon-32.ico
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: torvm/trunk/build/win32/src/torvm-w32/tor-icon-48.ico
===================================================================
(Binary files differ)


Property changes on: torvm/trunk/build/win32/src/torvm-w32/tor-icon-48.ico
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: torvm/trunk/build/win32/src/torvm-w32/torvm.rc
===================================================================
--- torvm/trunk/build/win32/src/torvm-w32/torvm.rc	                        (rev 0)
+++ torvm/trunk/build/win32/src/torvm-w32/torvm.rc	2008-10-05 14:19:13 UTC (rev 17045)
@@ -0,0 +1,53 @@
+#include <windows.h>
+
+#define VER_COMPANYNAME_STR         "The Tor Project, Inc."
+#define VER_FILEDESCRIPTION_STR     "Tor VM"
+#define VER_INTERNALNAME_STR        "Tor VM"
+#define VER_LEGALCOPYRIGHT_STR      "Copyright (C) 2008 - The Tor Project, Inc."
+#define VER_LEGALTRADEMARKS1_STR    "Tor is a trademark of The Tor Project, Inc."
+#define VER_LEGALTRADEMARKS2_STR    ""
+#define VER_ORIGINALFILENAME_STR    "torvm.exe"
+#define VER_PRODUCTNAME_STR         "Tor VM"
+#define VER_FILEVERSION             0,0,0,1
+#define VER_FILEVERSION_STR         "0.0.1-alpha"
+#define VER_PRODUCTVERSION          0,0,0,1
+#define VER_PRODUCTVERSION_STR      "0.0.1-alpha"
+#define IDI_ICON1                   101
+IDI_ICON1 ICON DISCARDABLE          "tor-icon-48.ico"
+#define IDI_ICON2                   102
+IDI_ICON2 ICON DISCARDABLE          "tor-icon-32.ico"
+#define IDI_ICON3                   103
+IDI_ICON3 ICON DISCARDABLE          "tor-icon-16.ico"
+
+#ifndef DEBUG
+#define VER_DEBUG                   0
+#else
+#define VER_DEBUG                   VS_FF_DEBUG
+#endif
+
+VS_VERSION_INFO VERSIONINFO
+FILEVERSION    	VER_FILEVERSION
+PRODUCTVERSION 	VER_PRODUCTVERSION
+FILEFLAGSMASK  	VS_FFI_FILEFLAGSMASK
+FILEFLAGS      	VS_FF_PRERELEASE
+FILEOS         	VOS__WINDOWS32
+FILETYPE       	VFT_APP
+FILESUBTYPE    	VFT2_UNKNOWN
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904E4"
+        BEGIN
+            VALUE "CompanyName",      VER_COMPANYNAME_STR
+            VALUE "FileDescription",  VER_FILEDESCRIPTION_STR
+            VALUE "FileVersion",      VER_FILEVERSION_STR
+            VALUE "InternalName",     VER_INTERNALNAME_STR
+            VALUE "LegalCopyright",   VER_LEGALCOPYRIGHT_STR
+            VALUE "LegalTrademarks1", VER_LEGALTRADEMARKS1_STR
+            VALUE "LegalTrademarks2", VER_LEGALTRADEMARKS2_STR
+            VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
+            VALUE "ProductName",      VER_PRODUCTNAME_STR
+            VALUE "ProductVersion",   VER_PRODUCTVERSION_STR
+        END
+    END
+END



More information about the tor-commits mailing list