123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?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"
- expectfileordirectory="$(fliteLibDir)\flite\flite.h"
- outputfolder=""
- outputfilename=""
- extractto="$(BaseDir)libs"
- moveafter="flite-$(fliteVersion)\include|flite-$(fliteVersion)\flite"
- />
- </Target>
- <ItemDefinitionGroup>
- <ClCompile>
- <AdditionalIncludeDirectories>$(fliteLibDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <AdditionalLibraryDirectories>$(fliteLibDir)\binaries\$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>flite.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- </Project>
|