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.

20 lines
1.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup>
  4. <EmguCudaNppLinkTarget>Windows runtime</EmguCudaNppLinkTarget>
  5. <EmguCudaNppBuildX86 Condition="'$(Platform)'=='AnyCPU' OR '$(Platform)'=='x86'">True</EmguCudaNppBuildX86>
  6. <EmguCudaNppBuildX64 Condition="'$(Platform)'=='AnyCPU' OR '$(Platform)'=='x64'">True</EmguCudaNppBuildX64>
  7. <EmguCudaNppErrorMessage Condition="'$(EmguCudaNppBuildX86)'=='True'">X86 or AnyCPU is targeted, but ${EMGU_NPP_NUGET_ID} nuget package do not support 32-bit. PInvoke may fail on Windows X86 platform.</EmguCudaNppErrorMessage>
  8. <EmguCudaNppDeployMessage Condition="'$(EmguCudaNppBuildX64)'=='True'">$(EmguCudaDeployMessage)x64 </EmguCudaNppDeployMessage>
  9. </PropertyGroup>
  10. <ItemGroup Condition="'$(EmguCudaNppBuildX64)'=='True'">
  11. <None Include="$(MSBuildThisFileDirectory)\x64\*.dll">
  12. <Link>x64\%(RecursiveDir)%(Filename)%(Extension)</Link>
  13. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  14. </None>
  15. </ItemGroup>
  16. <Target Name="EmguCudaNppPackageBuildImports" BeforeTargets="PrepareForBuild">
  17. <Warning Text="'$(EmguCudaNppErrorMessage)'" Condition="'$(EmguCudaNppErrorMessage)'!=''" />
  18. <Message Text="${EMGU_NPP_NUGET_ID} nuget package deploying $(EmguCudaNppDeployMessage)binary." Condition="'$(EmguCudaNppDeployMessage)'!=''" Importance="High" />
  19. <Message Text="No native binary is deployed by the ${EMGU_NPP_NUGET_ID} nuget package." Condition="'$(EmguCudaNppDeployMessage)'==''" Importance="High" />
  20. </Target>
  21. </Project>