2
0

flite.props 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ImportGroup Label="PropertySheets">
  4. <Import Project="flite-version.props" Condition=" '$(fliteVersionImported)' == '' "/>
  5. <Import Project="downloadpackage.task" Condition=" '$(downloadpackagetask_Imported)' == '' " />
  6. </ImportGroup>
  7. <PropertyGroup Label="UserMacros">
  8. <fliteLibDir>$(BaseDir)libs\flite-$(fliteVersion)</fliteLibDir>
  9. </PropertyGroup>
  10. <!--
  11. Download Target.
  12. Name must be unique.
  13. By design, targets are executed only once per project.
  14. Usage:
  15. package: URI
  16. expectfileordirectory: Skips the download and extraction if exists
  17. outputfolder: Folder to store a downloaded file.
  18. By default "$(BaseDir)libs", if empty
  19. outputfilename: If not empty, overrides filename from URI.
  20. .exe files don't get extracted
  21. extractto: Folder to extract an archive to
  22. -->
  23. <Target Name="flite-binariesTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
  24. <DownloadPackageTask
  25. package="http://files.freeswitch.org/windows/packages/flite/$(fliteVersion)/flite-$(fliteVersion)-binaries-$(Platform.ToLower())-$(Configuration.ToLower()).zip"
  26. expectfileordirectory="$(fliteLibDir)\binaries\$(Platform.ToLower())\$(Configuration.ToLower())\flite.lib"
  27. outputfolder=""
  28. outputfilename=""
  29. extractto="$(BaseDir)libs"
  30. />
  31. </Target>
  32. <Target Name="flite-headersTarget" BeforeTargets="CustomBuild" DependsOnTargets="7za">
  33. <DownloadPackageTask
  34. package="http://files.freeswitch.org/windows/packages/flite/$(fliteVersion)/flite-$(fliteVersion)-headers.zip"
  35. expectfileordirectory="$(fliteLibDir)\flite\flite.h"
  36. outputfolder=""
  37. outputfilename=""
  38. extractto="$(BaseDir)libs"
  39. moveafter="flite-$(fliteVersion)\include|flite-$(fliteVersion)\flite"
  40. />
  41. </Target>
  42. <ItemDefinitionGroup>
  43. <ClCompile>
  44. <AdditionalIncludeDirectories>$(fliteLibDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  45. </ClCompile>
  46. <Link>
  47. <AdditionalLibraryDirectories>$(fliteLibDir)\binaries\$(Platform)\$(Configuration)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  48. <AdditionalDependencies>flite.lib;%(AdditionalDependencies)</AdditionalDependencies>
  49. </Link>
  50. </ItemDefinitionGroup>
  51. </Project>