-
Notifications
You must be signed in to change notification settings - Fork 0
/
zlib.download.target
51 lines (40 loc) · 1.95 KB
/
zlib.download.target
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?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="zlibBinariesDownloadTarget" BeforeTargets="CustomBuild;PreBuildEvent" DependsOnTargets="7za">
<DownloadPackageTask
package="http://files.freeswitch.org/windows/packages/zlib/$(zlibVersion)/zlib-$(zlibVersion)-binaries-$(Platform.ToLower())-$(Configuration.ToLower()).zip"
expectfileordirectory="$(BaseDir)zlib-$(zlibVersion)\binaries\$(Platform.ToLower())\$(Configuration.ToLower())\zlib.lib"
outputfolder=""
outputfilename=""
extractto="$(BaseDir)"
/>
</Target>
<Target Name="zlibHeadersDownloadTarget" BeforeTargets="CustomBuild;PreBuildEvent" DependsOnTargets="zlibBinariesDownloadTarget">
<DownloadPackageTask
package="http://files.freeswitch.org/windows/packages/zlib/$(zlibVersion)/zlib-$(zlibVersion)-headers.zip"
expectfileordirectory="$(BaseDir)zlib-$(zlibVersion)\include"
outputfolder=""
outputfilename=""
extractto="$(BaseDir)"
/>
</Target>
<PropertyGroup>
<zlibDownloadTarget_Imported>true</zlibDownloadTarget_Imported>
</PropertyGroup>
</Project>