openssl.download.target 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. <!--
  7. Download Target.
  8. Name must be unique.
  9. By design, targets are executed only once per project.
  10. Usage:
  11. package: URI
  12. expectfileordirectory: Skips the download and extraction if exists
  13. outputfolder: Folder to store a downloaded file.
  14. By default "$(BaseDir)libs", if empty
  15. outputfilename: If not empty, overrides filename from URI.
  16. .exe files don't get extracted
  17. extractto: Folder to extract an archive to
  18. -->
  19. <Target Name="opensslBinariesDownloadTarget" BeforeTargets="Build" DependsOnTargets="7za">
  20. <DownloadPackageTask
  21. package="http://files.freeswitch.org/windows/packages/openssl/$(OpenSSLVersion)/openssl-$(OpenSSLVersion)-binaries-$(Platform.ToLower())-$(Configuration.ToLower()).zip"
  22. expectfileordirectory="$(BaseDir)openssl-$(OpenSSLVersion)\binaries\$(Platform.ToLower())\$(Configuration.ToLower())"
  23. outputfolder=""
  24. outputfilename=""
  25. extractto="$(BaseDir)"
  26. />
  27. </Target>
  28. <Target Name="opensslHeadersDownloadTarget" BeforeTargets="Build" DependsOnTargets="7za">
  29. <DownloadPackageTask
  30. package="http://files.freeswitch.org/windows/packages/openssl/$(OpenSSLVersion)/openssl-$(OpenSSLVersion)-headers.zip"
  31. expectfileordirectory="$(BaseDir)openssl-$(OpenSSLVersion)\include"
  32. outputfolder=""
  33. outputfilename=""
  34. extractto="$(BaseDir)"
  35. />
  36. </Target>
  37. <PropertyGroup>
  38. <opensslDownloadTarget_Imported>true</opensslDownloadTarget_Imported>
  39. </PropertyGroup>
  40. </Project>