]> granicus.if.org Git - python/commitdiff
bpo-37326: Include libffi license when available (GH-15921)
authorSteve Dower <steve.dower@python.org>
Wed, 11 Sep 2019 12:43:00 +0000 (13:43 +0100)
committerZachary Ware <zachary.ware@gmail.com>
Wed, 11 Sep 2019 12:43:00 +0000 (13:43 +0100)
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>