mirror of
https://github.com/avast/retdec.git
synced 2024-12-18 10:56:43 +00:00
deps: move deps' URL and hashes to separate cmake file.
This commit is contained in:
parent
77e2fb5695
commit
cb019aa1f5
44
cmake/deps.cmake
Normal file
44
cmake/deps.cmake
Normal file
@ -0,0 +1,44 @@
|
||||
|
||||
set(CAPSTONE_URL
|
||||
"https://github.com/aquynh/capstone/archive/bc8a649b35188786754ea1b0bddd5cb48a039162.zip"
|
||||
CACHE STRING "URL of Capstone archive to use."
|
||||
)
|
||||
set(CAPSTONE_ARCHIVE_SHA256 "7d3075bce1f5622279c16a6f62fe8c548d4544bfc82292f6bf43907d0317fd10")
|
||||
|
||||
set(GOOGLETEST_URL
|
||||
"https://github.com/google/googletest/archive/90a443f9c2437ca8a682a1ac625eba64e1d74a8a.zip"
|
||||
CACHE STRING "URL of Googletest archive to use."
|
||||
)
|
||||
set(GOOGLETEST_ARCHIVE_SHA256 "6fb9a49ad77656c860cfdafbb3148a91f076a3a8bda9c6d8809075c832549dd4")
|
||||
|
||||
set(KEYSTONE_URL
|
||||
"https://github.com/keystone-engine/keystone/archive/d7ba8e378e5284e6384fc9ecd660ed5f6532e922.zip"
|
||||
CACHE STRING "URL of Keystone archive to use."
|
||||
)
|
||||
set(KEYSTONE_ARCHIVE_SHA256 "13bd00e062e9c778fe76aaab5c163348b3c9457c0e9b2a4c2fb3e2d8747694ca")
|
||||
|
||||
set(LLVM_URL
|
||||
"https://github.com/avast/llvm/archive/d17df7fb9a1d585fdfa3643e666506d1bead4443.zip"
|
||||
CACHE STRING "URL of LLVM archive to use."
|
||||
)
|
||||
set(LLVM_ARCHIVE_SHA256 "904cffe42bffac3030df0a6bb07b0ccc9c221ac46d7621a49a5f400196e27f3e")
|
||||
|
||||
# Commit for tag 1.1.1c
|
||||
set(OPENSSL_URL
|
||||
"https://github.com/openssl/openssl/archive/97ace46e11dba4c4c2b7cb67140b6ec152cfaaf4.zip"
|
||||
CACHE STRING "URL of OpenSSL archive to use."
|
||||
)
|
||||
set(OPENSSL_ARCHIVE_SHA256 "f093df5cfd7521d8f6a09f250d7e69159d1001c47419130e806488de8a6312d8")
|
||||
|
||||
# 3.11.0
|
||||
set(YARA_URL
|
||||
"https://github.com/VirusTotal/yara/archive/b9f925bb4e2b998bd6bb2f2e3cc2087c62fdd5b9.zip"
|
||||
CACHE STRING "URL of Yara archive to use."
|
||||
)
|
||||
set(YARA_ARCHIVE_SHA256 "8ebec236ede6f20f27ad597452a02dcc54ac3c73f09fea8c93c3a6bf10fbc890")
|
||||
|
||||
set(YARAMOD_URL
|
||||
"https://github.com/avast/yaramod/archive/v3.0.1.zip"
|
||||
CACHE STRING "URL of YaraMod archive to use."
|
||||
)
|
||||
set(YARAMOD_ARCHIVE_SHA256 "f40c168996e9a137cfd4d83181b05bb92d8b1c4615aad923b48ab13f2aca1129")
|
@ -52,6 +52,10 @@ option(RETDEC_ENABLE_UNPACKERTOOL "" OFF)
|
||||
option(RETDEC_ENABLE_UTILS "" OFF)
|
||||
option(RETDEC_ENABLE_YARACPP "" OFF)
|
||||
|
||||
# Dependency options.
|
||||
#
|
||||
include(${PROJECT_SOURCE_DIR}/cmake/deps.cmake)
|
||||
|
||||
# Default: ALL build is enabled.
|
||||
#
|
||||
set(RETDEC_ENABLE_ALL ON)
|
||||
|
4
deps/capstone/CMakeLists.txt
vendored
4
deps/capstone/CMakeLists.txt
vendored
@ -52,8 +52,8 @@ else()
|
||||
message(STATUS "Capstone: using remote Capstone revision.")
|
||||
|
||||
ExternalProject_Add(capstone-project
|
||||
URL https://github.com/aquynh/capstone/archive/bc8a649b35188786754ea1b0bddd5cb48a039162.zip
|
||||
URL_HASH SHA256=7d3075bce1f5622279c16a6f62fe8c548d4544bfc82292f6bf43907d0317fd10
|
||||
URL ${CAPSTONE_URL}
|
||||
URL_HASH SHA256=${CAPSTONE_ARCHIVE_SHA256}
|
||||
DOWNLOAD_NAME capstone.zip
|
||||
CMAKE_ARGS
|
||||
# This does not work on MSVC, but may be useful on Linux.
|
||||
|
4
deps/googletest/CMakeLists.txt
vendored
4
deps/googletest/CMakeLists.txt
vendored
@ -37,8 +37,8 @@ else()
|
||||
message(STATUS "Googletest: using remote Googletest revision.")
|
||||
|
||||
ExternalProject_Add(googletest
|
||||
URL https://github.com/google/googletest/archive/90a443f9c2437ca8a682a1ac625eba64e1d74a8a.zip
|
||||
URL_HASH SHA256=6fb9a49ad77656c860cfdafbb3148a91f076a3a8bda9c6d8809075c832549dd4
|
||||
URL ${GOOGLETEST_URL}
|
||||
URL_HASH SHA256=${GOOGLETEST_ARCHIVE_SHA256}
|
||||
DOWNLOAD_NAME googletest.zip
|
||||
CMAKE_ARGS
|
||||
# This does not work on MSVC, but is useful on Linux.
|
||||
|
4
deps/keystone/CMakeLists.txt
vendored
4
deps/keystone/CMakeLists.txt
vendored
@ -36,8 +36,8 @@ else()
|
||||
message(STATUS "Keystone: using remote Keystone revision.")
|
||||
|
||||
ExternalProject_Add(keystone-project
|
||||
URL https://github.com/keystone-engine/keystone/archive/d7ba8e378e5284e6384fc9ecd660ed5f6532e922.zip
|
||||
URL_HASH SHA256=13bd00e062e9c778fe76aaab5c163348b3c9457c0e9b2a4c2fb3e2d8747694ca
|
||||
URL ${KEYSTONE_URL}
|
||||
URL_HASH SHA256=${KEYSTONE_ARCHIVE_SHA256}
|
||||
DOWNLOAD_NAME keystone.zip
|
||||
CMAKE_ARGS
|
||||
# This does not work on MSVC, but may be useful on Linux.
|
||||
|
4
deps/llvm/CMakeLists.txt
vendored
4
deps/llvm/CMakeLists.txt
vendored
@ -97,8 +97,8 @@ else()
|
||||
message(STATUS "LLVM: using remote LLVM revision.")
|
||||
|
||||
ExternalProject_Add(llvm-project
|
||||
URL https://github.com/avast/llvm/archive/d17df7fb9a1d585fdfa3643e666506d1bead4443.zip
|
||||
URL_HASH SHA256=904cffe42bffac3030df0a6bb07b0ccc9c221ac46d7621a49a5f400196e27f3e
|
||||
URL ${LLVM_URL}
|
||||
URL_HASH SHA256=${LLVM_ARCHIVE_SHA256}
|
||||
DOWNLOAD_NAME llvm.zip
|
||||
CMAKE_ARGS
|
||||
# Force a release build (we don't need to debug LLVM).
|
||||
|
3
deps/openssl/CMakeLists.txt
vendored
3
deps/openssl/CMakeLists.txt
vendored
@ -126,9 +126,6 @@ set(OPENSSL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/openssl")
|
||||
set(OPENSSL_SRC_DIR "${OPENSSL_PREFIX}/src/openssl")
|
||||
set(OPENSSL_INSTALL_DIR "${OPENSSL_PREFIX}/src/openssl-install")
|
||||
set(OPENSSL_VERSION "1.1.1c")
|
||||
# Commit for tag 1.1.1c
|
||||
set(OPENSSL_URL "https://github.com/openssl/openssl/archive/97ace46e11dba4c4c2b7cb67140b6ec152cfaaf4.zip")
|
||||
set(OPENSSL_ARCHIVE_SHA256 "f093df5cfd7521d8f6a09f250d7e69159d1001c47419130e806488de8a6312d8")
|
||||
set(OPENSSL_DOWNLOAD_NAME "openssl.tar.gz")
|
||||
|
||||
set(OPENSSL_CONFIGURE_OPTIONS
|
||||
|
4
deps/yara/CMakeLists.txt
vendored
4
deps/yara/CMakeLists.txt
vendored
@ -57,8 +57,8 @@ else()
|
||||
|
||||
ExternalProject_Add(yara
|
||||
PREFIX "yara"
|
||||
URL https://github.com/VirusTotal/yara/archive/b9f925bb4e2b998bd6bb2f2e3cc2087c62fdd5b9.zip # 3.11.0
|
||||
URL_HASH SHA256=8ebec236ede6f20f27ad597452a02dcc54ac3c73f09fea8c93c3a6bf10fbc890
|
||||
URL ${YARA_URL}
|
||||
URL_HASH SHA256=${YARA_ARCHIVE_SHA256}
|
||||
DOWNLOAD_NAME yara.zip
|
||||
BUILD_IN_SOURCE 1
|
||||
# Patch the Yara sources.
|
||||
|
4
deps/yaramod/CMakeLists.txt
vendored
4
deps/yaramod/CMakeLists.txt
vendored
@ -31,8 +31,8 @@ else()
|
||||
message(STATUS "YaraMod: using remote YaraMod revision.")
|
||||
|
||||
ExternalProject_Add(yaramod-project
|
||||
URL https://github.com/avast/yaramod/archive/v3.0.0.zip
|
||||
URL_HASH SHA256=eed2c4f1c3625998298e4f3f1b838351a5969fdcf03a5eb7165ffe63b35c8d4f
|
||||
URL ${YARAMOD_URL}
|
||||
URL_HASH SHA256=${YARAMOD_ARCHIVE_SHA256}
|
||||
DOWNLOAD_NAME yaramod.zip
|
||||
CMAKE_ARGS
|
||||
# This does not work on MSVC, but may be useful on Linux.
|
||||
|
Loading…
Reference in New Issue
Block a user