download_sounds.props 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project 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="sound_tools.props" Condition=" '$(sounds_dirImported)' == '' "/>
  6. </ImportGroup>
  7. <PropertyGroup>
  8. <SoundSuffix>$(SoundPrimaryName.Replace("-","_"))$(SoundQuality)</SoundSuffix>
  9. </PropertyGroup>
  10. <Target Name="DownloadSoundPackage" BeforeTargets="Build" DependsOnTargets="7za">
  11. <GetSoundFileNameTask
  12. SoundPrimaryName="$(SoundPrimaryName)"
  13. SoundQuality="$(SoundQuality)"
  14. >
  15. <Output PropertyName="SoundFileName" TaskParameter="SoundFileName" />
  16. </GetSoundFileNameTask>
  17. <Message Importance="High" Text="SoundFileName is set to: $(SoundFileName)"/>
  18. <DownloadPackageTask
  19. package="http://files.freeswitch.org/releases/sounds/$(SoundFileName)"
  20. expectfileordirectory="$(SoundsDir)\$(ExpectRelative)"
  21. outputfolder=""
  22. outputfilename=""
  23. extractto="$(SoundsDir)"
  24. />
  25. </Target>
  26. </Project>