1<?xml version="1.0" encoding="utf-8"?> 2<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 <ItemDefinitionGroup> 4 <ClCompile> 5 <AdditionalIncludeDirectories>$(libffiIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 6 </ClCompile> 7 <Link> 8 <AdditionalLibraryDirectories>$(libffiOutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> 9 <AdditionalDependencies>libffi-7.lib;%(AdditionalDependencies)</AdditionalDependencies> 10 </Link> 11 </ItemDefinitionGroup> 12 <ItemGroup> 13 <_LIBFFIDLL Include="$(libffiOutDir)\libffi-7.dll" /> 14 </ItemGroup> 15 <Target Name="_CopyLIBFFIDLL" Inputs="@(_LIBFFIDLL)" Outputs="@(_LIBFFIDLL->'$(OutDir)%(Filename)%(Extension)')" AfterTargets="Build"> 16 <Copy SourceFiles="@(_LIBFFIDLL)" DestinationFolder="$(OutDir)" /> 17 </Target> 18 <Target Name="_CleanLIBFFIDLL" BeforeTargets="Clean"> 19 <Delete Files="@(_LIBFFIDLL->'$(OutDir)%(Filename)%(Extension)')" TreatErrorsAsWarnings="true" /> 20 </Target> 21</Project>