2
0

yasm.props 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <YasmPropsImported>true</YasmPropsImported>
  8. <Is64yasm Condition="$([System.Environment]::Is64BitProcess)">true</Is64yasm>
  9. <PackageToDownload Condition="'$(Is64yasm)' == 'true'">http://files.freeswitch.org/downloads/win64/yasm.exe</PackageToDownload>
  10. <PackageToDownload Condition="'$(Is64yasm)' != 'true'">http://files.freeswitch.org/downloads/win32/yasm.exe</PackageToDownload>
  11. </PropertyGroup>
  12. <!--
  13. Download Target.
  14. Name must be unique.
  15. By design, targets are executed only once per project.
  16. Usage:
  17. package: URI
  18. expectfileordirectory: Skips the download and extraction if exists
  19. outputfolder: Folder to store a downloaded file.
  20. By default "$(BaseDir)libs", if empty
  21. outputfilename: If not empty, overrides filename from URI.
  22. .exe files don't get extracted
  23. extractto: Folder to extract an archive to
  24. -->
  25. <Target Name="YasmDownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="">
  26. <Message Text="System is 64 bit." Condition="'$(Is64yasm)' == 'true'" Importance="High" />
  27. <DownloadPackageTask
  28. package="$(PackageToDownload)"
  29. expectfileordirectory="$(ProjectDir)\yasm.exe"
  30. outputfolder="$(ProjectDir)\"
  31. outputfilename=""
  32. extractto=""
  33. />
  34. </Target>
  35. </Project>