Skip to content

Mirror third-party source archives to a stable location on S3. #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 8, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions third-party/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
add_custom_target(therock-third-party)

# No-dep third party libraries (alphabetical)
add_subdirectory(boost)
add_subdirectory(eigen)
Expand Down
5 changes: 4 additions & 1 deletion third-party/FunctionalPlus/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
therock_subproject_fetch(therock-FunctionalPlus-sources
CMAKE_PROJECT
URL https://github.com/Dobiasd/FunctionalPlus/archive/refs/tags/v0.2.25.tar.gz
# Originally mirrored from: https://github.com/Dobiasd/FunctionalPlus/archive/refs/tags/v0.2.25.tar.gz
URL https://rocm-third-party-deps.s3.us-east-2.amazonaws.com/FunctionalPlus-0.2.25.tar.gz
URL_HASH SHA256=9b5e24bbc92f43b977dc83efbc173bcf07dbe07f8718fc2670093655b56fcee3
)

Expand All @@ -12,3 +13,5 @@ therock_cmake_subproject_declare(therock-FunctionalPlus
therock_cmake_subproject_provide_package(
therock-FunctionalPlus FunctionalPlus lib/cmake/FunctionalPlus)
therock_cmake_subproject_activate(therock-FunctionalPlus)

add_dependencies(therock-third-party therock-FunctionalPlus)
7 changes: 4 additions & 3 deletions third-party/boost/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ set(_download_stamp "${_source_dir}/download.stamp")

therock_subproject_fetch(boost-sources
SOURCE_DIR "${_source_dir}"
# Note: For some reason the corresponding git repo is hundreds of MB, even
# when shallow-fetched. So just use a source snapshot.
URL "https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.bz2"
# Originally mirrored from: "https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.bz2"
URL "https://rocm-third-party-deps.s3.us-east-2.amazonaws.com/boost_1_87_0.tar.bz2"
URL_HASH "SHA256=af57be25cb4c4f4b413ed692fe378affb4352ea50fbe294a11ef548f4d527d89"
TOUCH "${_download_stamp}"
)
Expand All @@ -40,3 +39,5 @@ therock_cmake_subproject_provide_package(therock-boost boost_filesystem "lib/cma
therock_cmake_subproject_provide_package(therock-boost boost_headers "lib/cmake/boost_headers-${_boost_version}")
therock_cmake_subproject_provide_package(therock-boost boost_system "lib/cmake/boost_system-${_boost_version}")
therock_cmake_subproject_activate(therock-boost)

add_dependencies(therock-third-party therock-boost)
5 changes: 4 additions & 1 deletion third-party/eigen/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
therock_subproject_fetch(therock-eigen-sources
CMAKE_PROJECT
URL https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2
# Originally mirrored from: https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2
URL https://rocm-third-party-deps.s3.us-east-2.amazonaws.com/eigen-3.4.0.tar.bz2
URL_HASH SHA256=b4c198460eba6f28d34894e3a5710998818515104d6e74e5cc331ce31e46e626
)

Expand All @@ -11,3 +12,5 @@ therock_cmake_subproject_declare(therock-eigen
)
therock_cmake_subproject_provide_package(therock-eigen Eigen3 share/eigen3/cmake)
therock_cmake_subproject_activate(therock-eigen)

add_dependencies(therock-third-party therock-eigen)
5 changes: 4 additions & 1 deletion third-party/fmt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
therock_subproject_fetch(therock-fmt-sources
CMAKE_PROJECT
URL https://github.com/fmtlib/fmt/releases/download/11.1.3/fmt-11.1.3.zip
# Originally mirrored from: https://github.com/fmtlib/fmt/releases/download/11.1.3/fmt-11.1.3.zip
URL https://rocm-third-party-deps.s3.us-east-2.amazonaws.com/fmt-11.1.3.zip
URL_HASH SHA256=7df2fd3426b18d552840c071c977dc891efe274051d2e7c47e2c83c3918ba6df
)

Expand All @@ -15,3 +16,5 @@ therock_cmake_subproject_declare(therock-fmt
therock_cmake_subproject_provide_package(
therock-fmt fmt lib/cmake/fmt)
therock_cmake_subproject_activate(therock-fmt)

add_dependencies(therock-third-party therock-fmt)
5 changes: 4 additions & 1 deletion third-party/frugally-deep/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
therock_subproject_fetch(therock-frugally-deep-sources
CMAKE_PROJECT
URL https://github.com/Dobiasd/frugally-deep/archive/refs/tags/v0.16.2.tar.gz
# Originally mirrored from: https://github.com/Dobiasd/frugally-deep/archive/refs/tags/v0.16.2.tar.gz
URL https://rocm-third-party-deps.s3.us-east-2.amazonaws.com/frugally-deep-0.16.2.tar.gz
URL_HASH SHA256=b16af09606dcf02359de53b7c47323baaeda9a174e1c87e126c3127c55571971
)

Expand All @@ -16,3 +17,5 @@ therock_cmake_subproject_declare(therock-frugally-deep
therock_cmake_subproject_provide_package(
therock-frugally-deep frugally-deep lib/cmake/frugally-deep)
therock_cmake_subproject_activate(therock-frugally-deep)

add_dependencies(therock-third-party therock-frugally-deep)
5 changes: 4 additions & 1 deletion third-party/msgpack-cxx/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
therock_subproject_fetch(therock-msgpack-cxx-sources
CMAKE_PROJECT
URL https://github.com/msgpack/msgpack-c/releases/download/cpp-7.0.0/msgpack-cxx-7.0.0.tar.gz
# Originally mirrored from: https://github.com/msgpack/msgpack-c/releases/download/cpp-7.0.0/msgpack-cxx-7.0.0.tar.gz
URL https://rocm-third-party-deps.s3.us-east-2.amazonaws.com/msgpack-cxx-7.0.0.tar.gz
URL_HASH SHA256=7504b7af7e7b9002ce529d4f941e1b7fb1fb435768780ce7da4abaac79bb156f
)

Expand All @@ -14,3 +15,5 @@ therock_cmake_subproject_declare(therock-msgpack-cxx
therock_cmake_subproject_provide_package(
therock-msgpack-cxx msgpack-cxx lib/cmake/msgpack-cxx)
therock_cmake_subproject_activate(therock-msgpack-cxx)

add_dependencies(therock-third-party therock-msgpack-cxx)
4 changes: 2 additions & 2 deletions third-party/nlohmann-json/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
therock_subproject_fetch(therock-nlohmann-json-sources
CMAKE_PROJECT
# Note: For some reason the corresponding git repo is hundreds of MB, even
# when shallow-fetched. So just use a source snapshot.
URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz
URL_HASH SHA256=d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d
)
Expand All @@ -15,3 +13,5 @@ therock_cmake_subproject_declare(therock-nlohmann-json
therock_cmake_subproject_provide_package(
therock-nlohmann-json nlohmann_json share/cmake/nlohmann_json)
therock_cmake_subproject_activate(therock-nlohmann-json)

add_dependencies(therock-third-party therock-nlohmann-json)