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)" "$(PySourcePath)PC\layout"</Arguments> 19 <Arguments>$(Arguments) -b "$(BuildPath.TrimEnd(`\`))" -s "$(PySourcePath.TrimEnd(`\`))"</Arguments> 20 <Arguments>$(Arguments) -t "$(IntermediateOutputPath)\zip_$(ArchName)"</Arguments> 21 <Arguments>$(Arguments) --zip "$(TargetPath)"</Arguments> 22 <Arguments>$(Arguments) --precompile --zip-lib --include-underpth --include-stable --flat-dlls</Arguments> 23 <Environment>$(Environment)%0D%0Aset PYTHONPATH=$(PySourcePath)Lib</Environment> 24 </PropertyGroup> 25 26 <Target Name="_Build"> 27 <Exec Command="setlocal%0D%0A$(Environment)%0D%0A$(CleanCommand)%0D%0A$(Arguments)" /> 28 </Target> 29 30 <Target Name="AfterBuild" /> 31 <Target Name="Build" DependsOnTargets="_Build;AfterBuild" /> 32 33 <Target Name="ShowHashes"> 34 <ItemGroup> 35 <UserFiles Include="@(File)" Condition="'%(File.CopyTo)' == '$(EXETarget)'" /> 36 </ItemGroup> 37 38 <Exec Command=""$(PythonExe)" generate_md5.py @(UserFiles->'"%(FullPath)"',' ')" /> 39 </Target> 40</Project> 41