2010-06-28 16:49:19 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2017-07-20 18:21:34 -04:00
|
|
|
<ImportGroup Label="PropertySheets">
|
2018-03-31 14:59:02 -04:00
|
|
|
<Import Project="curl-version.props" Condition=" '$(curlVersionImported)' == '' "/>
|
|
|
|
<Import Project="downloadpackage.task" Condition=" '$(downloadpackagetask_Imported)' == '' " />
|
|
|
|
<Import Project="openssl.props" />
|
|
|
|
<Import Project="zlib.props" />
|
2017-07-20 18:21:34 -04:00
|
|
|
</ImportGroup>
|
2010-06-28 16:49:19 -04:00
|
|
|
<PropertyGroup>
|
2013-01-31 16:35:44 -05:00
|
|
|
<CurlPropsImported>true</CurlPropsImported>
|
2010-06-28 16:49:19 -04:00
|
|
|
</PropertyGroup>
|
2018-03-31 14:59:02 -04:00
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<LibraryConfiguration Condition="$(Configuration.ToLower().Contains('debug'))">Debug</LibraryConfiguration>
|
|
|
|
<LibraryConfiguration Condition="$(Configuration.ToLower().Contains('release'))">Release</LibraryConfiguration>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Label="UserMacros">
|
|
|
|
<curlLibDir>$(SolutionDir)libs\curl-$(curlVersion)</curlLibDir>
|
|
|
|
</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="curlBinariesDownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
|
|
|
|
<DownloadPackageTask
|
|
|
|
package="http://files.freeswitch.org/windows/packages/curl/$(curlVersion)/curl-$(curlVersion)-binaries-$(Platform.ToLower())-$(LibraryConfiguration.ToLower()).zip"
|
|
|
|
expectfileordirectory="$(curlLibDir)\binaries\$(Platform)\$(LibraryConfiguration)\curl.lib"
|
|
|
|
outputfolder=""
|
|
|
|
outputfilename=""
|
|
|
|
extractto="$(BaseDir)libs\"
|
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
<Target Name="curlHeadersDownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
|
|
|
|
<DownloadPackageTask
|
|
|
|
package="http://files.freeswitch.org/windows/packages/curl/$(curlVersion)/curl-$(curlVersion)-headers.zip"
|
|
|
|
expectfileordirectory="$(curlLibDir)\include\curl\curl.h"
|
|
|
|
outputfolder=""
|
|
|
|
outputfilename=""
|
|
|
|
extractto="$(BaseDir)libs\"
|
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
|
2010-06-28 16:49:19 -04:00
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
2018-03-31 14:59:02 -04:00
|
|
|
<AdditionalIncludeDirectories>$(curlLibDir)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2010-06-28 16:49:19 -04:00
|
|
|
<PreprocessorDefinitions>HAVE_CURL;CURL_STATICLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
</ClCompile>
|
2018-03-31 14:59:02 -04:00
|
|
|
<Link>
|
|
|
|
<AdditionalLibraryDirectories>$(curlLibDir)\binaries\$(Platform)\$(LibraryConfiguration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
|
|
<AdditionalDependencies>curl.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
</Link>
|
2010-06-28 16:49:19 -04:00
|
|
|
</ItemDefinitionGroup>
|
2018-03-31 14:59:02 -04:00
|
|
|
|
2010-06-28 16:49:19 -04:00
|
|
|
</Project>
|