2017-01-12 15:52:06 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-03-28 19:00:10 -04:00
|
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<ImportGroup Label="PropertySheets">
|
|
|
|
<Import Project="zlib-version.props" Condition=" '$(zlibVersionImported)' == '' "/>
|
|
|
|
<Import Project="downloadpackage.task" Condition=" '$(downloadpackagetask_Imported)' == '' " />
|
|
|
|
</ImportGroup>
|
|
|
|
|
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>
|
|
|
|
|
2018-03-28 19:00:10 -04:00
|
|
|
<PropertyGroup Label="UserMacros">
|
|
|
|
<zliblibDir>$(BaseDir)libs\zlib-$(zlibVersion)</zliblibDir>
|
|
|
|
</PropertyGroup>
|
2017-01-12 15:52:06 -05:00
|
|
|
|
2018-03-28 19:00:10 -04:00
|
|
|
<!--
|
|
|
|
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" DependsOnTargets="7za">
|
|
|
|
<DownloadPackageTask
|
2018-03-31 14:59:02 -04:00
|
|
|
package="http://files.freeswitch.org/windows/packages/zlib/$(zlibVersion)/zlib-$(zlibVersion)-binaries-$(Platform.ToLower())-$(LibraryConfiguration.ToLower()).zip"
|
|
|
|
expectfileordirectory="$(zliblibDir)\binaries\$(Platform)\$(LibraryConfiguration)\zlib.lib"
|
2018-03-28 19:00:10 -04:00
|
|
|
outputfolder=""
|
|
|
|
outputfilename=""
|
|
|
|
extractto="$(BaseDir)libs\"
|
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
<Target Name="zlibHeadersDownloadTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
|
|
|
|
<DownloadPackageTask
|
|
|
|
package="http://files.freeswitch.org/windows/packages/zlib/$(zlibVersion)/zlib-$(zlibVersion)-headers.zip"
|
|
|
|
expectfileordirectory="$(zliblibDir)\include\zlib.h"
|
|
|
|
outputfolder=""
|
|
|
|
outputfilename=""
|
|
|
|
extractto="$(BaseDir)libs\"
|
|
|
|
/>
|
|
|
|
</Target>
|
2017-01-12 15:52:06 -05:00
|
|
|
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
2018-03-28 19:00:10 -04:00
|
|
|
<AdditionalIncludeDirectories>$(SolutionDir)libs\zlib-$(zlibVersion)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2017-01-12 15:52:06 -05:00
|
|
|
<PreprocessorDefinitions>HAVE_ZLIB;ZLIB_STATICLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
|
|
</ClCompile>
|
2018-03-28 19:00:10 -04:00
|
|
|
<Link>
|
2018-03-31 14:59:02 -04:00
|
|
|
<AdditionalLibraryDirectories>$(SolutionDir)libs\zlib-$(zlibVersion)\binaries\$(Platform)\$(LibraryConfiguration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
2018-03-28 19:00:10 -04:00
|
|
|
<AdditionalDependencies>zlib.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
</Link>
|
2017-01-12 15:52:06 -05:00
|
|
|
</ItemDefinitionGroup>
|
|
|
|
</Project>
|