download_ffmpeg.props 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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="ffmpeg-version.props" Condition=" '$(ffmpegVersionImported)' == '' " />
  6. </ImportGroup>
  7. <PropertyGroup>
  8. <downloadFfmpegPropsImported>true</downloadFfmpegPropsImported>
  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. -->
  23. <Target Name="ffmpegDownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
  24. <DownloadPackageTask
  25. package="http://files.freeswitch.org/downloads/libs/ffmpeg-$(ffmpegVersion).tar.bz2"
  26. expectfileordirectory="$(BaseDir)libs\ffmpeg-$(ffmpegVersion)\configure"
  27. outputfolder=""
  28. outputfilename=""
  29. extractto="$(BaseDir)libs\"
  30. />
  31. </Target>
  32. </Project>