diff options
author | Paul Monson <paulmon@users.noreply.github.com> | 2019-03-29 23:30:10 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2019-03-29 23:30:10 (GMT) |
commit | 32119e10b792ad7ee4e5f951a2d89ddbaf111cc5 (patch) | |
tree | 49219272ab3f00bbc62a9d70a2e05ba938d7ec1e /PCbuild/libffi.props | |
parent | 3396d1e0ca858065c5bb7e5a9737be6ffc4028f7 (diff) | |
download | cpython-32119e10b792ad7ee4e5f951a2d89ddbaf111cc5.zip cpython-32119e10b792ad7ee4e5f951a2d89ddbaf111cc5.tar.gz cpython-32119e10b792ad7ee4e5f951a2d89ddbaf111cc5.tar.bz2 |
bpo-35947: Update Windows to the current version of libffi (GH-11797)
We now use a pre-built libffi binary from our binaries repository, and no longer vendor the full implementation.
Diffstat (limited to 'PCbuild/libffi.props')
-rw-r--r-- | PCbuild/libffi.props | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/PCbuild/libffi.props b/PCbuild/libffi.props new file mode 100644 index 0000000..975c4a0 --- /dev/null +++ b/PCbuild/libffi.props @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemDefinitionGroup> + <ClCompile> + <AdditionalIncludeDirectories>$(libffiIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <AdditionalLibraryDirectories>$(libffiOutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + <AdditionalDependencies>libffi-7.lib;%(AdditionalDependencies)</AdditionalDependencies> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <_LIBFFIDLL Include="$(libffiOutDir)\libffi-7.dll" /> + </ItemGroup> + <Target Name="_CopyLIBFFIDLL" Inputs="@(_LIBFFIDLL)" Outputs="@(_LIBFFIDLL->'$(OutDir)%(Filename)%(Extension)')" AfterTargets="Build"> + <Copy SourceFiles="@(_LIBFFIDLL)" DestinationFolder="$(OutDir)" /> + </Target> + <Target Name="_CleanLIBFFIDLL" BeforeTargets="Clean"> + <Delete Files="@(_LIBFFIDLL->'$(OutDir)%(Filename)%(Extension)')" TreatErrorsAsWarnings="true" /> + </Target> +</Project>
\ No newline at end of file |