Steve Dower | f70fdd2 | 2015-04-14 18:34:04 -0400 | [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>{10487945-15D1-4092-A214-338395C4116B}</ProjectGuid> |
| 5 | <OutputName>python</OutputName> |
| 6 | <OutputSuffix></OutputSuffix> |
Steve Dower | 2446e2e | 2015-05-23 17:52:20 -0700 | [diff] [blame] | 7 | <SupportSigning>false</SupportSigning> |
Steve Dower | f70fdd2 | 2015-04-14 18:34:04 -0400 | [diff] [blame] | 8 | </PropertyGroup> |
| 9 | |
| 10 | <Import Project="msi.props" /> |
| 11 | |
| 12 | <PropertyGroup> |
Steve Dower | 6b4c63d | 2015-05-02 15:32:14 -0700 | [diff] [blame] | 13 | <SignOutput>false</SignOutput> |
Steve Dower | f70fdd2 | 2015-04-14 18:34:04 -0400 | [diff] [blame] | 14 | <TargetName>python-$(PythonVersion)-embed-$(ArchName)</TargetName> |
Steve Dower | 6b4c63d | 2015-05-02 15:32:14 -0700 | [diff] [blame] | 15 | <TargetExt>.zip</TargetExt> |
Steve Dower | 190dbd9 | 2016-12-03 11:18:53 -0800 | [diff] [blame^] | 16 | <TargetPath>$(OutputPath)\$(TargetName)$(TargetExt)</TargetPath> |
Steve Dower | 2495faf | 2015-09-22 15:03:54 -0700 | [diff] [blame] | 17 | <CleanCommand>rmdir /q/s "$(IntermediateOutputPath)\zip_$(ArchName)"</CleanCommand> |
Steve Dower | f70fdd2 | 2015-04-14 18:34:04 -0400 | [diff] [blame] | 18 | <Arguments>"$(PythonExe)" "$(MSBuildThisFileDirectory)\make_zip.py"</Arguments> |
Steve Dower | 190dbd9 | 2016-12-03 11:18:53 -0800 | [diff] [blame^] | 19 | <Arguments>$(Arguments) -e -o "$(TargetPath)" -t "$(IntermediateOutputPath)\zip_$(ArchName)" -b "$(BuildPath.TrimEnd('\'))"</Arguments> |
Steve Dower | fcbe1df | 2015-09-08 21:39:01 -0700 | [diff] [blame] | 20 | <Environment>set DOC_FILENAME=python$(PythonVersion).chm |
| 21 | set VCREDIST_PATH=$(VS140COMNTOOLS)\..\..\VC\redist\$(Platform)\Microsoft.VC140.CRT</Environment> |
Steve Dower | f70fdd2 | 2015-04-14 18:34:04 -0400 | [diff] [blame] | 22 | </PropertyGroup> |
| 23 | |
| 24 | <Target Name="_Build"> |
| 25 | <Exec Command="setlocal |
| 26 | $(Environment) |
Steve Dower | 2495faf | 2015-09-22 15:03:54 -0700 | [diff] [blame] | 27 | $(CleanCommand) |
Steve Dower | f70fdd2 | 2015-04-14 18:34:04 -0400 | [diff] [blame] | 28 | $(Arguments)" /> |
| 29 | </Target> |
| 30 | |
| 31 | <Target Name="AfterBuild" /> |
| 32 | <Target Name="Build" DependsOnTargets="_Build;AfterBuild" /> |
| 33 | |
| 34 | <Target Name="ShowHashes"> |
| 35 | <ItemGroup> |
| 36 | <UserFiles Include="@(File)" Condition="'%(File.CopyTo)' == '$(EXETarget)'" /> |
| 37 | </ItemGroup> |
| 38 | |
| 39 | <Exec Command=""$(PythonExe)" generate_md5.py @(UserFiles->'"%(FullPath)"',' ')" /> |
| 40 | </Target> |
| 41 | </Project> |