freeswitch/w32/download_sofia-sip.props

42 lines
1.4 KiB
XML

<?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>
<PropertyGroup>
<downloadSofiaSipPropsImported>true</downloadSofiaSipPropsImported>
</PropertyGroup>
<!--
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="SofiaSipDownloadTarget" BeforeTargets="CustomBuild;PreBuildEvent;" DependsOnTargets="7za">
<DownloadPackageTask
package="https://github.com/freeswitch/sofia-sip/archive/master.zip"
expectfileordirectory="$(BaseDir)libs\sofia-sip\configure.ac"
outputfolder=""
outputfilename="sofia-sip-$(SofiaSipVersion).zip"
extractto="$(BaseDir)libs\"
moveafter="sofia-sip-$(SofiaSipVersion)|sofia-sip"
/>
</Target>
</Project>