blob: cc7e44502387119ea0e7a02737a6b35eb8de7ef0 [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>
Steve Dowere4969f52015-02-28 19:53:50 -080013 <OutputName Condition="'$(Configuration)' == 'Debug'">$(OutputName)-d</OutputName>
14 <TargetName>$(OutputName)</TargetName>
Steve Dowerbb240872015-02-05 22:08:48 -080015
16 <OutputPath>$(OutputPath)en-us\</OutputPath>
17 <OutDir>$(OutputPath)</OutDir>
18
Steve Dower312cef02015-02-07 22:20:48 -080019 <DownloadUrl Condition="'$(DownloadUrl)' == '' and '$(DownloadUrlBase)' != ''">$(DownloadUrlBase.TrimEnd(`/`))/$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)/$(ArchName)$(ReleaseLevelName)/</DownloadUrl>
20 <DefineConstants Condition="'$(DownloadUrl)' != ''">$(DefineConstants);DownloadUrl=$(DownloadUrl){2}</DefineConstants>
Steve Dowerbb240872015-02-05 22:08:48 -080021 <DefineConstants Condition="'$(DownloadUrl)' == ''">$(DefineConstants);DownloadUrl={2}</DefineConstants>
22 </PropertyGroup>
23
24 <ItemGroup>
25 <WixExtension Include="WixUtilExtension">
26 <HintPath>WixUtilExtension</HintPath>
27 <Name>WixUtilExtension</Name>
28 </WixExtension>
29 <WixExtension Include="WixDependencyExtension">
30 <HintPath>WixDependencyExtension</HintPath>
31 <Name>WixDependencyExtension</Name>
32 </WixExtension>
33 <WixExtension Include="WixBalExtension">
34 <HintPath>WixBalExtension</HintPath>
35 <Name>WixBalExtension</Name>
36 </WixExtension>
37 </ItemGroup>
38 <ItemGroup>
39 <Compile Include="bundle.wxs" />
40 <Compile Include="packagegroups\*.wxs" />
41 </ItemGroup>
42 <ItemGroup>
43 <Content Include="Default.thm" />
44 <Content Include="Default.wxl" />
45 <Content Include="SideBar.png" />
46 </ItemGroup>
47 <ItemGroup>
Steve Dowere4969f52015-02-28 19:53:50 -080048 <EmbeddedResource Include="bundle.wxl" />
Steve Dowerbb240872015-02-05 22:08:48 -080049 <WxlTemplate Include="*_en-US.wxl_template" />
50 </ItemGroup>
51 <ItemGroup>
52 <LinkerBindInputPaths Include="$(OutputPath)">
53 <BindName></BindName>
54 </LinkerBindInputPaths>
55 </ItemGroup>
56
57 <ItemDefinitionGroup>
58 <Package>
59 <Properties>BuildForRelease=$(BuildForRelease)</Properties>
60 </Package>
61 </ItemDefinitionGroup>
62 <ItemGroup>
63 <Package Include="..\core\core*.wixproj" />
64 <Package Include="..\crt\crt*.wixproj" />
65 <Package Include="..\dev\dev*.wixproj" />
66 <Package Include="..\doc\doc*.wixproj" />
67 <Package Include="..\exe\exe*.wixproj" />
68 <Package Include="..\lib\lib*.wixproj" />
69 <Package Include="..\path\path*.wixproj" />
70 <Package Include="..\pip\pip*.wixproj" />
71 <Package Include="..\tcltk\tcltk*.wixproj" />
72 <Package Include="..\test\test*.wixproj" />
73 <Package Include="..\tools\tools*.wixproj" />
74 </ItemGroup>
75
76 <Target Name="BuildPackages" BeforeTargets="BeforeBuild" Condition="'$(RebuildAll)' != 'false'">
77 <MSBuild Projects="@(Package)" BuildInParallel="true" />
78 </Target>
79
80 <Target Name="BuildLauncher" BeforeTargets="BeforeBuild" Condition="'$(RebuildAll)' != 'false'">
81 <!-- Build the launcher MSI using Exec rather than MSBuild -->
82 <Exec Command='msbuild ..\launcher\launcher.wixproj /p:Platform=x86 /p:OutputPath="$(BuildPath.TrimEnd(`\`))" /p:OutputSuffix=$(Platform) /p:BuildForRelease=$(BuildForRelease)'
83 ContinueOnError="false" />
84 </Target>
85
86 <Target Name="BuildBootstrapApplication" BeforeTargets="BeforeBuild">
87 <Message Text="Building bootstrap app" Importance="high" />
88
89 <MSBuild Projects="bootstrap\pythonba.vcxproj"
90 Targets="Build;GetNativeTargetPath"
91 UseResultsCache="true"
92 Properties="Configuration=$(BootstrapConfiguration);Platform=Win32">
93 <Output TaskParameter="TargetOutputs" PropertyName="BootstrapAppPath" />
94 </MSBuild>
95
96 <PropertyGroup>
97 <DefineConstants>$(DefineConstants);BootstrapApp=$(BootstrapAppPath)</DefineConstants>
98 </PropertyGroup>
99 </Target>
100
101 <Import Project="..\msi.targets" />
102</Project>