2017-03-15 18:19:59 +08:00
|
|
|
function(download_ippicv root_var)
|
|
|
|
set(${root_var} "" PARENT_SCOPE)
|
|
|
|
|
|
|
|
# Commit SHA in the opencv_3rdparty repo
|
2023-10-26 01:01:19 +08:00
|
|
|
set(IPPICV_COMMIT "0cc4aa06bf2bef4b05d237c69a5a96b9cd0cb85a")
|
2017-03-15 18:19:59 +08:00
|
|
|
# Define actual ICV versions
|
|
|
|
if(APPLE)
|
|
|
|
set(OPENCV_ICV_PLATFORM "macosx")
|
2017-04-13 20:50:23 +08:00
|
|
|
set(OPENCV_ICV_PACKAGE_SUBDIR "ippicv_mac")
|
2023-10-26 01:01:19 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2021.9.1_mac_intel64_20230919_general.tgz")
|
|
|
|
set(OPENCV_ICV_HASH "14f01c5a4780bfae9dde9b0aaf5e56fc")
|
2017-03-15 18:19:59 +08:00
|
|
|
elseif((UNIX AND NOT ANDROID) OR (UNIX AND ANDROID_ABI MATCHES "x86"))
|
|
|
|
set(OPENCV_ICV_PLATFORM "linux")
|
|
|
|
set(OPENCV_ICV_PACKAGE_SUBDIR "ippicv_lnx")
|
2017-04-13 20:50:23 +08:00
|
|
|
if(X86_64)
|
2023-10-26 01:01:19 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2021.10.0_lnx_intel64_20230919_general.tgz")
|
|
|
|
set(OPENCV_ICV_HASH "606a19b207ebedfe42d59fd916cc4850")
|
2017-04-13 20:50:23 +08:00
|
|
|
else()
|
2023-10-26 01:01:19 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2021.10.0_lnx_ia32_20230919_general.tgz")
|
|
|
|
set(OPENCV_ICV_HASH "ea08487b810baad2f68aca87b74a2db9")
|
2017-04-13 20:50:23 +08:00
|
|
|
endif()
|
2017-03-15 18:19:59 +08:00
|
|
|
elseif(WIN32 AND NOT ARM)
|
|
|
|
set(OPENCV_ICV_PLATFORM "windows")
|
|
|
|
set(OPENCV_ICV_PACKAGE_SUBDIR "ippicv_win")
|
2017-04-13 20:50:23 +08:00
|
|
|
if(X86_64)
|
2023-10-26 01:01:19 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2021.10.0_win_intel64_20230919_general.zip")
|
|
|
|
set(OPENCV_ICV_HASH "538a819ec84193a9c9f3c0f8df0be8b7")
|
2017-04-13 20:50:23 +08:00
|
|
|
else()
|
2023-10-26 01:01:19 +08:00
|
|
|
set(OPENCV_ICV_NAME "ippicv_2021.10.0_win_ia32_20230919_general.zip")
|
|
|
|
set(OPENCV_ICV_HASH "8ff93c69415ab0835cc1e94dc5660f5d")
|
2017-04-13 20:50:23 +08:00
|
|
|
endif()
|
2017-03-15 18:19:59 +08:00
|
|
|
else()
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(THE_ROOT "${OpenCV_BINARY_DIR}/3rdparty/ippicv")
|
|
|
|
ocv_download(FILENAME ${OPENCV_ICV_NAME}
|
|
|
|
HASH ${OPENCV_ICV_HASH}
|
|
|
|
URL
|
|
|
|
"${OPENCV_IPPICV_URL}"
|
|
|
|
"$ENV{OPENCV_IPPICV_URL}"
|
|
|
|
"https://raw.githubusercontent.com/opencv/opencv_3rdparty/${IPPICV_COMMIT}/ippicv/"
|
|
|
|
DESTINATION_DIR "${THE_ROOT}"
|
2017-03-28 23:21:13 +08:00
|
|
|
ID IPPICV
|
2017-03-15 18:19:59 +08:00
|
|
|
STATUS res
|
|
|
|
UNPACK RELATIVE_URL)
|
|
|
|
|
|
|
|
if(res)
|
|
|
|
set(${root_var} "${THE_ROOT}/${OPENCV_ICV_PACKAGE_SUBDIR}" PARENT_SCOPE)
|
|
|
|
endif()
|
|
|
|
endfunction()
|