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>$(opensslIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 6 </ClCompile> 7 <Link> 8 <AdditionalLibraryDirectories>$(opensslOutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> 9 <AdditionalDependencies>ws2_32.lib;libcrypto.lib;libssl.lib;%(AdditionalDependencies)</AdditionalDependencies> 10 </Link> 11 </ItemDefinitionGroup> 12 <PropertyGroup> 13 <_DLLSuffix>-1_1</_DLLSuffix> 14 <_DLLSuffix Condition="$(Platform) == 'ARM'">$(_DLLSuffix)-arm</_DLLSuffix> 15 <_DLLSuffix Condition="$(Platform) == 'ARM64'">$(_DLLSuffix)-arm64</_DLLSuffix> 16 <OpenSSLDLLSuffix>$(_DLLSuffix)</OpenSSLDLLSuffix> 17 </PropertyGroup> 18 <ItemGroup> 19 <_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).dll" /> 20 <_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).pdb" /> 21 <_SSLDLL Include="$(opensslOutDir)\libssl$(_DLLSuffix).dll" /> 22 <_SSLDLL Include="$(opensslOutDir)\libssl$(_DLLSuffix).pdb" /> 23 </ItemGroup> 24 <Target Name="_CopySSLDLL" 25 Inputs="@(_SSLDLL)" 26 Outputs="@(_SSLDLL->'$(OutDir)%(Filename)%(Extension)')" 27 Condition="$(SkipCopySSLDLL) == ''" 28 AfterTargets="Build"> 29 <Copy SourceFiles="@(_SSLDLL)" DestinationFolder="$(OutDir)" /> 30 </Target> 31 <Target Name="_CleanSSLDLL" Condition="$(SkipCopySSLDLL) == ''" BeforeTargets="Clean"> 32 <Delete Files="@(_SSLDLL->'$(OutDir)%(Filename)%(Extension)')" TreatErrorsAsWarnings="true" /> 33 </Target> 34</Project>