| 
									
										
										
										
											2019-06-14 08:29:20 -07:00
										 |  |  | <?xml version="1.0" encoding="utf-8"?> | 
					
						
							|  |  |  | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty="Py_IntDir"> | 
					
						
							|  |  |  |   <Import Project="python.props" Condition="$(__Python_Props_Imported) != 'true'" /> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |   <PropertyGroup Label="Globals"> | 
					
						
							| 
									
										
										
										
											2019-06-14 08:29:20 -07:00
										 |  |  |     <__PyProject_Props_Imported>true</__PyProject_Props_Imported> | 
					
						
							| 
									
										
										
										
											2012-06-24 19:04:35 +02:00
										 |  |  |     <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |     <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> | 
					
						
							|  |  |  |     <OutDir>$(BuildPath)</OutDir> | 
					
						
							| 
									
										
										
										
											2015-07-27 14:56:58 -07:00
										 |  |  |     <OutDir Condition="!HasTrailingSlash($(OutDir))">$(OutDir)\</OutDir> | 
					
						
							| 
									
										
										
										
											2016-07-24 18:03:22 -07:00
										 |  |  |     <Py_IntDir Condition="'$(Py_IntDir)' == ''">$(MSBuildThisFileDirectory)obj\</Py_IntDir> | 
					
						
							| 
									
										
										
										
											2017-10-05 13:35:36 -07:00
										 |  |  |     <IntDir>$(Py_IntDir)\$(MajorVersionNumber)$(MinorVersionNumber)$(ArchName)_$(Configuration)\$(ProjectName)\</IntDir> | 
					
						
							| 
									
										
										
										
											2017-11-04 16:28:47 -07:00
										 |  |  |     <IntDir>$(IntDir.Replace(`\\`, `\`))</IntDir> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |     <TargetName Condition="'$(TargetName)' == ''">$(ProjectName)</TargetName> | 
					
						
							|  |  |  |     <TargetName>$(TargetName)$(PyDebugExt)</TargetName> | 
					
						
							|  |  |  |     <GenerateManifest>false</GenerateManifest> | 
					
						
							|  |  |  |     <EmbedManifest>false</EmbedManifest> | 
					
						
							|  |  |  |     <SupportPGO Condition="'$(SupportPGO)' == ''">true</SupportPGO> | 
					
						
							| 
									
										
										
										
											2015-02-05 22:08:48 -08:00
										 |  |  |     <SupportSigning Condition="'$(SupportSigning)' == ''">true</SupportSigning> | 
					
						
							|  |  |  |     <SupportSigning Condition="'$(Configuration)' == 'Debug'">false</SupportSigning> | 
					
						
							|  |  |  |     <SupportSigning Condition="'$(ConfigurationType)' == 'StaticLibrary'">false</SupportSigning> | 
					
						
							| 
									
										
										
										
											2022-05-19 14:44:03 -07:00
										 |  |  |     <LinkIncremental Condition="$(Configuration) != 'Debug'">false</LinkIncremental> | 
					
						
							| 
									
										
										
										
											2014-03-17 15:57:38 -05:00
										 |  |  |   </PropertyGroup> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   <PropertyGroup> | 
					
						
							|  |  |  |     <_DebugPreprocessorDefinition>NDEBUG;</_DebugPreprocessorDefinition> | 
					
						
							|  |  |  |     <_DebugPreprocessorDefinition Condition="$(Configuration) == 'Debug'">_DEBUG;</_DebugPreprocessorDefinition> | 
					
						
							|  |  |  |     <_PlatformPreprocessorDefinition>_WIN32;</_PlatformPreprocessorDefinition> | 
					
						
							| 
									
										
										
										
											2023-01-27 14:45:08 +00:00
										 |  |  |     <_PlatformPreprocessorDefinition Condition="$(Platform) == 'x64'">_WIN64;</_PlatformPreprocessorDefinition> | 
					
						
							|  |  |  |     <_PlatformPreprocessorDefinition Condition="$(Platform) == 'x64' and $(PlatformToolset) != 'ClangCL'">_M_X64;$(_PlatformPreprocessorDefinition)</_PlatformPreprocessorDefinition> | 
					
						
							| 
									
										
										
										
											2020-07-06 17:32:00 +01:00
										 |  |  |     <_Py3NamePreprocessorDefinition>PY3_DLLNAME=L"$(Py3DllName)";</_Py3NamePreprocessorDefinition> | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  |   </PropertyGroup> | 
					
						
							|  |  |  |   <ItemDefinitionGroup> | 
					
						
							|  |  |  |     <ClCompile> | 
					
						
							| 
									
										
										
										
											2018-11-01 00:52:28 +01:00
										 |  |  |       <AdditionalIncludeDirectories>$(PySourcePath)Include;$(PySourcePath)Include\internal;$(PySourcePath)PC;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | 
					
						
							| 
									
										
										
										
											2020-07-06 17:32:00 +01:00
										 |  |  |       <PreprocessorDefinitions>WIN32;$(_Py3NamePreprocessorDefinition);$(_PlatformPreprocessorDefinition)$(_DebugPreprocessorDefinition)$(_PydPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions> | 
					
						
							| 
									
										
										
										
											2019-06-14 08:29:20 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  |       <Optimization>MaxSpeed</Optimization> | 
					
						
							|  |  |  |       <IntrinsicFunctions>true</IntrinsicFunctions> | 
					
						
							|  |  |  |       <StringPooling>true</StringPooling> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |       <ExceptionHandling></ExceptionHandling> | 
					
						
							| 
									
										
										
										
											2015-09-08 21:39:01 -07:00
										 |  |  |       <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  |       <FunctionLevelLinking>true</FunctionLevelLinking> | 
					
						
							|  |  |  |       <WarningLevel>Level3</WarningLevel> | 
					
						
							|  |  |  |       <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> | 
					
						
							|  |  |  |       <CompileAs>Default</CompileAs> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |       <SuppressStartupBanner>true</SuppressStartupBanner> | 
					
						
							|  |  |  |       <WholeProgramOptimization>true</WholeProgramOptimization> | 
					
						
							| 
									
										
										
										
											2021-06-11 21:35:40 +01:00
										 |  |  |       <ControlFlowGuard Condition="$(EnableControlFlowGuard) != ''">$(EnableControlFlowGuard)</ControlFlowGuard> | 
					
						
							| 
									
										
										
										
											2022-02-17 11:40:33 -07:00
										 |  |  |       <MultiProcessorCompilation>true</MultiProcessorCompilation> | 
					
						
							| 
									
										
										
										
											2023-01-27 14:45:08 +00:00
										 |  |  |       <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions> | 
					
						
							|  |  |  |       <AdditionalOptions Condition="$(PlatformToolset) == 'ClangCL'">-Wno-deprecated-non-prototype -Wno-unused-label -Wno-pointer-sign -Wno-incompatible-pointer-types-discards-qualifiers -Wno-unused-function %(AdditionalOptions)</AdditionalOptions> | 
					
						
							|  |  |  |       <AdditionalOptions Condition="$(Configuration) != 'Debug' and $(PlatformToolset) == 'ClangCL'">-flto %(AdditionalOptions)</AdditionalOptions> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |     </ClCompile> | 
					
						
							|  |  |  |     <ClCompile Condition="$(Configuration) == 'Debug'"> | 
					
						
							| 
									
										
										
										
											2021-06-11 21:35:40 +01:00
										 |  |  |       <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |       <Optimization>Disabled</Optimization> | 
					
						
							|  |  |  |       <WholeProgramOptimization>false</WholeProgramOptimization> | 
					
						
							| 
									
										
										
										
											2015-09-08 21:39:01 -07:00
										 |  |  |       <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  |     </ClCompile> | 
					
						
							| 
									
										
										
										
											2016-01-29 19:08:55 -06:00
										 |  |  |     <ClCompile Condition="$(ICCBuild) == 'true'"> | 
					
						
							|  |  |  |       <FloatingPointModel>Strict</FloatingPointModel> | 
					
						
							|  |  |  |     </ClCompile> | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  |     <Link> | 
					
						
							|  |  |  |       <AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | 
					
						
							|  |  |  |       <GenerateDebugInformation>true</GenerateDebugInformation> | 
					
						
							|  |  |  |       <ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile> | 
					
						
							|  |  |  |       <SubSystem>Windows</SubSystem> | 
					
						
							| 
									
										
										
										
											2013-11-20 17:43:23 +01:00
										 |  |  |       <RandomizedBaseAddress>true</RandomizedBaseAddress> | 
					
						
							|  |  |  |       <DataExecutionPrevention>true</DataExecutionPrevention> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |       <SuppressStartupBanner>true</SuppressStartupBanner> | 
					
						
							| 
									
										
										
										
											2015-09-08 21:39:01 -07:00
										 |  |  |       <IgnoreSpecificDefaultLibraries>LIBC;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  |       <TargetMachine>MachineX86</TargetMachine> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |       <TargetMachine Condition="'$(Platform)' == 'x64'">MachineX64</TargetMachine> | 
					
						
							| 
									
										
										
										
											2019-02-14 08:31:30 -08:00
										 |  |  |       <TargetMachine Condition="'$(Platform)'=='ARM'">MachineARM</TargetMachine> | 
					
						
							| 
									
										
										
										
											2019-05-17 10:07:24 -07:00
										 |  |  |       <TargetMachine Condition="'$(Platform)'=='ARM64'">MachineARM64</TargetMachine> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |       <ProfileGuidedDatabase Condition="$(SupportPGO)">$(OutDir)$(TargetName).pgd</ProfileGuidedDatabase> | 
					
						
							|  |  |  |       <LinkTimeCodeGeneration Condition="$(Configuration) == 'Release'">UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> | 
					
						
							|  |  |  |       <LinkTimeCodeGeneration Condition="$(SupportPGO) and $(Configuration) == 'PGInstrument'">PGInstrument</LinkTimeCodeGeneration> | 
					
						
							|  |  |  |       <LinkTimeCodeGeneration Condition="$(SupportPGO) and $(Configuration) == 'PGUpdate'">PGUpdate</LinkTimeCodeGeneration> | 
					
						
							| 
									
										
										
										
											2019-02-14 08:31:30 -08:00
										 |  |  |       <AdditionalDependencies>advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;%(AdditionalDependencies)</AdditionalDependencies> | 
					
						
							| 
									
										
										
										
											2021-12-08 02:18:21 +00:00
										 |  |  |       <AdditionalOptions Condition="$(Configuration) != 'Debug'">/OPT:REF,NOICF %(AdditionalOptions)</AdditionalOptions> | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  |     </Link> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |     <Lib> | 
					
						
							|  |  |  |       <LinkTimeCodeGeneration Condition="$(Configuration) == 'Release'">true</LinkTimeCodeGeneration> | 
					
						
							|  |  |  |       <LinkTimeCodeGeneration Condition="$(SupportPGO) and $(Configuration) == 'PGInstrument'">true</LinkTimeCodeGeneration> | 
					
						
							|  |  |  |       <LinkTimeCodeGeneration Condition="$(SupportPGO) and $(Configuration) == 'PGUpdate'">true</LinkTimeCodeGeneration> | 
					
						
							|  |  |  |     </Lib> | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  |     <ResourceCompile> | 
					
						
							| 
									
										
										
										
											2016-04-06 12:35:24 -07:00
										 |  |  |       <AdditionalIncludeDirectories>$(PySourcePath)PC;$(PySourcePath)Include;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | 
					
						
							| 
									
										
										
										
											2020-06-24 00:05:57 +05:00
										 |  |  |       <PreprocessorDefinitions>ORIGINAL_FILENAME=\"$(TargetName)$(TargetExt)\";FIELD3=$(Field3Value);$(_DebugPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |       <Culture>0x0409</Culture> | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  |     </ResourceCompile> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |     <Midl> | 
					
						
							|  |  |  |       <PreprocessorDefinitions>$(_DebugPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions> | 
					
						
							|  |  |  |       <MkTypLibCompatible>true</MkTypLibCompatible> | 
					
						
							|  |  |  |       <SuppressStartupBanner>true</SuppressStartupBanner> | 
					
						
							|  |  |  |       <TargetEnvironment>Win32</TargetEnvironment> | 
					
						
							|  |  |  |       <TargetEnvironment Condition="'$(Platform)' == 'x64'">X64</TargetEnvironment> | 
					
						
							| 
									
										
										
										
											2016-07-16 16:17:33 -07:00
										 |  |  |       <OutputDirectory>$(IntDir)</OutputDirectory> | 
					
						
							|  |  |  |       <InterfaceIdentifierFileName>$(MSBuildProjectName)_i.c</InterfaceIdentifierFileName> | 
					
						
							|  |  |  |       <ProxyFileName>$(MSBuildProjectName)_p.c</ProxyFileName> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |     </Midl> | 
					
						
							| 
									
										
										
										
											2012-05-13 11:19:23 -05:00
										 |  |  |   </ItemDefinitionGroup> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   <UsingTask TaskName="KillPython" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | 
					
						
							|  |  |  |     <ParameterGroup> | 
					
						
							|  |  |  |       <FileName Required="true" /> | 
					
						
							|  |  |  |     </ParameterGroup> | 
					
						
							|  |  |  |     <Task> | 
					
						
							| 
									
										
										
										
											2018-10-23 05:41:48 -06:00
										 |  |  |       <Using Namespace="System.Diagnostics"/> | 
					
						
							|  |  |  |       <Using Namespace="System.IO"/> | 
					
						
							|  |  |  |       <Using Namespace="System.Runtime.InteropServices"/> | 
					
						
							|  |  |  |       <Using Namespace="System.Text"/> | 
					
						
							|  |  |  |       <Code Type="Method" Language="cs"> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  | <![CDATA[ | 
					
						
							| 
									
										
										
										
											2018-10-23 05:41:48 -06:00
										 |  |  | [DllImport("kernel32.dll", SetLastError=true, CharSet=CharSet.Unicode)] | 
					
						
							|  |  |  | public static extern bool QueryFullProcessImageName([In]IntPtr hProcess, [In]int dwFlags, | 
					
						
							|  |  |  |                                                     [Out]StringBuilder lpExeName, ref int lpdwSize); | 
					
						
							|  |  |  | public override bool Execute() { | 
					
						
							|  |  |  |     string fullPath = Path.GetFullPath(FileName); | 
					
						
							|  |  |  |     Log.LogMessage("Looking for " + fullPath, MessageImportance.Normal); | 
					
						
							|  |  |  |     foreach (Process p in Process.GetProcesses()) { | 
					
						
							|  |  |  |         try { | 
					
						
							|  |  |  |             int pathLength = 32768; | 
					
						
							|  |  |  |             StringBuilder pathBuilder = new StringBuilder(pathLength); | 
					
						
							|  |  |  |             if (QueryFullProcessImageName(p.Handle, 0, pathBuilder, ref pathLength)) { | 
					
						
							|  |  |  |                 string exeName = Path.GetFullPath(pathBuilder.ToString()); | 
					
						
							|  |  |  |                 Log.LogMessage("Found running process: " + exeName, MessageImportance.Low); | 
					
						
							|  |  |  |                 if (fullPath.Equals(exeName, StringComparison.OrdinalIgnoreCase)) { | 
					
						
							|  |  |  |                     Log.LogMessage("Terminating " + exeName, MessageImportance.High); | 
					
						
							|  |  |  |                     p.Kill(); | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |         } catch { | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2018-10-23 05:41:48 -06:00
										 |  |  |     return true; | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  | } | 
					
						
							|  |  |  | ]]> | 
					
						
							|  |  |  |       </Code> | 
					
						
							|  |  |  |     </Task> | 
					
						
							|  |  |  |   </UsingTask> | 
					
						
							| 
									
										
										
										
											2019-06-14 08:29:20 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-12-12 13:45:25 -08:00
										 |  |  |   <Target Name="KillPython" BeforeTargets="PrepareForBuild" Condition="'$(KillPython)' == 'true'"> | 
					
						
							| 
									
										
										
										
											2015-10-31 12:17:11 -07:00
										 |  |  |     <Message Text="Killing any running python$(PyDebugExt)$(PyTestExt).exe instances..." Importance="high" /> | 
					
						
							|  |  |  |     <KillPython FileName="$(OutDir)python$(PyDebugExt)$(PyTestExt).exe" /> | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |   </Target> | 
					
						
							| 
									
										
										
										
											2019-06-14 08:29:20 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |   <!-- | 
					
						
							|  |  |  |   A default target to handle msbuild pcbuild.proj /t:CleanAll. | 
					
						
							| 
									
										
										
										
											2019-06-14 08:29:20 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-22 12:54:57 -08:00
										 |  |  |   Some externals projects don't respond to /t:Clean, so we invoke | 
					
						
							|  |  |  |   CleanAll on them when we really want to clean up. | 
					
						
							|  |  |  |   --> | 
					
						
							|  |  |  |   <Target Name="CleanAll" DependsOnTargets="Clean"> | 
					
						
							|  |  |  |     <MSBuild Projects="@(ProjectReference->'%(FullPath)')" | 
					
						
							|  |  |  |              Properties="Configuration=$(Configuration);Platform=$(Platform)" | 
					
						
							|  |  |  |              BuildInParallel="true" | 
					
						
							|  |  |  |              StopOnFirstFailure="false" | 
					
						
							|  |  |  |              Condition="Exists(%(FullPath))" | 
					
						
							|  |  |  |              Targets="CleanAll" /> | 
					
						
							|  |  |  |   </Target> | 
					
						
							| 
									
										
										
										
											2015-02-05 22:08:48 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-06 10:01:38 -07:00
										 |  |  |   <Target Name="CopyPGCFiles" BeforeTargets="PrepareForBuild" Condition="$(Configuration) == 'PGUpdate'"> | 
					
						
							|  |  |  |     <ItemGroup> | 
					
						
							|  |  |  |       <_PGCFiles Include="$(OutDir)instrumented\$(TargetName)!*.pgc" /> | 
					
						
							|  |  |  |       <_PGDFile Include="$(OutDir)instrumented\$(TargetName).pgd" /> | 
					
						
							|  |  |  |       <_CopyFiles Include="@(_PGCFiles);@(_PGDFile)" Condition="Exists(%(FullPath))" /> | 
					
						
							|  |  |  |     </ItemGroup> | 
					
						
							|  |  |  |     <Delete Files="@(_CopyFiles->'$(OutDir)%(Filename)%(Extension)')" /> | 
					
						
							|  |  |  |     <Error Text="PGO run did not succeed (no $(TargetName)!*.pgc files) and there is no data to merge" | 
					
						
							|  |  |  |            Condition="$(RequirePGCFiles) == 'true' and @(_PGCFiles) == ''" /> | 
					
						
							|  |  |  |     <Copy SourceFiles="@(_CopyFiles)" | 
					
						
							|  |  |  |           DestinationFolder="$(OutDir)" | 
					
						
							|  |  |  |           UseHardLinksIfPossible="true" | 
					
						
							|  |  |  |           OverwriteReadOnlyFiles="true" /> | 
					
						
							|  |  |  |   </Target> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-09 20:18:52 -07:00
										 |  |  |   <PropertyGroup> | 
					
						
							| 
									
										
										
										
											2017-09-06 10:01:38 -07:00
										 |  |  |     <SdkBinPath Condition="'$(SdkBinPath)' == '' or !Exists($(SdkBinPath))">$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot10)\bin\$(DefaultWindowsSDKVersion)\x86</SdkBinPath> | 
					
						
							|  |  |  |     <SdkBinPath Condition="!Exists($(SdkBinPath))">$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot10)\bin\x86</SdkBinPath> | 
					
						
							| 
									
										
										
										
											2016-10-09 20:18:52 -07:00
										 |  |  |     <SdkBinPath Condition="!Exists($(SdkBinPath))">$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot81)\bin\x86</SdkBinPath> | 
					
						
							|  |  |  |     <SdkBinPath Condition="!Exists($(SdkBinPath))">$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot)\bin\x86</SdkBinPath> | 
					
						
							|  |  |  |     <SdkBinPath Condition="!Exists($(SdkBinPath))">$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A@InstallationFolder)\Bin\</SdkBinPath> | 
					
						
							| 
									
										
										
										
											2020-11-03 22:31:49 +00:00
										 |  |  |     <_SignCommand Condition="Exists($(SdkBinPath)) and '$(SigningCertificate)' != '' and $(SupportSigning)">"$(SdkBinPath)\signtool.exe" sign /a /n "$(SigningCertificate)" /fd sha256 /tr http://timestamp.digicert.com/ /td sha256 /d "Python $(PythonVersion)"</_SignCommand> | 
					
						
							|  |  |  |     <_SignCommand Condition="Exists($(SdkBinPath)) and '$(SigningCertificateSha1)' != '' and $(SupportSigning)">"$(SdkBinPath)\signtool.exe" sign /a /sha1 "$(SigningCertificateSha1)" /fd sha256 /tr http://timestamp.digicert.com/ /td sha256 /d "Python $(PythonVersion)"</_SignCommand> | 
					
						
							| 
									
										
										
										
											2016-10-09 20:18:52 -07:00
										 |  |  |     <_MakeCatCommand Condition="Exists($(SdkBinPath))">"$(SdkBinPath)\makecat.exe"</_MakeCatCommand> | 
					
						
							| 
									
										
										
										
											2015-02-05 22:08:48 -08:00
										 |  |  |   </PropertyGroup> | 
					
						
							| 
									
										
										
										
											2018-12-21 13:48:18 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   <Target Name="_SignBuild" AfterTargets="AfterBuild" Condition="'$(_SignCommand)' != '' and $(SupportSigning)"> | 
					
						
							| 
									
										
										
										
											2015-02-05 22:08:48 -08:00
										 |  |  |     <Error Text="Unable to locate signtool.exe. Set /p:SignToolPath and rebuild" Condition="'$(_SignCommand)' == ''" /> | 
					
						
							|  |  |  |     <Exec Command='$(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)"' ContinueOnError="false" /> | 
					
						
							|  |  |  |   </Target> | 
					
						
							| 
									
										
										
										
											2020-03-11 11:18:12 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-11 23:24:30 +00:00
										 |  |  |   <Target Name="FindVCRedistDir"> | 
					
						
							|  |  |  |     <!-- Hard coded path for VS 2015 --> | 
					
						
							| 
									
										
										
										
											2020-03-11 11:18:12 +00:00
										 |  |  |     <PropertyGroup Condition="$(PlatformToolset) == 'v140'"> | 
					
						
							|  |  |  |       <VCRedistDir>$(VCInstallDir)\redist\</VCRedistDir> | 
					
						
							| 
									
										
										
										
											2020-03-11 23:24:30 +00:00
										 |  |  |     </PropertyGroup> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <!-- Search for version number in some broken Build Tools installs --> | 
					
						
							|  |  |  |     <ItemGroup Condition="$(VCRedistDir) == '' and $(VCToolsRedistVersion) == ''"> | 
					
						
							|  |  |  |       <_RedistFiles Include="$(VCInstallDir)\Redist\MSVC\*\*.*" /> | 
					
						
							|  |  |  |     </ItemGroup> | 
					
						
							|  |  |  |     <PropertyGroup Condition="$(VCRedistDir) == '' and $(VCToolsRedistVersion) == ''"> | 
					
						
							|  |  |  |       <_RedistDir>%(_RedistFiles.Directory)</_RedistDir> | 
					
						
							|  |  |  |       <VCToolsRedistVersion>$([System.IO.Path]::GetFileName($(_RedistDir.Trim(`\`))))</VCToolsRedistVersion> | 
					
						
							|  |  |  |     </PropertyGroup> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <!-- Use correct path for VS 2017 and later --> | 
					
						
							|  |  |  |     <PropertyGroup Condition="$(VCRedistDir) == ''"> | 
					
						
							|  |  |  |       <VCRedistDir>$(VCInstallDir)\Redist\MSVC\$(VCToolsRedistVersion)\</VCRedistDir> | 
					
						
							|  |  |  |     </PropertyGroup> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <PropertyGroup> | 
					
						
							| 
									
										
										
										
											2020-03-11 11:18:12 +00:00
										 |  |  |       <VCRedistDir Condition="$(Platform) == 'Win32'">$(VCRedistDir)x86\</VCRedistDir> | 
					
						
							|  |  |  |       <VCRedistDir Condition="$(Platform) != 'Win32'">$(VCRedistDir)$(Platform)\</VCRedistDir> | 
					
						
							|  |  |  |     </PropertyGroup> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-11 23:24:30 +00:00
										 |  |  |     <Message Text="VC Redist Directory: $(VCRedistDir)" /> | 
					
						
							|  |  |  |     <Message Text="VC Redist Version: $(VCToolsRedistVersion)" /> | 
					
						
							|  |  |  |   </Target> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <Target Name="FindVCRuntime" Returns="VCRuntimeDLL" DependsOnTargets="FindVCRedistDir"> | 
					
						
							| 
									
										
										
										
											2020-03-11 11:18:12 +00:00
										 |  |  |     <ItemGroup Condition="$(VCInstallDir) != ''"> | 
					
						
							|  |  |  |       <VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*.dll" /> | 
					
						
							|  |  |  |     </ItemGroup> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-11 23:24:30 +00:00
										 |  |  |     <Warning Text="vcruntime*.dll not found under $(VCRedistDir)." Condition="@(VCRuntimeDLL) == ''" /> | 
					
						
							|  |  |  |     <Message Text="VC Runtime DLL(s):%0A- @(VCRuntimeDLL,'%0A- ')" /> | 
					
						
							| 
									
										
										
										
											2020-03-11 11:18:12 +00:00
										 |  |  |   </Target> | 
					
						
							| 
									
										
										
										
											2021-12-18 13:05:45 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   <Target Name="FindPythonForBuild" Condition="$(PythonForBuild) == ''"> | 
					
						
							| 
									
										
										
										
											2022-07-17 15:20:24 +01:00
										 |  |  |     <Exec Command=""$(MSBuildThisFileDirectory)\find_python.bat" -q" | 
					
						
							| 
									
										
										
										
											2021-12-18 13:05:45 +00:00
										 |  |  |           EchoOff="true" | 
					
						
							|  |  |  |           ConsoleToMsBuild="true"> | 
					
						
							|  |  |  |         <Output TaskParameter="ConsoleOutput" ItemName="_CmdExeLines" /> | 
					
						
							|  |  |  |     </Exec> | 
					
						
							|  |  |  |     <PropertyGroup> | 
					
						
							|  |  |  |       <PythonForBuild>@(_CmdExeLines)</PythonForBuild> | 
					
						
							|  |  |  |     </PropertyGroup> | 
					
						
							|  |  |  |     <Error Text="Failed to locate suitable Python runtime for building from source." Condition="$(PythonForBuild)==''" /> | 
					
						
							|  |  |  |     <Message Text="Using PythonForBuild=$(PythonForBuild)" Importance="high" /> | 
					
						
							|  |  |  |   </Target> | 
					
						
							| 
									
										
										
										
											2018-11-01 00:52:28 +01:00
										 |  |  | </Project> |