You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
2.1 KiB

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<EmguDnnCnnLinkTarget>Windows runtime</EmguDnnCnnLinkTarget>
<EmguDnnCnnBuildX86 Condition="'$(Platform)'=='AnyCPU' OR '$(Platform)'=='x86'">True</EmguDnnCnnBuildX86>
<EmguDnnCnnBuildX64 Condition="'$(Platform)'=='AnyCPU' OR '$(Platform)'=='x64'">True</EmguDnnCnnBuildX64>
<EmguDnnCnnNativeFileX64>$(MSBuildThisFileDirectory)\x64\cudnn_cnn_infer64_${CUDNN_MAJOR_VERSION}.dll</EmguDnnCnnNativeFileX64>
<EmguDnnCnnErrorMessage Condition="'$(EmguDnnCnnBuildX86)'=='True'">X86 or AnyCPU is targeted, but ${EMGU_CUDNN_CNN_NUGET_ID} nuget package do not support 32-bit. PInvoke may fail on Windows X86 platform.</EmguDnnCnnErrorMessage>
<EmguDnnCnnDeployMessage Condition="'$(EmguDnnCnnBuildX64)'=='True' AND Exists('$(EmguDnnCnnNativeFileX64)')">$(EmguCudaDeployMessage)x64 </EmguDnnCnnDeployMessage>
<EmguDnnCnnErrorMessage Condition="'$(EmguDnnCnnBuildX64)'=='True' AND !Exists('$(EmguDnnCnnNativeFileX64)')">${EMGU_CUDNN_CNN_NUGET_ID} nuget package do not contain necessary binary for $(EmguDnnCnnLinkTarget). X64 is targeted, but file $(EmguDnnCnnNativeFileX64) is missing.</EmguDnnCnnErrorMessage>
</PropertyGroup>
<ItemGroup Condition="'$(EmguDnnCnnBuildX64)'=='True' AND Exists('$(EmguDnnCnnNativeFileX64)')">
<None Include="$(MSBuildThisFileDirectory)\x64\*.dll">
<Link>x64\%(RecursiveDir)%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Target Name="EmguDnnCnnPackageBuildImports" BeforeTargets="PrepareForBuild">
<Warning Text="'$(EmguDnnCnnErrorMessage)'" Condition="'$(EmguDnnCnnErrorMessage)'!=''" />
<Message Text="${EMGU_CUDNN_CNN_NUGET_ID} nuget package deploying with $(EmguDnnCnnDeployMessage)binary" Condition="'$(EmguDnnCnnDeployMessage)'!=''" Importance="High" />
<Message Text="No native binary is deployed by the ${EMGU_CUDNN_CNN_NUGET_ID} nuget package." Condition="'$(EmguDnnCnnDeployMessage)'==''" Importance="High" />
</Target>
</Project>