2
0

download_openh264.props 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ImportGroup Label="PropertySheets">
  4. <Import Project="downloadpackage.task" Condition=" '$(downloadpackagetask_Imported)' == '' " />
  5. <Import Project="solution_configuration.props" Condition=" '$(SolutionConfigurationPropsImported)' == '' " />
  6. </ImportGroup>
  7. <PropertyGroup>
  8. <downloadOpenh264PropsImported>true</downloadOpenh264PropsImported>
  9. </PropertyGroup>
  10. <!--
  11. Download Target.
  12. Name must be unique.
  13. By design, targets are executed only once per project.
  14. Usage:
  15. package: URI
  16. expectfileordirectory: Skips the download and extraction if exists
  17. outputfolder: Folder to store a downloaded file.
  18. By default "$(BaseDir)libs", if empty
  19. outputfilename: If not empty, overrides filename from URI.
  20. .exe files don't get extracted
  21. extractto: Folder to extract an archive to
  22. archivecontains: Default value is "tarball", if empty.
  23. Any different non-empty value will disable double archive extraction
  24. -->
  25. <Target Name="openh264DownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
  26. <DownloadPackageTask
  27. package="http://ciscobinary.openh264.org/openh264-1.8.0-win64.dll.bz2"
  28. expectfileordirectory="$(BaseDir)$(Platform)\$(SolutionConfiguration)\openh264.dll"
  29. outputfolder=""
  30. outputfilename="openh264.dll.bz2"
  31. extractto="$(BaseDir)$(Platform)\$(SolutionConfiguration)\"
  32. archivecontains="binary"
  33. />
  34. </Target>
  35. </Project>