mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-29 19:18:39 -05:00 
			
		
		
		
	launcher, launchctl: add version info
This commit is contained in:
		| @@ -1,5 +1,6 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||||
|  |   <Import Project="..\version.properties" /> | ||||||
|   <ItemGroup Label="ProjectConfigurations"> |   <ItemGroup Label="ProjectConfigurations"> | ||||||
|     <ProjectConfiguration Include="Debug|Win32"> |     <ProjectConfiguration Include="Debug|Win32"> | ||||||
|       <Configuration>Debug</Configuration> |       <Configuration>Debug</Configuration> | ||||||
| @@ -174,6 +175,14 @@ | |||||||
|   <ItemGroup> |   <ItemGroup> | ||||||
|     <ClCompile Include="..\..\..\src\launcher\launchctl.c" /> |     <ClCompile Include="..\..\..\src\launcher\launchctl.c" /> | ||||||
|   </ItemGroup> |   </ItemGroup> | ||||||
|  |   <ItemGroup> | ||||||
|  |     <ResourceCompile Include="..\..\..\src\launcher\launchctl-version.rc"> | ||||||
|  |       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions> | ||||||
|  |       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions> | ||||||
|  |       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions> | ||||||
|  |       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions> | ||||||
|  |     </ResourceCompile> | ||||||
|  |   </ItemGroup> | ||||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||||||
|   <ImportGroup Label="ExtensionTargets"> |   <ImportGroup Label="ExtensionTargets"> | ||||||
|   </ImportGroup> |   </ImportGroup> | ||||||
|   | |||||||
| @@ -25,4 +25,9 @@ | |||||||
|       <Filter>Source</Filter> |       <Filter>Source</Filter> | ||||||
|     </ClCompile> |     </ClCompile> | ||||||
|   </ItemGroup> |   </ItemGroup> | ||||||
|  |   <ItemGroup> | ||||||
|  |     <ResourceCompile Include="..\..\..\src\launcher\launchctl-version.rc"> | ||||||
|  |       <Filter>Source</Filter> | ||||||
|  |     </ResourceCompile> | ||||||
|  |   </ItemGroup> | ||||||
| </Project> | </Project> | ||||||
| @@ -1,5 +1,6 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||||
|  |   <Import Project="..\version.properties" /> | ||||||
|   <ItemGroup Label="ProjectConfigurations"> |   <ItemGroup Label="ProjectConfigurations"> | ||||||
|     <ProjectConfiguration Include="Debug|Win32"> |     <ProjectConfiguration Include="Debug|Win32"> | ||||||
|       <Configuration>Debug</Configuration> |       <Configuration>Debug</Configuration> | ||||||
| @@ -179,6 +180,14 @@ | |||||||
|     <ClInclude Include="..\..\..\src\launcher\launcher.h" /> |     <ClInclude Include="..\..\..\src\launcher\launcher.h" /> | ||||||
|     <ClInclude Include="..\..\..\src\shared\minimal.h" /> |     <ClInclude Include="..\..\..\src\shared\minimal.h" /> | ||||||
|   </ItemGroup> |   </ItemGroup> | ||||||
|  |   <ItemGroup> | ||||||
|  |     <ResourceCompile Include="..\..\..\src\launcher\launcher-version.rc"> | ||||||
|  |       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions> | ||||||
|  |       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions> | ||||||
|  |       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions> | ||||||
|  |       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">_UNICODE;UNICODE;%(PreprocessorDefinitions);MyProductName=$(MyProductName);MyDescription=$(MyDescription);MyCompanyName=$(MyCompanyName);MyCopyright=$(MyCopyright);MyVersion=$(MyVersion);MyVersionWithCommas=$(MyVersionWithCommas)</PreprocessorDefinitions> | ||||||
|  |     </ResourceCompile> | ||||||
|  |   </ItemGroup> | ||||||
|   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||||||
|   <ImportGroup Label="ExtensionTargets"> |   <ImportGroup Label="ExtensionTargets"> | ||||||
|   </ImportGroup> |   </ImportGroup> | ||||||
|   | |||||||
| @@ -25,4 +25,9 @@ | |||||||
|       <Filter>Source</Filter> |       <Filter>Source</Filter> | ||||||
|     </ClInclude> |     </ClInclude> | ||||||
|   </ItemGroup> |   </ItemGroup> | ||||||
|  |   <ItemGroup> | ||||||
|  |     <ResourceCompile Include="..\..\..\src\launcher\launcher-version.rc"> | ||||||
|  |       <Filter>Source</Filter> | ||||||
|  |     </ResourceCompile> | ||||||
|  |   </ItemGroup> | ||||||
| </Project> | </Project> | ||||||
							
								
								
									
										37
									
								
								src/launcher/launchctl-version.rc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								src/launcher/launchctl-version.rc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | |||||||
|  | #include <winver.h> | ||||||
|  |  | ||||||
|  | #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_APP | ||||||
|  | FILESUBTYPE 0 | ||||||
|  | BEGIN | ||||||
|  |     BLOCK "StringFileInfo" | ||||||
|  |     BEGIN | ||||||
|  |         BLOCK "040904b0" | ||||||
|  |         BEGIN | ||||||
|  |             VALUE "CompanyName", STR(MyCompanyName) | ||||||
|  |             VALUE "FileDescription", STR(MyDescription) | ||||||
|  |             VALUE "FileVersion", STR(MyVersion) | ||||||
|  |             VALUE "InternalName", "launchctl.exe" | ||||||
|  |             VALUE "LegalCopyright", STR(MyCopyright) | ||||||
|  |             VALUE "OriginalFilename", "launchctl.exe" | ||||||
|  |             VALUE "ProductName", STR(MyProductName) | ||||||
|  |             VALUE "ProductVersion", STR(MyVersion) | ||||||
|  |         END | ||||||
|  |     END | ||||||
|  |     BLOCK "VarFileInfo" | ||||||
|  |     BEGIN | ||||||
|  |         VALUE "Translation", 0x409, 1200 | ||||||
|  |     END | ||||||
|  | END | ||||||
							
								
								
									
										37
									
								
								src/launcher/launcher-version.rc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								src/launcher/launcher-version.rc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | |||||||
|  | #include <winver.h> | ||||||
|  |  | ||||||
|  | #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_APP | ||||||
|  | FILESUBTYPE 0 | ||||||
|  | BEGIN | ||||||
|  |     BLOCK "StringFileInfo" | ||||||
|  |     BEGIN | ||||||
|  |         BLOCK "040904b0" | ||||||
|  |         BEGIN | ||||||
|  |             VALUE "CompanyName", STR(MyCompanyName) | ||||||
|  |             VALUE "FileDescription", STR(MyDescription) | ||||||
|  |             VALUE "FileVersion", STR(MyVersion) | ||||||
|  |             VALUE "InternalName", "launcher.exe" | ||||||
|  |             VALUE "LegalCopyright", STR(MyCopyright) | ||||||
|  |             VALUE "OriginalFilename", "launcher.exe" | ||||||
|  |             VALUE "ProductName", STR(MyProductName) | ||||||
|  |             VALUE "ProductVersion", STR(MyVersion) | ||||||
|  |         END | ||||||
|  |     END | ||||||
|  |     BLOCK "VarFileInfo" | ||||||
|  |     BEGIN | ||||||
|  |         VALUE "Translation", 0x409, 1200 | ||||||
|  |     END | ||||||
|  | END | ||||||
		Reference in New Issue
	
	Block a user