1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?xml version="1.0" encoding="utf-8"?>
- <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ImportGroup Label="PropertySheets">
- <Import Project="downloadpackage.task" Condition=" '$(downloadpackagetask_Imported)' == '' " />
- </ImportGroup>
- <!--
- Download Target.
- Name must be unique.
- By design, targets are executed only once per project.
-
- Usage:
-
- package: URI
- expectfileordirectory: Skips the download and extraction if exists
- outputfolder: Folder to store a downloaded file.
- By default "$(BaseDir)libs", if empty
- outputfilename: If not empty, overrides filename from URI.
- .exe files don't get extracted
- extractto: Folder to extract an archive to
- -->
- <Target Name="opensslBinariesDownloadTarget" BeforeTargets="Build" DependsOnTargets="7za">
- <DownloadPackageTask
- package="http://files.freeswitch.org/windows/packages/openssl/$(OpenSSLVersion)/openssl-$(OpenSSLVersion)-binaries-$(Platform.ToLower())-$(Configuration.ToLower()).zip"
- expectfileordirectory="$(BaseDir)openssl-$(OpenSSLVersion)\binaries\$(Platform.ToLower())\$(Configuration.ToLower())"
- outputfolder=""
- outputfilename=""
- extractto="$(BaseDir)"
- />
- </Target>
- <Target Name="opensslHeadersDownloadTarget" BeforeTargets="Build" DependsOnTargets="7za">
- <DownloadPackageTask
- package="http://files.freeswitch.org/windows/packages/openssl/$(OpenSSLVersion)/openssl-$(OpenSSLVersion)-headers.zip"
- expectfileordirectory="$(BaseDir)openssl-$(OpenSSLVersion)\include"
- outputfolder=""
- outputfilename=""
- extractto="$(BaseDir)"
- />
- </Target>
- <PropertyGroup>
- <opensslDownloadTarget_Imported>true</opensslDownloadTarget_Imported>
- </PropertyGroup>
- </Project>
|