From b12e0aad47ebb5fd46827c52cae11a165b4bbc4b Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Fri, 29 Apr 2016 00:23:55 -0700 Subject: [PATCH] versioning: add version resources to FSD and DLL; consolidate versioning to shared.properties --- build/VStudio/installer/Product.wxs | 4 +-- build/VStudio/installer/winfsp_msi.wixproj | 4 +-- build/VStudio/shared.properties | 20 ++++++------ build/VStudio/winfsp_dll.vcxproj | 9 ++++++ build/VStudio/winfsp_dll.vcxproj.filters | 5 +++ build/VStudio/winfsp_sys.vcxproj | 9 ++++++ build/VStudio/winfsp_sys.vcxproj.filters | 5 +++ src/dll/version.rc | 37 ++++++++++++++++++++++ src/sys/version.rc | 37 ++++++++++++++++++++++ 9 files changed, 116 insertions(+), 14 deletions(-) create mode 100644 src/dll/version.rc create mode 100644 src/sys/version.rc diff --git a/build/VStudio/installer/Product.wxs b/build/VStudio/installer/Product.wxs index c95360fa..d66b0e17 100644 --- a/build/VStudio/installer/Product.wxs +++ b/build/VStudio/installer/Product.wxs @@ -1,7 +1,7 @@ - - + + diff --git a/build/VStudio/installer/winfsp_msi.wixproj b/build/VStudio/installer/winfsp_msi.wixproj index 934d012e..cddc6504 100644 --- a/build/VStudio/installer/winfsp_msi.wixproj +++ b/build/VStudio/installer/winfsp_msi.wixproj @@ -16,7 +16,7 @@ $(SolutionDir)build\$(Configuration)\ $(SolutionDir)build\$(Name).build\$(Configuration)\$(Platform)\ - Debug;MyVersion=$(MyVersion) + Debug;MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion) False True True @@ -24,7 +24,7 @@ $(SolutionDir)build\$(Configuration)\ $(SolutionDir)build\$(Name).build\$(Configuration)\$(Platform)\ - MyVersion=$(MyVersion) + MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion) False True True diff --git a/build/VStudio/shared.properties b/build/VStudio/shared.properties index 9eb743d1..69425fc0 100644 --- a/build/VStudio/shared.properties +++ b/build/VStudio/shared.properties @@ -1,15 +1,15 @@  - - 0.9.$([System.DateTime]::Now.ToString(`yy`))$([System.DateTime]::Now.DayOfYear.ToString(`000`)) + WinFsp + Windows File System Proxy + Navimatics Corporation + 2015-2016 Bill Zissimopoulos + 0 + 9 + + $([System.DateTime]::Now.ToString(`yy`))$([System.DateTime]::Now.DayOfYear.ToString(`000`)) + $(MyVersionMajor).$(MyVersionMinor).$(MyBuildNumber) + $(MyVersionMajor),$(MyVersionMinor),$(MyBuildNumber),0 \ No newline at end of file diff --git a/build/VStudio/winfsp_dll.vcxproj b/build/VStudio/winfsp_dll.vcxproj index fa8884ed..425e1768 100644 --- a/build/VStudio/winfsp_dll.vcxproj +++ b/build/VStudio/winfsp_dll.vcxproj @@ -1,5 +1,6 @@  + Debug @@ -38,6 +39,14 @@ + + + _UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas) + _UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas) + _UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas) + _UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas) + + {4A7C0B21-9E10-4C81-92DE-1493EFCF24EB} Win32Proj diff --git a/build/VStudio/winfsp_dll.vcxproj.filters b/build/VStudio/winfsp_dll.vcxproj.filters index 6ae39e5b..df52df4a 100644 --- a/build/VStudio/winfsp_dll.vcxproj.filters +++ b/build/VStudio/winfsp_dll.vcxproj.filters @@ -61,4 +61,9 @@ Source + + + Source + + \ No newline at end of file diff --git a/build/VStudio/winfsp_sys.vcxproj b/build/VStudio/winfsp_sys.vcxproj index 009c67b8..5a050746 100644 --- a/build/VStudio/winfsp_sys.vcxproj +++ b/build/VStudio/winfsp_sys.vcxproj @@ -1,5 +1,6 @@  + Debug @@ -177,6 +178,14 @@ + + + _X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas) + _X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas) + _WIN64;_AMD64_=1;AMD64;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas) + _WIN64;_AMD64_=1;AMD64;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas) + + diff --git a/build/VStudio/winfsp_sys.vcxproj.filters b/build/VStudio/winfsp_sys.vcxproj.filters index 966c9e64..66204d64 100644 --- a/build/VStudio/winfsp_sys.vcxproj.filters +++ b/build/VStudio/winfsp_sys.vcxproj.filters @@ -101,4 +101,9 @@ Include\winfsp + + + Source + + \ No newline at end of file diff --git a/src/dll/version.rc b/src/dll/version.rc new file mode 100644 index 00000000..8ed5c6bb --- /dev/null +++ b/src/dll/version.rc @@ -0,0 +1,37 @@ +#include + +#define STR(x) STR_(x) +#define STR_(x) #x + +VS_VERSION_INFO VERSIONINFO +FILEVERSION MyVersionWithCommas +PRODUCTVERSION MyVersionWithCommas +FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG +FILEFLAGS VS_FF_DEBUG +#else +FILEFLAGS 0 +#endif +FILEOS VOS_NT +FILETYPE VFT_DLL +FILESUBTYPE 0 +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", STR(MyCompanyName) + VALUE "FileDescription", STR(MyDescription) + VALUE "FileVersion", STR(MyVersion) + VALUE "InternalName", "winfsp.dll" + VALUE "LegalCopyright", STR(MyCopyright) + VALUE "OriginalFilename", "winfsp.dll" + VALUE "ProductName", STR(MyProductName) + VALUE "ProductVersion", STR(MyVersion) + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END diff --git a/src/sys/version.rc b/src/sys/version.rc new file mode 100644 index 00000000..0a02ea07 --- /dev/null +++ b/src/sys/version.rc @@ -0,0 +1,37 @@ +#include + +#define STR(x) STR_(x) +#define STR_(x) #x + +VS_VERSION_INFO VERSIONINFO +FILEVERSION MyVersionWithCommas +PRODUCTVERSION MyVersionWithCommas +FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG +FILEFLAGS VS_FF_DEBUG +#else +FILEFLAGS 0 +#endif +FILEOS VOS_NT +FILETYPE VFT_DRV +FILESUBTYPE VFT2_DRV_SYSTEM +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", STR(MyCompanyName) + VALUE "FileDescription", STR(MyDescription) + VALUE "FileVersion", STR(MyVersion) + VALUE "InternalName", "winfsp.sys" + VALUE "LegalCopyright", STR(MyCopyright) + VALUE "OriginalFilename", "winfsp.sys" + VALUE "ProductName", STR(MyProductName) + VALUE "ProductVersion", STR(MyVersion) + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END