1<?xml version="1.0" encoding="utf-8"?> 2<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 <PropertyGroup> 4 <ProjectGuid>{6BD53305-B03E-49DC-85FB-5551B8CCC843}</ProjectGuid> 5 <SchemaVersion>2.0</SchemaVersion> 6 <OutputName>exe</OutputName> 7 <OutputType>Package</OutputType> 8 </PropertyGroup> 9 <PropertyGroup> 10 <!-- Shortcut validation is not necessary --> 11 <SuppressICEs>ICE43</SuppressICEs> 12 </PropertyGroup> 13 <Import Project="..\msi.props" /> 14 <ItemGroup> 15 <Compile Include="exe.wxs" /> 16 <Compile Include="exe_files.wxs" /> 17 <Compile Include="exe_reg.wxs" /> 18 </ItemGroup> 19 <ItemGroup> 20 <EmbeddedResource Include="*.wxl" /> 21 <WxlTemplate Include="*.wxl_template" /> 22 </ItemGroup> 23 24 <Target Name="_CopyMiscNews" AfterTargets="PrepareForBuild" Condition="Exists('$(PySourcePath)Misc\NEWS')"> 25 <Copy SourceFiles="$(PySourcePath)Misc\NEWS" DestinationFiles="$(BuildPath)NEWS.txt" /> 26 </Target> 27 28 <Target Name="_MergeMiscNewsWithBlurb" AfterTargets="PrepareForBuild" Condition="$(Blurb) != '' and !Exists('$(PySourcePath)Misc\NEWS')"> 29 <Exec Command="$(Blurb) merge -f "$(BuildPath)NEWS.txt"" WorkingDirectory="$(PCbuild)" /> 30 </Target> 31 32 <Target Name="_MergeMiscNewsWithPython" AfterTargets="PrepareForBuild" Condition="$(Blurb) == '' and !Exists('$(PySourcePath)Misc\NEWS')"> 33 <ItemGroup> 34 <HostPython Include="$(ExternalsDir)python*\tools\python.exe" /> 35 <HostPython Include="@(HostPython)" Condition="Exists(%(FullPath))" /> 36 <HostPython Include="py" Condition="@(HostPython) == ''" /> 37 </ItemGroup> 38 <PropertyGroup> 39 <HostPython>@(HostPython)</HostPython> 40 <HostPython Condition="$(HostPython.Contains(';'))">$(HostPython.Remove($(HostPython.IndexOf(';'))))</HostPython> 41 </PropertyGroup> 42 <Exec Command=""$(HostPython)" -m pip install -U blurb" WorkingDirectory="$(PCbuild)" /> 43 <Exec Command=""$(HostPython)" -m blurb merge -f "$(BuildPath)NEWS.txt"" WorkingDirectory="$(PCbuild)" /> 44 </Target> 45 46 <Import Project="..\msi.targets" /> 47</Project>