other-licenses/7zstub/src/7zip/MyVersionInfo.rc

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 #include <WinVer.h>
michael@0 2 #include "MyVersion.h"
michael@0 3
michael@0 4 #define MY_VER MY_VER_MAJOR,MY_VER_MINOR,MY_VER_BUILD,0
michael@0 5
michael@0 6 #ifdef DEBUG
michael@0 7 #define DBG_FL VS_FF_DEBUG
michael@0 8 #else
michael@0 9 #define DBG_FL 0
michael@0 10 #endif
michael@0 11
michael@0 12 #define MY_VERSION_INFO(fileType, descr, intName, origName) \
michael@0 13 LANGUAGE 9, 1 \
michael@0 14 1 VERSIONINFO \
michael@0 15 FILEVERSION MY_VER \
michael@0 16 PRODUCTVERSION MY_VER \
michael@0 17 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK \
michael@0 18 FILEFLAGS DBG_FL \
michael@0 19 FILEOS VOS_NT_WINDOWS32 \
michael@0 20 FILETYPE fileType \
michael@0 21 FILESUBTYPE 0x0L \
michael@0 22 BEGIN \
michael@0 23 BLOCK "StringFileInfo" \
michael@0 24 BEGIN \
michael@0 25 BLOCK "040904b0" \
michael@0 26 BEGIN \
michael@0 27 VALUE "CompanyName", "Igor Pavlov" \
michael@0 28 VALUE "FileDescription", descr \
michael@0 29 VALUE "FileVersion", MY_VERSION \
michael@0 30 VALUE "InternalName", intName \
michael@0 31 VALUE "LegalCopyright", MY_COPYRIGHT \
michael@0 32 VALUE "OriginalFilename", origName \
michael@0 33 VALUE "ProductName", "7-Zip" \
michael@0 34 VALUE "ProductVersion", MY_VERSION \
michael@0 35 END \
michael@0 36 END \
michael@0 37 END
michael@0 38
michael@0 39 #define MY_VERSION_INFO_APP(descr, intName) MY_VERSION_INFO(VFT_APP, descr, intName, intName ".exe")
michael@0 40
michael@0 41 #define MY_VERSION_INFO_DLL(descr, intName) MY_VERSION_INFO(VFT_DLL, descr, intName, intName ".dll")

mercurial