download_sqlite.props 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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="downloadpackage.task" Condition=" '$(downloadpackagetask_Imported)' == '' " />
  5. </ImportGroup>
  6. <PropertyGroup>
  7. <downloadsqlitePropsImported>true</downloadsqlitePropsImported>
  8. <sqliteVersion>3400000</sqliteVersion>
  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="sqliteDownloadTarget" BeforeTargets="CustomBuild;PreBuildEvent;" DependsOnTargets="7za">
  24. <DownloadPackageTask
  25. package="http://files.freeswitch.org/downloads/libs/sqlite-amalgamation-$(sqliteVersion).zip"
  26. expectfileordirectory="$(BaseDir)libs\sqlite\sqlite3.c"
  27. outputfolder=""
  28. outputfilename=""
  29. extractto="$(BaseDir)libs\"
  30. moveafter="sqlite-amalgamation-$(sqliteVersion)|sqlite"
  31. />
  32. </Target>
  33. </Project>