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 | f085191 | 2017-07-26 09:09:01 -0700 | [diff] [blame] | 19 | <Arguments>$(Arguments) -e -o "$(TargetPath)" -t "$(IntermediateOutputPath)\zip_$(ArchName)" -b "$(BuildPath.TrimEnd(`\`))"</Arguments> |
Steve Dower | 3286123 | 2017-03-16 10:19:18 -0700 | [diff] [blame] | 20 | <Environment>set DOC_FILENAME=python$(PythonVersion).chm</Environment> |
Steve Dower | f085191 | 2017-07-26 09:09:01 -0700 | [diff] [blame] | 21 | <Environment>$(Environment)%0D%0Aset PYTHONPATH=$(PySourcePath)Lib</Environment> |
Steve Dower | 3286123 | 2017-03-16 10:19:18 -0700 | [diff] [blame] | 22 | <Environment Condition="Exists($(CRTRedist))">$(Environment)%0D%0Aset VCREDIST_PATH=$(CRTRedist)\$(Platform)</Environment> |
Steve Dower | f70fdd2 | 2015-04-14 18:34:04 -0400 | [diff] [blame] | 23 | </PropertyGroup> |
| 24 | |
| 25 | <Target Name="_Build"> |
Steve Dower | 3286123 | 2017-03-16 10:19:18 -0700 | [diff] [blame] | 26 | <Exec Command="setlocal%0D%0A$(Environment)%0D%0A$(CleanCommand)%0D%0A$(Arguments)" /> |
Steve Dower | f70fdd2 | 2015-04-14 18:34:04 -0400 | [diff] [blame] | 27 | </Target> |
| 28 | |
| 29 | <Target Name="AfterBuild" /> |
| 30 | <Target Name="Build" DependsOnTargets="_Build;AfterBuild" /> |
| 31 | |
| 32 | <Target Name="ShowHashes"> |
| 33 | <ItemGroup> |
| 34 | <UserFiles Include="@(File)" Condition="'%(File.CopyTo)' == '$(EXETarget)'" /> |
| 35 | </ItemGroup> |
| 36 | |
| 37 | <Exec Command=""$(PythonExe)" generate_md5.py @(UserFiles->'"%(FullPath)"',' ')" /> |
| 38 | </Target> |
| 39 | </Project> |