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    <PropertyGroup Condition="exists('$(BuildPath)vcruntime140_1.dll')">
15        <DefineConstants>$(DefineConstants);Include_Vcruntime140_1_dll=1</DefineConstants>
16    </PropertyGroup>
17    <ItemGroup>
18        <Compile Include="exe.wxs" />
19        <Compile Include="exe_files.wxs" />
20        <Compile Include="exe_reg.wxs" />
21    </ItemGroup>
22    <ItemGroup>
23        <EmbeddedResource Include="*.wxl" />
24        <WxlTemplate Include="*.wxl_template" />
25    </ItemGroup>
26
27    <Target Name="_CopyMiscNews" AfterTargets="PrepareForBuild" Condition="Exists('$(PySourcePath)Misc\NEWS')">
28        <Copy SourceFiles="$(PySourcePath)Misc\NEWS" DestinationFiles="$(BuildPath)NEWS.txt" />
29    </Target>
30
31    <Target Name="_MergeMiscNewsWithBlurb" AfterTargets="PrepareForBuild" Condition="$(Blurb) != '' and !Exists('$(PySourcePath)Misc\NEWS')">
32        <Exec Command="$(Blurb) merge -f &quot;$(BuildPath)NEWS.txt&quot;" WorkingDirectory="$(PCbuild)" />
33    </Target>
34
35    <Target Name="_MergeMiscNewsWithPython" AfterTargets="PrepareForBuild" Condition="$(Blurb) == '' and !Exists('$(PySourcePath)Misc\NEWS')">
36        <ItemGroup>
37            <HostPython Include="$(ExternalsDir)python*\tools\python.exe" />
38            <HostPython Include="@(HostPython)" Condition="Exists(%(FullPath))" />
39            <HostPython Include="py" Condition="@(HostPython) == ''" />
40        </ItemGroup>
41        <PropertyGroup>
42            <HostPython>@(HostPython)</HostPython>
43            <HostPython Condition="$(HostPython.Contains(';'))">$(HostPython.Remove($(HostPython.IndexOf(';'))))</HostPython>
44        </PropertyGroup>
45        <Exec Command="&quot;$(HostPython)&quot; -m pip install -U blurb" WorkingDirectory="$(PCbuild)" />
46        <Exec Command="&quot;$(HostPython)&quot; -m blurb merge -f &quot;$(BuildPath)NEWS.txt&quot;" WorkingDirectory="$(PCbuild)" />
47    </Target>
48
49    <Import Project="..\msi.targets" />
50</Project>