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> 7 <SupportSigning>false</SupportSigning> 8 </PropertyGroup> 9 10 <Import Project="msi.props" /> 11 12 <PropertyGroup> 13 <SignOutput>false</SignOutput> 14 <TargetName>python-$(PythonVersion)-embed-$(ArchName)</TargetName> 15 <TargetExt>.zip</TargetExt> 16 <TargetPath>$(OutputPath)\$(TargetName)$(TargetExt)</TargetPath> 17 <CleanCommand>rmdir /q/s "$(IntermediateOutputPath)\zip_$(ArchName)"</CleanCommand> 18 <Arguments>"$(PythonExe)" "$(MSBuildThisFileDirectory)\make_zip.py"</Arguments> 19 <Arguments>$(Arguments) -e -o "$(TargetPath)" -t "$(IntermediateOutputPath)\zip_$(ArchName)" -a $(ArchName)</Arguments> 20 <Environment>set DOC_FILENAME=python$(PythonVersion).chm</Environment> 21 <Environment Condition="Exists($(CRTRedist))">$(Environment)%0D%0Aset VCREDIST_PATH=$(CRTRedist)\$(Platform)</Environment> 22 </PropertyGroup> 23 24 <Target Name="_Build"> 25 <Exec Command="setlocal%0D%0A$(Environment)%0D%0A$(CleanCommand)%0D%0A$(Arguments)" /> 26 </Target> 27 28 <Target Name="AfterBuild" /> 29 <Target Name="Build" DependsOnTargets="_Build;AfterBuild" /> 30 31 <Target Name="ShowHashes"> 32 <ItemGroup> 33 <UserFiles Include="@(File)" Condition="'%(File.CopyTo)' == '$(EXETarget)'" /> 34 </ItemGroup> 35 36 <Exec Command=""$(PythonExe)" generate_md5.py @(UserFiles->'"%(FullPath)"',' ')" /> 37 </Target> 38</Project> 39