blob: 2141117342191983a04fd9636277d40de866cf33 [file] [log] [blame]
Steve Dowerf70fdd22015-04-14 18:34:04 -04001<?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 Dower2446e2e2015-05-23 17:52:20 -07007 <SupportSigning>false</SupportSigning>
Steve Dowerf70fdd22015-04-14 18:34:04 -04008 </PropertyGroup>
9
10 <Import Project="msi.props" />
11
12 <PropertyGroup>
Steve Dower6b4c63d2015-05-02 15:32:14 -070013 <SignOutput>false</SignOutput>
Steve Dowerf70fdd22015-04-14 18:34:04 -040014 <TargetName>python-$(PythonVersion)-embed-$(ArchName)</TargetName>
Steve Dower6b4c63d2015-05-02 15:32:14 -070015 <TargetExt>.zip</TargetExt>
Steve Dower190dbd92016-12-03 11:18:53 -080016 <TargetPath>$(OutputPath)\$(TargetName)$(TargetExt)</TargetPath>
Steve Dower2495faf2015-09-22 15:03:54 -070017 <CleanCommand>rmdir /q/s "$(IntermediateOutputPath)\zip_$(ArchName)"</CleanCommand>
Steve Dowerf70fdd22015-04-14 18:34:04 -040018 <Arguments>"$(PythonExe)" "$(MSBuildThisFileDirectory)\make_zip.py"</Arguments>
Steve Dowerf0851912017-07-26 09:09:01 -070019 <Arguments>$(Arguments) -e -o "$(TargetPath)" -t "$(IntermediateOutputPath)\zip_$(ArchName)" -b "$(BuildPath.TrimEnd(`\`))"</Arguments>
Steve Dower32861232017-03-16 10:19:18 -070020 <Environment>set DOC_FILENAME=python$(PythonVersion).chm</Environment>
Steve Dowerf0851912017-07-26 09:09:01 -070021 <Environment>$(Environment)%0D%0Aset PYTHONPATH=$(PySourcePath)Lib</Environment>
Steve Dower32861232017-03-16 10:19:18 -070022 <Environment Condition="Exists($(CRTRedist))">$(Environment)%0D%0Aset VCREDIST_PATH=$(CRTRedist)\$(Platform)</Environment>
Steve Dowerf70fdd22015-04-14 18:34:04 -040023 </PropertyGroup>
24
25 <Target Name="_Build">
Steve Dower32861232017-03-16 10:19:18 -070026 <Exec Command="setlocal%0D%0A$(Environment)%0D%0A$(CleanCommand)%0D%0A$(Arguments)" />
Steve Dowerf70fdd22015-04-14 18:34:04 -040027 </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="&quot;$(PythonExe)&quot; generate_md5.py @(UserFiles->'&quot;%(FullPath)&quot;',' ')" />
38 </Target>
39</Project>