]> granicus.if.org Git - python/commitdiff
bpo-37326: Include libffi license when available (GH-15921)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 Sep 2019 13:31:27 +0000 (06:31 -0700)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2019 13:31:27 +0000 (06:31 -0700)
(cherry picked from commit 8fcaffb048d2359a4c06ed5d8fbbf46d3ae1a472)

Co-authored-by: Steve Dower <steve.dower@python.org>
PCbuild/python.vcxproj

index e37bcfb0b6e1852fa98fccc65ef1db68d04641bd..2094420a8df3956f5a009641f3facba782f55c1f 100644 (file)
@@ -150,12 +150,13 @@ $(_PGOPath)
       <LicenseFiles Include="$(PySourcePath)LICENSE;
                              $(PySourcePath)PC\crtlicense.txt;
                              $(bz2Dir)LICENSE;
-                             $(opensslOutDir)LICENSE;" />
+                             $(opensslOutDir)LICENSE;
+                             $(libffiDir)LICENSE;" />
       <LicenseFiles Include="$(tcltkDir)tcllicense.terms;
                              $(tcltkDir)tklicense.terms;
                              $(tcltkDir)tixlicense.terms" Condition="$(IncludeTkinter)" />
       <_LicenseFiles Include="@(LicenseFiles)">
-        <Content>$([System.IO.File]::ReadAllText(%(FullPath)))</Content>
+        <Content Condition="Exists(%(FullPath))">$([System.IO.File]::ReadAllText(%(FullPath)))</Content>
       </_LicenseFiles>
     </ItemGroup>