| 
									
										
										
										
											2016-06-24 10:32:15 -07:00
										 |  |  | <?xml version="1.0" encoding="utf-8"?> | 
					
						
							|  |  |  | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 
					
						
							|  |  |  |     <PropertyGroup> | 
					
						
							|  |  |  |         <ProjectGuid>{10487945-15D1-4092-A214-338395C4116B}</ProjectGuid> | 
					
						
							|  |  |  |         <OutputName>python</OutputName> | 
					
						
							|  |  |  |         <OutputName Condition="$(Platform) == 'x86'">$(OutputName)x86</OutputName> | 
					
						
							| 
									
										
										
										
											2019-04-12 09:36:38 -07:00
										 |  |  |         <OutputName Condition="$(Platform) == 'ARM'">$(OutputName)arm32</OutputName> | 
					
						
							| 
									
										
										
										
											2017-07-26 09:09:01 -07:00
										 |  |  |         <OutputName Condition="$(BuildForDaily) == 'true'">$(OutputName)daily</OutputName> | 
					
						
							| 
									
										
										
										
											2016-06-24 10:32:15 -07:00
										 |  |  |         <OutputSuffix></OutputSuffix> | 
					
						
							|  |  |  |         <SupportSigning>false</SupportSigning> | 
					
						
							| 
									
										
										
										
											2016-06-25 16:13:30 -07:00
										 |  |  |         <BuildForRelease Condition="$(BuildForRelease) == ''">true</BuildForRelease> | 
					
						
							| 
									
										
										
										
											2016-06-24 10:32:15 -07:00
										 |  |  |     </PropertyGroup> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <Import Project="..\msi\msi.props" /> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <PropertyGroup> | 
					
						
							|  |  |  |         <Nuget Condition="$(Nuget) == ''">$(ExternalsDir)\windows-installer\nuget\nuget.exe</Nuget> | 
					
						
							|  |  |  |         <NuspecVersion>$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)</NuspecVersion> | 
					
						
							| 
									
										
										
										
											2016-09-12 13:29:58 -07:00
										 |  |  |         <NuspecVersion Condition="$(ReleaseLevelName) != ''">$(NuspecVersion)-$(ReleaseLevelName)</NuspecVersion> | 
					
						
							| 
									
										
										
										
											2017-07-26 09:09:01 -07:00
										 |  |  |         <NuspecVersion Condition="$(BuildForDaily) == 'true'">$(MajorVersionNumber).$(MinorVersionNumber).$(DailyBuildVersion)</NuspecVersion> | 
					
						
							| 
									
										
										
										
											2016-06-24 10:32:15 -07:00
										 |  |  |         <SignOutput>false</SignOutput> | 
					
						
							|  |  |  |         <TargetName>$(OutputName).$(NuspecVersion)</TargetName> | 
					
						
							|  |  |  |         <TargetExt>.nupkg</TargetExt> | 
					
						
							| 
									
										
										
										
											2018-12-10 18:52:57 -08:00
										 |  |  |         <IntermediateOutputPath>$(IntermediateOutputPath)\nuget_$(ArchName)\</IntermediateOutputPath> | 
					
						
							| 
									
										
										
										
											2016-06-24 10:32:15 -07:00
										 |  |  |          | 
					
						
							| 
									
										
										
										
											2018-12-10 18:52:57 -08:00
										 |  |  |         <CleanCommand>rmdir /q/s "$(IntermediateOutputPath.TrimEnd(`\`))"</CleanCommand> | 
					
						
							| 
									
										
										
										
											2016-06-24 10:32:15 -07:00
										 |  |  |          | 
					
						
							| 
									
										
										
										
											2018-12-10 18:52:57 -08:00
										 |  |  |         <PythonArguments>"$(PythonExe)" "$(PySourcePath)PC\layout"</PythonArguments> | 
					
						
							|  |  |  |         <PythonArguments>$(PythonArguments) -b "$(BuildPath.TrimEnd(`\`))" -s "$(PySourcePath.TrimEnd(`\`))"</PythonArguments> | 
					
						
							|  |  |  |         <PythonArguments>$(PythonArguments) -t "$(IntermediateOutputPath)obj"</PythonArguments> | 
					
						
							|  |  |  |         <PythonArguments>$(PythonArguments) --copy "$(IntermediateOutputPath)pkg"</PythonArguments> | 
					
						
							| 
									
										
										
										
											2019-03-30 16:32:05 +00:00
										 |  |  |         <PythonArguments>$(PythonArguments) --preset-nuget</PythonArguments> | 
					
						
							| 
									
										
										
										
											2016-06-24 10:32:15 -07:00
										 |  |  |          | 
					
						
							| 
									
										
										
										
											2018-12-10 18:52:57 -08:00
										 |  |  |         <PackageArguments Condition="$(Packages) != ''">"$(IntermediateOutputPath)pkg\pip.exe" -B -m pip install -U $(Packages)</PackageArguments> | 
					
						
							| 
									
										
										
										
											2016-06-24 11:37:50 -07:00
										 |  |  |          | 
					
						
							| 
									
										
										
										
											2020-02-29 00:21:46 +00:00
										 |  |  |         <NugetPackCommand>"$(Nuget)" pack "$(IntermediateOutputPath)pkg\python.nuspec" -BasePath "$(IntermediateOutputPath)pkg"</NugetPackCommand> | 
					
						
							| 
									
										
										
										
											2017-08-17 10:24:18 -07:00
										 |  |  |         <NugetPackSymbolsCommand Condition="Exists('$(MSBuildThisFileDirectory)\$(OutputName).symbols.nuspec')">"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).symbols.nuspec" -BasePath "$(BuildPath.TrimEnd(`\`))"</NugetPackSymbolsCommand> | 
					
						
							| 
									
										
										
										
											2016-06-27 09:34:18 -07:00
										 |  |  |         <NugetArguments>$(NugetArguments) -OutputDirectory "$(OutputPath.Trim(`\`))"</NugetArguments> | 
					
						
							| 
									
										
										
										
											2016-06-24 10:32:15 -07:00
										 |  |  |         <NugetArguments>$(NugetArguments) -Version "$(NuspecVersion)"</NugetArguments> | 
					
						
							|  |  |  |         <NugetArguments>$(NugetArguments) -NoPackageAnalysis -NonInteractive</NugetArguments> | 
					
						
							|  |  |  |          | 
					
						
							| 
									
										
										
										
											2017-07-26 09:09:01 -07:00
										 |  |  |         <Environment>$(Environment)%0D%0Aset PYTHONPATH=$(PySourcePath)Lib</Environment> | 
					
						
							| 
									
										
										
										
											2018-12-10 18:52:57 -08:00
										 |  |  |         <Environment>$(Environment)%0D%0Aset PYTHON_NUSPEC_VERSION=$(NuspecVersion)</Environment> | 
					
						
							|  |  |  |         <Environment Condition="$(Platform) != 'x86'">$(Environment)%0D%0Aset PYTHON_PROPS_PLATFORM=$(Platform)</Environment> | 
					
						
							|  |  |  |         <Environment Condition="$(Platform) == 'x86'">$(Environment)%0D%0Aset PYTHON_PROPS_PLATFORM=Win32</Environment> | 
					
						
							| 
									
										
										
										
											2017-07-26 09:09:01 -07:00
										 |  |  |         <Environment>$(Environment)%0D%0Amkdir "$(OutputPath.Trim(`\`))" >nul 2>nul</Environment> | 
					
						
							| 
									
										
										
										
											2016-06-24 10:32:15 -07:00
										 |  |  |     </PropertyGroup> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <Target Name="_NugetMissing" BeforeTargets="_Build" Condition="!Exists($(Nuget))"> | 
					
						
							|  |  |  |         <Error Text="$(Nuget) could not be found. Either avoid specifying the property or update your externals/windows-installer files." /> | 
					
						
							|  |  |  |     </Target> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <Target Name="_Build"> | 
					
						
							| 
									
										
										
										
											2016-06-24 11:37:50 -07:00
										 |  |  |         <Exec Command="$(CleanCommand)" /> | 
					
						
							| 
									
										
										
										
											2018-12-10 18:52:57 -08:00
										 |  |  |         <Exec Command="setlocal%0D%0A$(Environment)%0D%0A$(PythonArguments)%0D%0A$(PackageArguments)" /> | 
					
						
							| 
									
										
										
										
											2017-09-06 19:29:10 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-17 10:24:18 -07:00
										 |  |  |         <Exec Command="$(NugetPackCommand) $(NugetArguments)" /> | 
					
						
							|  |  |  |         <Exec Command="$(NugetPackSymbolsCommand) $(NugetArguments)" Condition="$(NugetPackSymbolsCommand) != ''" /> | 
					
						
							| 
									
										
										
										
											2016-06-24 10:32:15 -07:00
										 |  |  |     </Target> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <Target Name="AfterBuild" /> | 
					
						
							|  |  |  |     <Target Name="Build" DependsOnTargets="_Build;AfterBuild" /> | 
					
						
							|  |  |  | </Project> |