2018-04-01 12:51:34 -04:00
|
|
|
<?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="flite-version.props" Condition=" '$(fliteVersionImported)' == '' "/>
|
|
|
|
<Import Project="downloadpackage.task" Condition=" '$(downloadpackagetask_Imported)' == '' " />
|
|
|
|
</ImportGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Label="UserMacros">
|
|
|
|
<fliteLibDir>$(BaseDir)libs\flite-$(fliteVersion)</fliteLibDir>
|
|
|
|
</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="flite-binariesTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
|
|
|
|
<DownloadPackageTask
|
|
|
|
package="http://files.freeswitch.org/windows/packages/flite/$(fliteVersion)/flite-$(fliteVersion)-binaries-$(Platform.ToLower())-$(Configuration.ToLower()).zip"
|
|
|
|
expectfileordirectory="$(fliteLibDir)\binaries\$(Platform.ToLower())\$(Configuration.ToLower())\flite.lib"
|
|
|
|
outputfolder=""
|
|
|
|
outputfilename=""
|
|
|
|
extractto="$(BaseDir)libs"
|
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="flite-headersTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
|
|
|
|
<DownloadPackageTask
|
|
|
|
package="http://files.freeswitch.org/windows/packages/flite/$(fliteVersion)/flite-$(fliteVersion)-headers.zip"
|
2018-08-29 17:41:12 -04:00
|
|
|
expectfileordirectory="$(fliteLibDir)\flite\flite.h"
|
2018-04-01 12:51:34 -04:00
|
|
|
outputfolder=""
|
|
|
|
outputfilename=""
|
|
|
|
extractto="$(BaseDir)libs"
|
2018-08-29 17:41:12 -04:00
|
|
|
moveafter="flite-$(fliteVersion)\include|flite-$(fliteVersion)\flite"
|
2018-04-01 12:51:34 -04:00
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
2018-08-29 17:41:12 -04:00
|
|
|
<AdditionalIncludeDirectories>$(fliteLibDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
2018-04-01 12:51:34 -04:00
|
|
|
</ClCompile>
|
|
|
|
<Link>
|
|
|
|
<AdditionalLibraryDirectories>$(fliteLibDir)\binaries\$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
|
|
<AdditionalDependencies>flite.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
|
|
</Link>
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
|
|
|
</Project>
|