blob: 7697af726bde21a5d25d6f01d314ef0288aa4821 [file] [log] [blame]
Steve Dowerbb240872015-02-05 22:08:48 -08001<?xml version="1.0" encoding="utf-8"?>
Steve Dower3468a062015-02-06 09:59:05 -08002<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty="DownloadUrl">
Steve Dowerbb240872015-02-05 22:08:48 -08003 <PropertyGroup>
4 <SchemaVersion>2.0</SchemaVersion>
5 <OutputType>Bundle</OutputType>
6
7 <BootstrapConfiguration Condition="'$(BootstrapConfiguration)' == ''">Release</BootstrapConfiguration>
8 <LinkerSuppressSpecificWarnings>1132;1135;1140</LinkerSuppressSpecificWarnings>
9 <OutputName Condition="$(BuildForRelease)">$(OutputName)-$(PythonVersion)</OutputName>
10 <OutputName Condition="!$(BuildForRelease)">$(OutputName)-$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber).$(RevisionNumber)</OutputName>
11 <OutputName Condition="$(Platform) == 'x64'">$(OutputName)-amd64</OutputName>
12 <OutputName Condition="'$(OutputSuffix)' != ''">$(OutputName)-$(OutputSuffix)</OutputName>
13
14 <OutputPath>$(OutputPath)en-us\</OutputPath>
15 <OutDir>$(OutputPath)</OutDir>
16
Steve Dower312cef02015-02-07 22:20:48 -080017 <DownloadUrl Condition="'$(DownloadUrl)' == '' and '$(DownloadUrlBase)' != ''">$(DownloadUrlBase.TrimEnd(`/`))/$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)/$(ArchName)$(ReleaseLevelName)/</DownloadUrl>
18 <DefineConstants Condition="'$(DownloadUrl)' != ''">$(DefineConstants);DownloadUrl=$(DownloadUrl){2}</DefineConstants>
Steve Dowerbb240872015-02-05 22:08:48 -080019 <DefineConstants Condition="'$(DownloadUrl)' == ''">$(DefineConstants);DownloadUrl={2}</DefineConstants>
20 </PropertyGroup>
21
22 <ItemGroup>
23 <WixExtension Include="WixUtilExtension">
24 <HintPath>WixUtilExtension</HintPath>
25 <Name>WixUtilExtension</Name>
26 </WixExtension>
27 <WixExtension Include="WixDependencyExtension">
28 <HintPath>WixDependencyExtension</HintPath>
29 <Name>WixDependencyExtension</Name>
30 </WixExtension>
31 <WixExtension Include="WixBalExtension">
32 <HintPath>WixBalExtension</HintPath>
33 <Name>WixBalExtension</Name>
34 </WixExtension>
35 </ItemGroup>
36 <ItemGroup>
37 <Compile Include="bundle.wxs" />
38 <Compile Include="packagegroups\*.wxs" />
39 </ItemGroup>
40 <ItemGroup>
41 <Content Include="Default.thm" />
42 <Content Include="Default.wxl" />
43 <Content Include="SideBar.png" />
44 </ItemGroup>
45 <ItemGroup>
46 <WxlTemplate Include="*_en-US.wxl_template" />
47 </ItemGroup>
48 <ItemGroup>
49 <LinkerBindInputPaths Include="$(OutputPath)">
50 <BindName></BindName>
51 </LinkerBindInputPaths>
52 </ItemGroup>
53
54 <ItemDefinitionGroup>
55 <Package>
56 <Properties>BuildForRelease=$(BuildForRelease)</Properties>
57 </Package>
58 </ItemDefinitionGroup>
59 <ItemGroup>
60 <Package Include="..\core\core*.wixproj" />
61 <Package Include="..\crt\crt*.wixproj" />
62 <Package Include="..\dev\dev*.wixproj" />
63 <Package Include="..\doc\doc*.wixproj" />
64 <Package Include="..\exe\exe*.wixproj" />
65 <Package Include="..\lib\lib*.wixproj" />
66 <Package Include="..\path\path*.wixproj" />
67 <Package Include="..\pip\pip*.wixproj" />
68 <Package Include="..\tcltk\tcltk*.wixproj" />
69 <Package Include="..\test\test*.wixproj" />
70 <Package Include="..\tools\tools*.wixproj" />
71 </ItemGroup>
72
73 <Target Name="BuildPackages" BeforeTargets="BeforeBuild" Condition="'$(RebuildAll)' != 'false'">
74 <MSBuild Projects="@(Package)" BuildInParallel="true" />
75 </Target>
76
77 <Target Name="BuildLauncher" BeforeTargets="BeforeBuild" Condition="'$(RebuildAll)' != 'false'">
78 <!-- Build the launcher MSI using Exec rather than MSBuild -->
79 <Exec Command='msbuild ..\launcher\launcher.wixproj /p:Platform=x86 /p:OutputPath="$(BuildPath.TrimEnd(`\`))" /p:OutputSuffix=$(Platform) /p:BuildForRelease=$(BuildForRelease)'
80 ContinueOnError="false" />
81 </Target>
82
83 <Target Name="BuildBootstrapApplication" BeforeTargets="BeforeBuild">
84 <Message Text="Building bootstrap app" Importance="high" />
85
86 <MSBuild Projects="bootstrap\pythonba.vcxproj"
87 Targets="Build;GetNativeTargetPath"
88 UseResultsCache="true"
89 Properties="Configuration=$(BootstrapConfiguration);Platform=Win32">
90 <Output TaskParameter="TargetOutputs" PropertyName="BootstrapAppPath" />
91 </MSBuild>
92
93 <PropertyGroup>
94 <DefineConstants>$(DefineConstants);BootstrapApp=$(BootstrapAppPath)</DefineConstants>
95 </PropertyGroup>
96 </Target>
97
98 <Import Project="..\msi.targets" />
99</Project>