Fix typos
[TortoiseGit.git] / src / TortoiseGitSetup / WiXSetup.wixproj
blobcab54404361f5d51cedca8f7ec68f4c74601276a
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">\r
3         <PropertyGroup>\r
4                 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
5                 <Platform Condition=" '$(Platform)' == '' ">x86</Platform>\r
6                 <ProductVersion>3.0</ProductVersion>\r
7                 <ProjectGuid>{150172a5-8d02-4c00-abb5-bd99d4b16b4c}</ProjectGuid>\r
8                 <SchemaVersion>2.0</SchemaVersion>\r
9                 <OutputName>TortoiseGit</OutputName>\r
10                 <OutputType>Package</OutputType>\r
11                 <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>\r
12                 <CompilerAdditionalOptions>-ext WixUtilExtension</CompilerAdditionalOptions>\r
13                 <LinkerAdditionalOptions>-ext WixUtilExtension</LinkerAdditionalOptions>\r
14         </PropertyGroup>\r
15         <PropertyGroup>\r
16                 <DefineConstants>DictionaryENGB=1;DictionaryENUS=1</DefineConstants>\r
17                 <DefineConstants Condition="'$(Configuration)'=='Release' AND '$(Platform)'!='ARM64'">IncludeCrashReportDll=1;$(DefineConstants)</DefineConstants>\r
18                 <DefineConstants Condition="'$(Configuration)'=='Debug' OR '$(Platform)'=='ARM64'">Debug;IncludeCrashReportDll=0;$(DefineConstants)</DefineConstants>\r
19         </PropertyGroup>\r
20         <Import Project="$(VCTargetsPath)\Microsoft.Cpp.common.props" />\r
21         <Import Project="$(SolutionDir)TortoiseGit.settings.props" />\r
22         <PropertyGroup>\r
23                 <DefineConstants>BuildWindows11ContextmenuExtension=$(BuildWindows11ContextmenuExtension);$(DefineConstants)</DefineConstants>\r
24         </PropertyGroup>\r
25         <PropertyGroup>\r
26                 <!-- for shipping CRT/MFC library -->\r
27                 <DefineConstants>VCInstallDir=$(VCInstallDir);VCToolsRedistVersion=$(VCToolsRedistVersion);PlatformToolsetVersion=$(PlatformToolsetVersion);$(DefineConstants)</DefineConstants>\r
28         </PropertyGroup>\r
29         <Import Project="$(VCTargetsPath)\Microsoft.Cpp.WindowsSDK.props" />\r
30         <PropertyGroup>\r
31                 <!-- for signing the Windows 11 context menu extension -->\r
32                 <DefineConstants>WindowsSdkDir_10=$(WindowsSdkDir_10);$(DefineConstants)</DefineConstants>\r
33                 <Win10SDKVer Condition="'$(Win10SDKVer)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</Win10SDKVer>\r
34                 <Win10SDKVer Condition="'$(Win10SDKVer)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</Win10SDKVer>\r
35                 <DefineConstants Condition="'$(Win10SDKVer)' != ''">Win10SDKVer=$(Win10SDKVer).0;$(DefineConstants)</DefineConstants>\r
36         </PropertyGroup>\r
37         <PropertyGroup>\r
38                 <VCToolsRedistVersionCheck Condition="$(VCToolsRedistVersion.Substring(0, 5)) &gt;= 14.36">1436</VCToolsRedistVersionCheck>\r
39                 <VCToolsRedistVersionCheck Condition="$(VCToolsRedistVersion.Substring(0, 5)) &gt;= 14.38">1438</VCToolsRedistVersionCheck>\r
40                 <VCToolsRedistVersionCheck Condition="$(VCToolsRedistVersionCheck) == ''">0</VCToolsRedistVersionCheck>\r
41                 <DefineConstants>VCToolsRedistVersionCheck=$(VCToolsRedistVersionCheck);$(DefineConstants)</DefineConstants>\r
42         </PropertyGroup>\r
43         <PropertyGroup>\r
44                 <OutputPath Condition="'$(Configuration)'=='Release'">..\..\bin\setup\$(Platform)\</OutputPath>\r
45                 <OutputPath Condition="'$(Configuration)'=='Debug'">..\..\bin\setup\debug-$(Platform)\</OutputPath>\r
46                 <IntermediateOutputPath Condition="'$(Platform)'=='x86'">..\..\obj\TortoiseGitSetup\$(Configuration)\</IntermediateOutputPath>\r
47                 <IntermediateOutputPath Condition="'$(Platform)'=='x64'">..\..\obj\TortoiseGitSetup\$(Configuration)64\</IntermediateOutputPath>\r
48                 <IntermediateOutputPath Condition="'$(Platform)'=='ARM64'">..\..\obj\TortoiseGitSetup\$(Configuration)ARM64\</IntermediateOutputPath>\r
49         </PropertyGroup>\r
50         <Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />\r
51         <Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />\r
52         <PropertyGroup>\r
53                 <BuildDependsOn>\r
54                         CheckVCRedistVersion;\r
55                         $(BuildDependsOn);\r
56                 </BuildDependsOn>\r
57         </PropertyGroup>\r
58         <Target Name="CheckVCRedistVersion">\r
59                 <Warning Text="CRT/MFC RedistFiles: $(VCToolsRedistVersion) is newer than the last known version. Check '$(VCInstallDir)Redist\MSVC\$(VCToolsRedistVersion)\$(PackagePlatforms)' for new files and adjust 'VCToolsRedistVersionCheck'." Condition="$(VCToolsRedistVersion.Substring(0, 5)) &gt; 14.40" />\r
60         </Target>\r
61         <Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">\r
62                 <Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see https://wixtoolset.org/releases/" />\r
63         </Target>\r
64         <ItemGroup>\r
65                 <Compile Include="TortoiseGIT.wxs" />\r
66                 <Compile Include="WixUI_Simplest.wxs" />\r
67         </ItemGroup>\r
68         <ItemGroup>\r
69                 <Content Include="FeaturesFragment.wxi" />\r
70                 <Content Include="Includes.wxi" />\r
71                 <Content Include="StructureFragment.wxi" />\r
72                 <Content Include="TortoiseUDiff.wxi" />\r
73                 <Content Include="UIFragment.wxi" />\r
74                 <Content Include="VersionNumberInclude.wxi" />\r
75                 <Content Include="Win7LibraryAndExplorerToolbarActions.wxi" />\r
76                 <Content Include="ProtocolSupport.wxi" />\r
77         </ItemGroup>\r
78         <PropertyGroup>\r
79                 <PreBuildEvent Condition="'$(Platform)'=='x64' AND '$(BuildWindows11ContextmenuExtension)'=='1'">\r
80                         "$(WindowsSdkDir_10)bin\$(Win10SDKVer).0\x64\MakeAppX.exe" pack /o /d $(ProjectDir)SparsePackage -p ..\..\Release64\bin\package.msix /nv\r
81                         "$(WindowsSdkDir_10)bin\$(Win10SDKVer).0\x64\signtool.exe" sign /fd SHA256 /a /t "http://time.certum.pl/" /d "TortoiseGit" /du "https://tortoisegit.org/" /q ..\..\Release64\bin\package.msix\r
82                 </PreBuildEvent>\r
83                 <PreBuildEvent Condition="'$(Platform)'=='ARM64' AND '$(BuildWindows11ContextmenuExtension)'=='1'">\r
84                         "$(WindowsSdkDir_10)bin\$(Win10SDKVer).0\x64\MakeAppX.exe" pack /o /d $(ProjectDir)SparsePackageARM64 -p ..\..\ReleaseARM64\bin\package.msix /nv\r
85                         "$(WindowsSdkDir_10)bin\$(Win10SDKVer).0\x64\signtool.exe" sign /fd SHA256 /a /t "http://time.certum.pl/" /d "TortoiseGit" /du "https://tortoisegit.org/" /q ..\..\ReleaseARM64\bin\package.msix\r
86                 </PreBuildEvent>\r
87         </PropertyGroup>\r
88 </Project>\r