Steve Dower | 21a92f8 | 2019-06-14 08:29:20 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty="Py_IntDir"> |
| 3 | <Import Project="python.props" Condition="$(__Python_Props_Imported) != 'true'" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 4 | <PropertyGroup Label="Globals"> |
Steve Dower | 21a92f8 | 2019-06-14 08:29:20 -0700 | [diff] [blame] | 5 | <__PyProject_Props_Imported>true</__PyProject_Props_Imported> |
Stefan Krah | 318c56c | 2012-06-24 19:04:35 +0200 | [diff] [blame] | 6 | <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 7 | <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> |
| 8 | <OutDir>$(BuildPath)</OutDir> |
Steve Dower | de9fb28 | 2015-07-27 14:56:58 -0700 | [diff] [blame] | 9 | <OutDir Condition="!HasTrailingSlash($(OutDir))">$(OutDir)\</OutDir> |
Steve Dower | 6ed63f3 | 2016-07-24 18:03:22 -0700 | [diff] [blame] | 10 | <Py_IntDir Condition="'$(Py_IntDir)' == ''">$(MSBuildThisFileDirectory)obj\</Py_IntDir> |
Steve Dower | 2084b30 | 2017-10-05 13:35:36 -0700 | [diff] [blame] | 11 | <IntDir>$(Py_IntDir)\$(MajorVersionNumber)$(MinorVersionNumber)$(ArchName)_$(Configuration)\$(ProjectName)\</IntDir> |
Steve Dower | 0d2a908 | 2017-11-04 16:28:47 -0700 | [diff] [blame] | 12 | <IntDir>$(IntDir.Replace(`\\`, `\`))</IntDir> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 13 | <TargetName Condition="'$(TargetName)' == ''">$(ProjectName)</TargetName> |
| 14 | <TargetName>$(TargetName)$(PyDebugExt)</TargetName> |
| 15 | <GenerateManifest>false</GenerateManifest> |
| 16 | <EmbedManifest>false</EmbedManifest> |
| 17 | <SupportPGO Condition="'$(SupportPGO)' == ''">true</SupportPGO> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 18 | <SupportSigning Condition="'$(SupportSigning)' == ''">true</SupportSigning> |
| 19 | <SupportSigning Condition="'$(Configuration)' == 'Debug'">false</SupportSigning> |
| 20 | <SupportSigning Condition="'$(ConfigurationType)' == 'StaticLibrary'">false</SupportSigning> |
Zachary Ware | 6373ba5 | 2014-03-17 15:57:38 -0500 | [diff] [blame] | 21 | </PropertyGroup> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 22 | |
| 23 | <PropertyGroup> |
| 24 | <_DebugPreprocessorDefinition>NDEBUG;</_DebugPreprocessorDefinition> |
| 25 | <_DebugPreprocessorDefinition Condition="$(Configuration) == 'Debug'">_DEBUG;</_DebugPreprocessorDefinition> |
| 26 | <_PlatformPreprocessorDefinition>_WIN32;</_PlatformPreprocessorDefinition> |
| 27 | <_PlatformPreprocessorDefinition Condition="$(Platform) == 'x64'">_WIN64;_M_X64;</_PlatformPreprocessorDefinition> |
| 28 | <_PydPreprocessorDefinition Condition="$(TargetExt) == '.pyd'">Py_BUILD_CORE_MODULE;</_PydPreprocessorDefinition> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 29 | </PropertyGroup> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 30 | <ItemDefinitionGroup> |
| 31 | <ClCompile> |
Victor Stinner | 27e2d1f | 2018-11-01 00:52:28 +0100 | [diff] [blame] | 32 | <AdditionalIncludeDirectories>$(PySourcePath)Include;$(PySourcePath)Include\internal;$(PySourcePath)PC;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 33 | <PreprocessorDefinitions>WIN32;$(_PlatformPreprocessorDefinition)$(_DebugPreprocessorDefinition)$(_PydPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions> |
Steve Dower | 21a92f8 | 2019-06-14 08:29:20 -0700 | [diff] [blame] | 34 | |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 35 | <Optimization>MaxSpeed</Optimization> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 36 | <IntrinsicFunctions>true</IntrinsicFunctions> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 37 | <StringPooling>true</StringPooling> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 38 | <ExceptionHandling></ExceptionHandling> |
Steve Dower | fcbe1df | 2015-09-08 21:39:01 -0700 | [diff] [blame] | 39 | <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 40 | <FunctionLevelLinking>true</FunctionLevelLinking> |
| 41 | <WarningLevel>Level3</WarningLevel> |
| 42 | <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> |
| 43 | <CompileAs>Default</CompileAs> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 44 | <SuppressStartupBanner>true</SuppressStartupBanner> |
| 45 | <WholeProgramOptimization>true</WholeProgramOptimization> |
Victor Stinner | a05bef4 | 2018-10-26 15:10:29 +0200 | [diff] [blame] | 46 | <InlineFunctionExpansion Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">OnlyExplicitInline</InlineFunctionExpansion> |
| 47 | <InlineFunctionExpansion Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">OnlyExplicitInline</InlineFunctionExpansion> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 48 | </ClCompile> |
| 49 | <ClCompile Condition="$(Configuration) == 'Debug'"> |
| 50 | <Optimization>Disabled</Optimization> |
| 51 | <WholeProgramOptimization>false</WholeProgramOptimization> |
Steve Dower | fcbe1df | 2015-09-08 21:39:01 -0700 | [diff] [blame] | 52 | <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 53 | </ClCompile> |
Zachary Ware | 4c5ad94 | 2016-01-29 19:08:55 -0600 | [diff] [blame] | 54 | <ClCompile Condition="$(ICCBuild) == 'true'"> |
| 55 | <FloatingPointModel>Strict</FloatingPointModel> |
| 56 | </ClCompile> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 57 | <Link> |
| 58 | <AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> |
| 59 | <GenerateDebugInformation>true</GenerateDebugInformation> |
| 60 | <ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile> |
| 61 | <SubSystem>Windows</SubSystem> |
Christian Heimes | f3bf35e | 2013-11-20 17:43:23 +0100 | [diff] [blame] | 62 | <RandomizedBaseAddress>true</RandomizedBaseAddress> |
| 63 | <DataExecutionPrevention>true</DataExecutionPrevention> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 64 | <SuppressStartupBanner>true</SuppressStartupBanner> |
Steve Dower | fcbe1df | 2015-09-08 21:39:01 -0700 | [diff] [blame] | 65 | <IgnoreSpecificDefaultLibraries>LIBC;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 66 | <TargetMachine>MachineX86</TargetMachine> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 67 | <TargetMachine Condition="'$(Platform)' == 'x64'">MachineX64</TargetMachine> |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 68 | <TargetMachine Condition="'$(Platform)'=='ARM'">MachineARM</TargetMachine> |
Paul Monson | f96e7fd | 2019-05-17 10:07:24 -0700 | [diff] [blame] | 69 | <TargetMachine Condition="'$(Platform)'=='ARM64'">MachineARM64</TargetMachine> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 70 | <ProfileGuidedDatabase Condition="$(SupportPGO)">$(OutDir)$(TargetName).pgd</ProfileGuidedDatabase> |
| 71 | <LinkTimeCodeGeneration Condition="$(Configuration) == 'Release'">UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> |
| 72 | <LinkTimeCodeGeneration Condition="$(SupportPGO) and $(Configuration) == 'PGInstrument'">PGInstrument</LinkTimeCodeGeneration> |
| 73 | <LinkTimeCodeGeneration Condition="$(SupportPGO) and $(Configuration) == 'PGUpdate'">PGUpdate</LinkTimeCodeGeneration> |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 74 | <AdditionalDependencies>advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;%(AdditionalDependencies)</AdditionalDependencies> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 75 | </Link> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 76 | <Lib> |
| 77 | <LinkTimeCodeGeneration Condition="$(Configuration) == 'Release'">true</LinkTimeCodeGeneration> |
| 78 | <LinkTimeCodeGeneration Condition="$(SupportPGO) and $(Configuration) == 'PGInstrument'">true</LinkTimeCodeGeneration> |
| 79 | <LinkTimeCodeGeneration Condition="$(SupportPGO) and $(Configuration) == 'PGUpdate'">true</LinkTimeCodeGeneration> |
| 80 | </Lib> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 81 | <ResourceCompile> |
Steve Dower | b066058 | 2016-04-06 12:35:24 -0700 | [diff] [blame] | 82 | <AdditionalIncludeDirectories>$(PySourcePath)PC;$(PySourcePath)Include;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 83 | <PreprocessorDefinitions>$(_DebugPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 84 | <Culture>0x0409</Culture> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 85 | </ResourceCompile> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 86 | <Midl> |
| 87 | <PreprocessorDefinitions>$(_DebugPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 88 | <MkTypLibCompatible>true</MkTypLibCompatible> |
| 89 | <SuppressStartupBanner>true</SuppressStartupBanner> |
| 90 | <TargetEnvironment>Win32</TargetEnvironment> |
| 91 | <TargetEnvironment Condition="'$(Platform)' == 'x64'">X64</TargetEnvironment> |
Steve Dower | df450d1 | 2016-07-16 16:17:33 -0700 | [diff] [blame] | 92 | <OutputDirectory>$(IntDir)</OutputDirectory> |
| 93 | <InterfaceIdentifierFileName>$(MSBuildProjectName)_i.c</InterfaceIdentifierFileName> |
| 94 | <ProxyFileName>$(MSBuildProjectName)_p.c</ProxyFileName> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 95 | </Midl> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 96 | </ItemDefinitionGroup> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 97 | |
| 98 | <Target Name="GeneratePythonNtRcH" |
Steve Dower | b066058 | 2016-04-06 12:35:24 -0700 | [diff] [blame] | 99 | BeforeTargets="ClCompile" |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 100 | Inputs="$(PySourcePath)Include\patchlevel.h" |
Steve Dower | b066058 | 2016-04-06 12:35:24 -0700 | [diff] [blame] | 101 | Outputs="$(IntDir)pythonnt_rc.h"> |
| 102 | <WriteLinesToFile File="$(IntDir)pythonnt_rc.h" Overwrite="true" Encoding="ascii" |
| 103 | Lines='/* This file created by pyproject.props /t:GeneratePythonNtRcH */ |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 104 | #define FIELD3 $(Field3Value) |
Steve Dower | 2587952 | 2015-01-15 09:10:16 -0800 | [diff] [blame] | 105 | #define MS_DLL_ID "$(SysWinVer)" |
Steve Dower | b066058 | 2016-04-06 12:35:24 -0700 | [diff] [blame] | 106 | #define PYTHON_DLL_NAME "$(TargetName)$(TargetExt)" |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 107 | ' /> |
| 108 | <ItemGroup> |
Steve Dower | b066058 | 2016-04-06 12:35:24 -0700 | [diff] [blame] | 109 | <FileWrites Include="$(IntDir)pythonnt_rc.h" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 110 | </ItemGroup> |
| 111 | </Target> |
| 112 | |
| 113 | <UsingTask TaskName="KillPython" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> |
| 114 | <ParameterGroup> |
| 115 | <FileName Required="true" /> |
| 116 | </ParameterGroup> |
| 117 | <Task> |
Jeremy Kloth | fa53294 | 2018-10-23 05:41:48 -0600 | [diff] [blame] | 118 | <Using Namespace="System.Diagnostics"/> |
| 119 | <Using Namespace="System.IO"/> |
| 120 | <Using Namespace="System.Runtime.InteropServices"/> |
| 121 | <Using Namespace="System.Text"/> |
| 122 | <Code Type="Method" Language="cs"> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 123 | <![CDATA[ |
Jeremy Kloth | fa53294 | 2018-10-23 05:41:48 -0600 | [diff] [blame] | 124 | [DllImport("kernel32.dll", SetLastError=true, CharSet=CharSet.Unicode)] |
| 125 | public static extern bool QueryFullProcessImageName([In]IntPtr hProcess, [In]int dwFlags, |
| 126 | [Out]StringBuilder lpExeName, ref int lpdwSize); |
| 127 | public override bool Execute() { |
| 128 | string fullPath = Path.GetFullPath(FileName); |
| 129 | Log.LogMessage("Looking for " + fullPath, MessageImportance.Normal); |
| 130 | foreach (Process p in Process.GetProcesses()) { |
| 131 | try { |
| 132 | int pathLength = 32768; |
| 133 | StringBuilder pathBuilder = new StringBuilder(pathLength); |
| 134 | if (QueryFullProcessImageName(p.Handle, 0, pathBuilder, ref pathLength)) { |
| 135 | string exeName = Path.GetFullPath(pathBuilder.ToString()); |
| 136 | Log.LogMessage("Found running process: " + exeName, MessageImportance.Low); |
| 137 | if (fullPath.Equals(exeName, StringComparison.OrdinalIgnoreCase)) { |
| 138 | Log.LogMessage("Terminating " + exeName, MessageImportance.High); |
| 139 | p.Kill(); |
| 140 | } |
| 141 | } |
| 142 | } catch { |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 143 | } |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 144 | } |
Jeremy Kloth | fa53294 | 2018-10-23 05:41:48 -0600 | [diff] [blame] | 145 | return true; |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 146 | } |
| 147 | ]]> |
| 148 | </Code> |
| 149 | </Task> |
| 150 | </UsingTask> |
Steve Dower | 21a92f8 | 2019-06-14 08:29:20 -0700 | [diff] [blame] | 151 | |
Steve Dower | f4f1080 | 2014-12-12 13:45:25 -0800 | [diff] [blame] | 152 | <Target Name="KillPython" BeforeTargets="PrepareForBuild" Condition="'$(KillPython)' == 'true'"> |
Steve Dower | 940f6a8 | 2015-10-31 12:17:11 -0700 | [diff] [blame] | 153 | <Message Text="Killing any running python$(PyDebugExt)$(PyTestExt).exe instances..." Importance="high" /> |
| 154 | <KillPython FileName="$(OutDir)python$(PyDebugExt)$(PyTestExt).exe" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 155 | </Target> |
Steve Dower | 21a92f8 | 2019-06-14 08:29:20 -0700 | [diff] [blame] | 156 | |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 157 | <!-- |
| 158 | A default target to handle msbuild pcbuild.proj /t:CleanAll. |
Steve Dower | 21a92f8 | 2019-06-14 08:29:20 -0700 | [diff] [blame] | 159 | |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 160 | Some externals projects don't respond to /t:Clean, so we invoke |
| 161 | CleanAll on them when we really want to clean up. |
| 162 | --> |
| 163 | <Target Name="CleanAll" DependsOnTargets="Clean"> |
| 164 | <MSBuild Projects="@(ProjectReference->'%(FullPath)')" |
| 165 | Properties="Configuration=$(Configuration);Platform=$(Platform)" |
| 166 | BuildInParallel="true" |
| 167 | StopOnFirstFailure="false" |
| 168 | Condition="Exists(%(FullPath))" |
| 169 | Targets="CleanAll" /> |
| 170 | </Target> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 171 | |
Steve Dower | 5fcd5e6 | 2017-09-06 10:01:38 -0700 | [diff] [blame] | 172 | <Target Name="CopyPGCFiles" BeforeTargets="PrepareForBuild" Condition="$(Configuration) == 'PGUpdate'"> |
| 173 | <ItemGroup> |
| 174 | <_PGCFiles Include="$(OutDir)instrumented\$(TargetName)!*.pgc" /> |
| 175 | <_PGDFile Include="$(OutDir)instrumented\$(TargetName).pgd" /> |
| 176 | <_CopyFiles Include="@(_PGCFiles);@(_PGDFile)" Condition="Exists(%(FullPath))" /> |
| 177 | </ItemGroup> |
| 178 | <Delete Files="@(_CopyFiles->'$(OutDir)%(Filename)%(Extension)')" /> |
| 179 | <Error Text="PGO run did not succeed (no $(TargetName)!*.pgc files) and there is no data to merge" |
| 180 | Condition="$(RequirePGCFiles) == 'true' and @(_PGCFiles) == ''" /> |
| 181 | <Copy SourceFiles="@(_CopyFiles)" |
| 182 | DestinationFolder="$(OutDir)" |
| 183 | UseHardLinksIfPossible="true" |
| 184 | OverwriteReadOnlyFiles="true" /> |
| 185 | </Target> |
| 186 | |
Steve Dower | 425ec15 | 2016-10-09 20:18:52 -0700 | [diff] [blame] | 187 | <PropertyGroup> |
Steve Dower | 5fcd5e6 | 2017-09-06 10:01:38 -0700 | [diff] [blame] | 188 | <SdkBinPath Condition="'$(SdkBinPath)' == '' or !Exists($(SdkBinPath))">$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot10)\bin\$(DefaultWindowsSDKVersion)\x86</SdkBinPath> |
| 189 | <SdkBinPath Condition="!Exists($(SdkBinPath))">$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot10)\bin\x86</SdkBinPath> |
Steve Dower | 425ec15 | 2016-10-09 20:18:52 -0700 | [diff] [blame] | 190 | <SdkBinPath Condition="!Exists($(SdkBinPath))">$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot81)\bin\x86</SdkBinPath> |
| 191 | <SdkBinPath Condition="!Exists($(SdkBinPath))">$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot)\bin\x86</SdkBinPath> |
| 192 | <SdkBinPath Condition="!Exists($(SdkBinPath))">$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A@InstallationFolder)\Bin\</SdkBinPath> |
Steve Dower | 21a92f8 | 2019-06-14 08:29:20 -0700 | [diff] [blame] | 193 | <_SignCommand Condition="Exists($(SdkBinPath)) and '$(SigningCertificate)' != '' and $(SupportSigning)">"$(SdkBinPath)\signtool.exe" sign /a /n "$(SigningCertificate)" /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d "Python $(PythonVersion)"</_SignCommand> |
| 194 | <_SignCommand Condition="Exists($(SdkBinPath)) and '$(SigningCertificateSha1)' != '' and $(SupportSigning)">"$(SdkBinPath)\signtool.exe" sign /a /sha1 "$(SigningCertificateSha1)" /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d "Python $(PythonVersion)"</_SignCommand> |
Steve Dower | 425ec15 | 2016-10-09 20:18:52 -0700 | [diff] [blame] | 195 | <_MakeCatCommand Condition="Exists($(SdkBinPath))">"$(SdkBinPath)\makecat.exe"</_MakeCatCommand> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 196 | </PropertyGroup> |
Steve Dower | d3bbc52 | 2018-12-21 13:48:18 -0800 | [diff] [blame] | 197 | |
| 198 | <Target Name="_SignBuild" AfterTargets="AfterBuild" Condition="'$(_SignCommand)' != '' and $(SupportSigning)"> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 199 | <Error Text="Unable to locate signtool.exe. Set /p:SignToolPath and rebuild" Condition="'$(_SignCommand)' == ''" /> |
| 200 | <Exec Command='$(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)"' ContinueOnError="false" /> |
| 201 | </Target> |
Victor Stinner | 27e2d1f | 2018-11-01 00:52:28 +0100 | [diff] [blame] | 202 | </Project> |