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