Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 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> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 8 | </PropertyGroup> |
Steve Dower | cc115ee | 2015-02-14 10:30:54 -0800 | [diff] [blame] | 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" /> |
Steve Dower | 0533826 | 2016-07-24 18:04:29 -0700 | [diff] [blame] | 17 | <Compile Include="exe_reg.wxs" /> |
Steve Dower | cc115ee | 2015-02-14 10:30:54 -0800 | [diff] [blame] | 18 | </ItemGroup> |
| 19 | <ItemGroup> |
| 20 | <EmbeddedResource Include="*.wxl" /> |
| 21 | <WxlTemplate Include="*.wxl_template" /> |
| 22 | </ItemGroup> |
| 23 | |
| 24 | <Target Name="_GenerateLicense" AfterTargets="PrepareForBuild"> |
| 25 | <ItemGroup> |
| 26 | <LicenseFiles Include="$(PySourcePath)LICENSE; |
| 27 | crtlicense.txt; |
| 28 | $(bz2Dir)LICENSE; |
Steve Dower | 68d663c | 2017-07-17 11:15:48 +0200 | [diff] [blame] | 29 | $(opensslOutDir)LICENSE; |
| 30 | $(tcltkDir)tcllicense.terms; |
| 31 | $(tcltkDir)tklicense.terms; |
| 32 | $(tcltkDir)tixlicense.terms" /> |
Steve Dower | cc115ee | 2015-02-14 10:30:54 -0800 | [diff] [blame] | 33 | <_LicenseFiles Include="@(LicenseFiles)"> |
| 34 | <Content>$([System.IO.File]::ReadAllText(%(FullPath)))</Content> |
| 35 | </_LicenseFiles> |
| 36 | </ItemGroup> |
| 37 | |
| 38 | <WriteLinesToFile File="$(BuildPath)LICENSE" |
| 39 | Overwrite="true" |
| 40 | Lines="@(_LicenseFiles->'%(Content)')" /> |
| 41 | </Target> |
Steve Dower | 5fcd5e6 | 2017-09-06 10:01:38 -0700 | [diff] [blame] | 42 | |
| 43 | <Target Name="_CopyMiscNews" AfterTargets="PrepareForBuild" Condition="Exists('$(PySourcePath)Misc\NEWS')"> |
| 44 | <Copy SourceFiles="$(PySourcePath)Misc\NEWS" DestinationFiles="$(BuildPath)NEWS.txt" /> |
| 45 | </Target> |
| 46 | |
| 47 | <Target Name="_MergeMiscNewsWithBlurb" AfterTargets="PrepareForBuild" Condition="$(Blurb) != '' and !Exists('$(PySourcePath)Misc\NEWS')"> |
Stefan Grönke | f1502d0 | 2017-09-25 18:58:10 +0200 | [diff] [blame] | 48 | <Exec Command="$(Blurb) merge -f "$(BuildPath)NEWS.txt"" WorkingDirectory="$(PCbuild)" /> |
Steve Dower | 5fcd5e6 | 2017-09-06 10:01:38 -0700 | [diff] [blame] | 49 | </Target> |
| 50 | |
| 51 | <Target Name="_MergeMiscNewsWithPython" AfterTargets="PrepareForBuild" Condition="$(Blurb) == '' and !Exists('$(PySourcePath)Misc\NEWS')"> |
| 52 | <ItemGroup> |
| 53 | <HostPython Include="$(ExternalsDir)python*\tools\python.exe" /> |
| 54 | <HostPython Include="@(HostPython)" Condition="Exists(%(FullPath))" /> |
| 55 | <HostPython Include="py" Condition="@(HostPython) == ''" /> |
| 56 | </ItemGroup> |
| 57 | <PropertyGroup> |
| 58 | <HostPython>@(HostPython)</HostPython> |
| 59 | <HostPython Condition="$(HostPython.Contains(';'))">$(HostPython.Remove($(HostPython.IndexOf(';'))))</HostPython> |
| 60 | </PropertyGroup> |
Stefan Grönke | f1502d0 | 2017-09-25 18:58:10 +0200 | [diff] [blame] | 61 | <Exec Command=""$(HostPython)" -m pip install -U blurb" WorkingDirectory="$(PCbuild)" /> |
| 62 | <Exec Command=""$(HostPython)" -m blurb merge -f "$(BuildPath)NEWS.txt"" WorkingDirectory="$(PCbuild)" /> |
Steve Dower | 5fcd5e6 | 2017-09-06 10:01:38 -0700 | [diff] [blame] | 63 | </Target> |
| 64 | |
Steve Dower | cc115ee | 2015-02-14 10:30:54 -0800 | [diff] [blame] | 65 | <Import Project="..\msi.targets" /> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 66 | </Project> |