• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  </PropertyGroup>
17  <ItemGroup>
18    <_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).dll" />
19    <_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).pdb" />
20    <_SSLDLL Include="$(opensslOutDir)\libssl$(_DLLSuffix).dll" />
21    <_SSLDLL Include="$(opensslOutDir)\libssl$(_DLLSuffix).pdb" />
22  </ItemGroup>
23  <Target Name="_CopySSLDLL" Inputs="@(_SSLDLL)" Outputs="@(_SSLDLL->'$(OutDir)%(Filename)%(Extension)')" AfterTargets="Build">
24    <Copy SourceFiles="@(_SSLDLL)" DestinationFolder="$(OutDir)" />
25  </Target>
26  <Target Name="_CleanSSLDLL" BeforeTargets="Clean">
27    <Delete Files="@(_SSLDLL->'$(OutDir)%(Filename)%(Extension)')" TreatErrorsAsWarnings="true" />
28  </Target>
29</Project>