aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmake/vcpkg_find_acquire_program.cmake
diff options
context:
space:
mode:
authorJacob Zhong <cmpute@qq.com>2018-03-07 17:57:16 +0800
committerAlexander Karatarakis <alkarata@microsoft.com>2018-04-02 18:48:14 -0700
commit892f7052f943570eb5d8da991ace01725323c695 (patch)
treedacf0e811d54fdf08a76f8bbd6d6b599c11fc982 /scripts/cmake/vcpkg_find_acquire_program.cmake
parentadccba04db25b3e3bd44c58a9d2cbc1366e53fde (diff)
downloadvcpkg-892f7052f943570eb5d8da991ace01725323c695.tar.gz
vcpkg-892f7052f943570eb5d8da991ace01725323c695.zip
[vcpkg] Add support of external downloader aria2
Diffstat (limited to 'scripts/cmake/vcpkg_find_acquire_program.cmake')
-rw-r--r--scripts/cmake/vcpkg_find_acquire_program.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_find_acquire_program.cmake b/scripts/cmake/vcpkg_find_acquire_program.cmake
index 0352b1890..ef0e1584f 100644
--- a/scripts/cmake/vcpkg_find_acquire_program.cmake
+++ b/scripts/cmake/vcpkg_find_acquire_program.cmake
@@ -25,6 +25,7 @@
## - NASM
## - NINJA
## - YASM
+## - ARIA2 (Downloader)
##
## Note that msys2 has a dedicated helper function: [`vcpkg_acquire_msys`](vcpkg_acquire_msys.md).
##
@@ -178,6 +179,13 @@ function(vcpkg_find_acquire_program VAR)
set(URL "http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.14.windows.bin.zip")
set(ARCHIVE "doxygen-1.8.14.windows.bin.zip")
set(HASH d0d706501e7112045b1f401f22d12a2c8d9b7728edee9ad1975a17dff914c16494ae48a70beab6f6304643779935843f268c7afed3b9da7d403b5cb11cac0c50)
+ # Download Tools
+ elseif(VAR MATCHES "ARIA2")
+ set(PROGNAME aria2c)
+ set(PATHS ${DOWNLOADS}/tools/aria2c/aria2-1.33.1-win-32bit-build1)
+ set(URL "https://github.com/aria2/aria2/releases/download/release-1.33.1/aria2-1.33.1-win-32bit-build1.zip")
+ set(ARCHIVE "aria2-1.33.1-win-32bit-build1.zip")
+ set(HASH 2456176ba3d506a07cf0cc4f61f080e1ff8cb4106426d66f354c5bb67a9a8720b5ddb26904275e61b1f623c932355f7dcde4cd17556cc895f11293c23c3a9bf3)
else()
message(FATAL "unknown tool ${VAR} -- unable to acquire.")
endif()