| 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 "$(BuildPath)NEWS.txt"" WorkingDirectory="$(PCbuild)" /> |
| 33 |
</Target> |
| 34 |
|
| 35 |
<Target Name="_MergeMiscNewsWithPython" AfterTargets="PrepareForBuild" Condition="$(Blurb) == '' and !Exists('$(PySourcePath)Misc\NEWS')" DependsOnTargets="FindPythonForBuild"> |
| 36 |
<Exec Command="$(PythonForBuild) -m pip install -U blurb" WorkingDirectory="$(PCbuild)" /> |
| 37 |
<Exec Command="$(PythonForBuild) -m blurb merge -f "$(BuildPath)NEWS.txt"" WorkingDirectory="$(PCbuild)" /> |
| 38 |
</Target> |
| 39 |
|
| 40 |
<Import Project="..\msi.targets" /> |
| 41 |
</Project> |