download_mpg123.props 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. </ImportGroup>
  6. <PropertyGroup>
  7. <downloadmpg123PropsImported>true</downloadmpg123PropsImported>
  8. </PropertyGroup>
  9. <!--
  10. Download Target.
  11. Name must be unique.
  12. By design, targets are executed only once per project.
  13. Usage:
  14. package: URI
  15. expectfileordirectory: Skips the download and extraction if exists
  16. outputfolder: Folder to store a downloaded file.
  17. By default "$(BaseDir)libs", if empty
  18. outputfilename: If not empty, overrides filename from URI.
  19. .exe files don't get extracted
  20. extractto: Folder to extract an archive to
  21. moveafter: Move directory. A pipe separated string "FromPath|ToPath"
  22. -->
  23. <Target Name="mpg123DownloadTarget" BeforeTargets="CustomBuild;PreBuildEvent;" DependsOnTargets="7za">
  24. <DownloadPackageTask
  25. package="http://files.freeswitch.org/downloads/libs/mpg123-1.14.4.tar.bz2"
  26. expectfileordirectory="$(BaseDir)libs\libmpg123\Makefile.am"
  27. outputfolder=""
  28. outputfilename=""
  29. extractto="$(BaseDir)libs\"
  30. moveafter="mpg123-1.14.4|libmpg123"
  31. />
  32. </Target>
  33. <Target Name="mpg123MoveTarget" BeforeTargets="CustomBuild;PreBuildEvent;" DependsOnTargets="mpg123DownloadTarget">
  34. </Target>
  35. </Project>