chore(deps): cmake/ninja: add new versions (#1212)

This commit is contained in:
Mike Lundy 2024-06-14 13:45:57 -07:00 committed by GitHub
parent d2815388f8
commit d48f8b5c41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 820 additions and 0 deletions

View File

@ -531,6 +531,20 @@ CMAKE_SRCS = {
"cmake-3.28.4", "cmake-3.28.4",
"eb9c787e078848dc493f4f83f8a4bbec857cd1f38ab6425ce8d2776a9f6aa6fb", "eb9c787e078848dc493f4f83f8a4bbec857cd1f38ab6425ce8d2776a9f6aa6fb",
], ],
"3.28.5": [
[
"https://github.com/Kitware/CMake/releases/download/v3.28.5/cmake-3.28.5.tar.gz",
],
"cmake-3.28.5",
"a75d3487ffe817e116a2bf668bf1434af7fe5864cbd4c7e3dcf33dd1a470d659",
],
"3.28.6": [
[
"https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6.tar.gz",
],
"cmake-3.28.6",
"c39c733900affc4eb0e9688b4d1a45435a732105d9bf9cc1e75dd2b9b81a36bb",
],
"3.29.0": [ "3.29.0": [
[ [
"https://github.com/Kitware/CMake/releases/download/v3.29.0/cmake-3.29.0.tar.gz", "https://github.com/Kitware/CMake/releases/download/v3.29.0/cmake-3.29.0.tar.gz",
@ -545,6 +559,34 @@ CMAKE_SRCS = {
"cmake-3.29.1", "cmake-3.29.1",
"7fb02e8f57b62b39aa6b4cf71e820148ba1a23724888494735021e32ab0eefcc", "7fb02e8f57b62b39aa6b4cf71e820148ba1a23724888494735021e32ab0eefcc",
], ],
"3.29.2": [
[
"https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2.tar.gz",
],
"cmake-3.29.2",
"36db4b6926aab741ba6e4b2ea2d99c9193222132308b4dc824d4123cb730352e",
],
"3.29.3": [
[
"https://github.com/Kitware/CMake/releases/download/v3.29.3/cmake-3.29.3.tar.gz",
],
"cmake-3.29.3",
"252aee1448d49caa04954fd5e27d189dd51570557313e7b281636716a238bccb",
],
"3.29.4": [
[
"https://github.com/Kitware/CMake/releases/download/v3.29.4/cmake-3.29.4.tar.gz",
],
"cmake-3.29.4",
"b1b48d7100bdff0b46e8c8f6a3c86476dbe872c8df39c42b8d104298b3d56a2c",
],
"3.29.5": [
[
"https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5.tar.gz",
],
"cmake-3.29.5",
"dd63da7d763c0db455ca232f2c443f5234fe0b11f8bd6958a81d29cc987dfd6e",
],
"3.3.2": [ "3.3.2": [
[ [
"https://github.com/Kitware/CMake/releases/download/v3.3.2/cmake-3.3.2.tar.gz", "https://github.com/Kitware/CMake/releases/download/v3.3.2/cmake-3.3.2.tar.gz",

View File

@ -74,6 +74,446 @@ def prebuilt_toolchains(cmake_version, ninja_version, register_toolchains):
_ninja_toolchains(ninja_version, register_toolchains) _ninja_toolchains(ninja_version, register_toolchains)
def _cmake_toolchains(version, register_toolchains): def _cmake_toolchains(version, register_toolchains):
if "3.29.5" == version:
maybe(
http_archive,
name = "cmake-3.29.5-linux-aarch64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5-linux-aarch64.tar.gz",
],
sha256 = "6eb655ee89c50611f2370c5a3293bd2fe1920b73dff50b71fb3357d56a9d28d8",
strip_prefix = "cmake-3.29.5-linux-aarch64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.5-linux-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5-linux-x86_64.tar.gz",
],
sha256 = "92629f95e15e7c2e88726c57a984ffdc5cf248e354f7ab791bc86d2ad513903e",
strip_prefix = "cmake-3.29.5-linux-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.5-macos-universal",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5-macos-universal.tar.gz",
],
sha256 = "2efa78e6cd84a4f0276cfce83c1ad5629c9884287a673290f9f52b1c575bd3ec",
strip_prefix = "cmake-3.29.5-macos-universal/CMake.app/Contents",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.5-windows-i386",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5-windows-i386.zip",
],
sha256 = "7587b1aaab131ca6586cb241bbf1d29a4e5e322063788a8ea260cc7f492a46bd",
strip_prefix = "cmake-3.29.5-windows-i386",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.5-windows-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.5/cmake-3.29.5-windows-x86_64.zip",
],
sha256 = "f85db8361cb7eb11ceb6b2f1ee42bec7234bb8d9e487ea78c00de64771768d92",
strip_prefix = "cmake-3.29.5-windows-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
# buildifier: leave-alone
maybe(
prebuilt_toolchains_repository,
name = "cmake_3.29.5_toolchains",
repos = {
"cmake-3.29.5-linux-aarch64": [
"@platforms//cpu:aarch64",
"@platforms//os:linux",
],
"cmake-3.29.5-linux-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
"cmake-3.29.5-macos-universal": [
"@platforms//os:macos",
],
"cmake-3.29.5-windows-i386": [
"@platforms//cpu:x86_32",
"@platforms//os:windows",
],
"cmake-3.29.5-windows-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:windows",
],
},
tool = "cmake",
)
if register_toolchains:
native.register_toolchains(
"@cmake_3.29.5_toolchains//:cmake-3.29.5-linux-aarch64_toolchain",
"@cmake_3.29.5_toolchains//:cmake-3.29.5-linux-x86_64_toolchain",
"@cmake_3.29.5_toolchains//:cmake-3.29.5-macos-universal_toolchain",
"@cmake_3.29.5_toolchains//:cmake-3.29.5-windows-i386_toolchain",
"@cmake_3.29.5_toolchains//:cmake-3.29.5-windows-x86_64_toolchain",
)
return
if "3.29.4" == version:
maybe(
http_archive,
name = "cmake-3.29.4-linux-aarch64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.4/cmake-3.29.4-linux-aarch64.tar.gz",
],
sha256 = "9210619e7907b14858178743d5b7ba70ce846d98a6a65bcdbd83c08b932ba6a5",
strip_prefix = "cmake-3.29.4-linux-aarch64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.4-linux-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.4/cmake-3.29.4-linux-x86_64.tar.gz",
],
sha256 = "64e5473169dd43055fbf2c138cae6e5ec10f30a0606d24f12078e68466320cf4",
strip_prefix = "cmake-3.29.4-linux-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.4-macos-universal",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.4/cmake-3.29.4-macos-universal.tar.gz",
],
sha256 = "dbc81424c6fb9842c07fe6ad8e196cd8dd96833c706951d34d36cc5f09c9f81a",
strip_prefix = "cmake-3.29.4-macos-universal/CMake.app/Contents",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.4-windows-i386",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.4/cmake-3.29.4-windows-i386.zip",
],
sha256 = "8773df8f82a8172cfd964cc052864592d45481a636cb8b533e3736102a97c2fa",
strip_prefix = "cmake-3.29.4-windows-i386",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.4-windows-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.4/cmake-3.29.4-windows-x86_64.zip",
],
sha256 = "1c8bfbc5537553edccded62f8f03475a161280c1b64f54c887824c6eb4e773ff",
strip_prefix = "cmake-3.29.4-windows-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
# buildifier: leave-alone
maybe(
prebuilt_toolchains_repository,
name = "cmake_3.29.4_toolchains",
repos = {
"cmake-3.29.4-linux-aarch64": [
"@platforms//cpu:aarch64",
"@platforms//os:linux",
],
"cmake-3.29.4-linux-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
"cmake-3.29.4-macos-universal": [
"@platforms//os:macos",
],
"cmake-3.29.4-windows-i386": [
"@platforms//cpu:x86_32",
"@platforms//os:windows",
],
"cmake-3.29.4-windows-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:windows",
],
},
tool = "cmake",
)
if register_toolchains:
native.register_toolchains(
"@cmake_3.29.4_toolchains//:cmake-3.29.4-linux-aarch64_toolchain",
"@cmake_3.29.4_toolchains//:cmake-3.29.4-linux-x86_64_toolchain",
"@cmake_3.29.4_toolchains//:cmake-3.29.4-macos-universal_toolchain",
"@cmake_3.29.4_toolchains//:cmake-3.29.4-windows-i386_toolchain",
"@cmake_3.29.4_toolchains//:cmake-3.29.4-windows-x86_64_toolchain",
)
return
if "3.29.3" == version:
maybe(
http_archive,
name = "cmake-3.29.3-linux-aarch64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.3/cmake-3.29.3-linux-aarch64.tar.gz",
],
sha256 = "ae61d262b2771ba9cbdf1eeac288e64d6510d2f0417d2d92e27807d269ac90fa",
strip_prefix = "cmake-3.29.3-linux-aarch64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.3-linux-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.3/cmake-3.29.3-linux-x86_64.tar.gz",
],
sha256 = "90b543a30220401db0e08347af067545be158ce89ffb09b7df1516cda8617329",
strip_prefix = "cmake-3.29.3-linux-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.3-macos-universal",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.3/cmake-3.29.3-macos-universal.tar.gz",
],
sha256 = "81db032983a33dbd8da0315df4488e19999ffb63c5a900fb1c0741b14a7b78ef",
strip_prefix = "cmake-3.29.3-macos-universal/CMake.app/Contents",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.3-windows-i386",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.3/cmake-3.29.3-windows-i386.zip",
],
sha256 = "39ee04bb8c5a21fed1e4f27447b91951c8564dc2d8cf9e035368329baa4231c6",
strip_prefix = "cmake-3.29.3-windows-i386",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.3-windows-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.3/cmake-3.29.3-windows-x86_64.zip",
],
sha256 = "6423ed300e6aa1b15c4aeae9a7399157f53fc84a2fb7242ca64c8dfd83e5f8a6",
strip_prefix = "cmake-3.29.3-windows-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
# buildifier: leave-alone
maybe(
prebuilt_toolchains_repository,
name = "cmake_3.29.3_toolchains",
repos = {
"cmake-3.29.3-linux-aarch64": [
"@platforms//cpu:aarch64",
"@platforms//os:linux",
],
"cmake-3.29.3-linux-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
"cmake-3.29.3-macos-universal": [
"@platforms//os:macos",
],
"cmake-3.29.3-windows-i386": [
"@platforms//cpu:x86_32",
"@platforms//os:windows",
],
"cmake-3.29.3-windows-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:windows",
],
},
tool = "cmake",
)
if register_toolchains:
native.register_toolchains(
"@cmake_3.29.3_toolchains//:cmake-3.29.3-linux-aarch64_toolchain",
"@cmake_3.29.3_toolchains//:cmake-3.29.3-linux-x86_64_toolchain",
"@cmake_3.29.3_toolchains//:cmake-3.29.3-macos-universal_toolchain",
"@cmake_3.29.3_toolchains//:cmake-3.29.3-windows-i386_toolchain",
"@cmake_3.29.3_toolchains//:cmake-3.29.3-windows-x86_64_toolchain",
)
return
if "3.29.2" == version:
maybe(
http_archive,
name = "cmake-3.29.2-linux-aarch64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-linux-aarch64.tar.gz",
],
sha256 = "ca883c6dc3ce9eebd833804f0f940ecbbff603520cfd169ee58916dbbc23c2b8",
strip_prefix = "cmake-3.29.2-linux-aarch64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.2-linux-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-linux-x86_64.tar.gz",
],
sha256 = "0416c70cf88e8f92efcbfe292e181bc09ead7d70e29ab37b697522c01121eab5",
strip_prefix = "cmake-3.29.2-linux-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.2-macos-universal",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz",
],
sha256 = "0d670b59dddd064d24cf8c386abf3590bda2642bb169e11534cf1e3d1ae3a76a",
strip_prefix = "cmake-3.29.2-macos-universal/CMake.app/Contents",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.2-windows-i386",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-windows-i386.zip",
],
sha256 = "e51b281c9dfd1498834729b33bf49fc668ad1dadbc2eaba7b693d0f7d748450d",
strip_prefix = "cmake-3.29.2-windows-i386",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.29.2-windows-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-windows-x86_64.zip",
],
sha256 = "86b5de51f60a0e9d62be4d8ca76ea467d154083d356fcc9af1409606be341cd8",
strip_prefix = "cmake-3.29.2-windows-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
# buildifier: leave-alone
maybe(
prebuilt_toolchains_repository,
name = "cmake_3.29.2_toolchains",
repos = {
"cmake-3.29.2-linux-aarch64": [
"@platforms//cpu:aarch64",
"@platforms//os:linux",
],
"cmake-3.29.2-linux-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
"cmake-3.29.2-macos-universal": [
"@platforms//os:macos",
],
"cmake-3.29.2-windows-i386": [
"@platforms//cpu:x86_32",
"@platforms//os:windows",
],
"cmake-3.29.2-windows-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:windows",
],
},
tool = "cmake",
)
if register_toolchains:
native.register_toolchains(
"@cmake_3.29.2_toolchains//:cmake-3.29.2-linux-aarch64_toolchain",
"@cmake_3.29.2_toolchains//:cmake-3.29.2-linux-x86_64_toolchain",
"@cmake_3.29.2_toolchains//:cmake-3.29.2-macos-universal_toolchain",
"@cmake_3.29.2_toolchains//:cmake-3.29.2-windows-i386_toolchain",
"@cmake_3.29.2_toolchains//:cmake-3.29.2-windows-x86_64_toolchain",
)
return
if "3.29.1" == version: if "3.29.1" == version:
maybe( maybe(
http_archive, http_archive,
@ -294,6 +734,226 @@ def _cmake_toolchains(version, register_toolchains):
return return
if "3.28.6" == version:
maybe(
http_archive,
name = "cmake-3.28.6-linux-aarch64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-linux-aarch64.tar.gz",
],
sha256 = "7909cc2128ce9442c63ce674a0bfb0e4f4ce04cef667d887e15ad5670d594ba7",
strip_prefix = "cmake-3.28.6-linux-aarch64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.28.6-linux-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-linux-x86_64.tar.gz",
],
sha256 = "931e3c0d546ee03ca72bb147ccd9b49e3b6252f765f66bf21b9d165519940458",
strip_prefix = "cmake-3.28.6-linux-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.28.6-macos-universal",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-macos-universal.tar.gz",
],
sha256 = "e992f382a98839aefc9292142699af5d43952e3087509d7671aef0dbeb33e852",
strip_prefix = "cmake-3.28.6-macos-universal/CMake.app/Contents",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.28.6-windows-i386",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-windows-i386.zip",
],
sha256 = "29503bc5525592c95a51a0f58eea9a9e38650dbbe7bbeb1caab7fc8f4048d7c5",
strip_prefix = "cmake-3.28.6-windows-i386",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.28.6-windows-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.28.6/cmake-3.28.6-windows-x86_64.zip",
],
sha256 = "a8f2e684ead94a64fd3517a38857a5b3f7f8d68d15c49ca1143d18797eaf9cac",
strip_prefix = "cmake-3.28.6-windows-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
# buildifier: leave-alone
maybe(
prebuilt_toolchains_repository,
name = "cmake_3.28.6_toolchains",
repos = {
"cmake-3.28.6-linux-aarch64": [
"@platforms//cpu:aarch64",
"@platforms//os:linux",
],
"cmake-3.28.6-linux-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
"cmake-3.28.6-macos-universal": [
"@platforms//os:macos",
],
"cmake-3.28.6-windows-i386": [
"@platforms//cpu:x86_32",
"@platforms//os:windows",
],
"cmake-3.28.6-windows-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:windows",
],
},
tool = "cmake",
)
if register_toolchains:
native.register_toolchains(
"@cmake_3.28.6_toolchains//:cmake-3.28.6-linux-aarch64_toolchain",
"@cmake_3.28.6_toolchains//:cmake-3.28.6-linux-x86_64_toolchain",
"@cmake_3.28.6_toolchains//:cmake-3.28.6-macos-universal_toolchain",
"@cmake_3.28.6_toolchains//:cmake-3.28.6-windows-i386_toolchain",
"@cmake_3.28.6_toolchains//:cmake-3.28.6-windows-x86_64_toolchain",
)
return
if "3.28.5" == version:
maybe(
http_archive,
name = "cmake-3.28.5-linux-aarch64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.28.5/cmake-3.28.5-linux-aarch64.tar.gz",
],
sha256 = "5b4a86b456058266bd4caa9c59187fab4b1ace823acdd9741d2d24fed5a4f50b",
strip_prefix = "cmake-3.28.5-linux-aarch64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.28.5-linux-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.28.5/cmake-3.28.5-linux-x86_64.tar.gz",
],
sha256 = "c5460b8a0ecfea7c0ac99d78427e19409ea9133e29a604e1f8c0e6806a8f6934",
strip_prefix = "cmake-3.28.5-linux-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.28.5-macos-universal",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.28.5/cmake-3.28.5-macos-universal.tar.gz",
],
sha256 = "33ec6068b91a53f49e8e7378546260921e08074442b872d8f9aaa0197f0afd1b",
strip_prefix = "cmake-3.28.5-macos-universal/CMake.app/Contents",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.28.5-windows-i386",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.28.5/cmake-3.28.5-windows-i386.zip",
],
sha256 = "d311412f56d3824b1927b11c3c0324c46df3e0c7848283d92c230da8e685ac52",
strip_prefix = "cmake-3.28.5-windows-i386",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
maybe(
http_archive,
name = "cmake-3.28.5-windows-x86_64",
urls = [
"https://github.com/Kitware/CMake/releases/download/v3.28.5/cmake-3.28.5-windows-x86_64.zip",
],
sha256 = "0fbea146a782e4b82a799384a2109e46ce27f3ad70c30d3f8c9ef751e1e28040",
strip_prefix = "cmake-3.28.5-windows-x86_64",
build_file_content = _CMAKE_BUILD_FILE.format(
bin = "cmake.exe",
env = "{\"CMAKE\": \"$(execpath :cmake_bin)\"}",
),
)
# buildifier: leave-alone
maybe(
prebuilt_toolchains_repository,
name = "cmake_3.28.5_toolchains",
repos = {
"cmake-3.28.5-linux-aarch64": [
"@platforms//cpu:aarch64",
"@platforms//os:linux",
],
"cmake-3.28.5-linux-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
"cmake-3.28.5-macos-universal": [
"@platforms//os:macos",
],
"cmake-3.28.5-windows-i386": [
"@platforms//cpu:x86_32",
"@platforms//os:windows",
],
"cmake-3.28.5-windows-x86_64": [
"@platforms//cpu:x86_64",
"@platforms//os:windows",
],
},
tool = "cmake",
)
if register_toolchains:
native.register_toolchains(
"@cmake_3.28.5_toolchains//:cmake-3.28.5-linux-aarch64_toolchain",
"@cmake_3.28.5_toolchains//:cmake-3.28.5-linux-x86_64_toolchain",
"@cmake_3.28.5_toolchains//:cmake-3.28.5-macos-universal_toolchain",
"@cmake_3.28.5_toolchains//:cmake-3.28.5-windows-i386_toolchain",
"@cmake_3.28.5_toolchains//:cmake-3.28.5-windows-x86_64_toolchain",
)
return
if "3.28.4" == version: if "3.28.4" == version:
maybe( maybe(
http_archive, http_archive,
@ -8823,6 +9483,117 @@ def _cmake_toolchains(version, register_toolchains):
fail("Unsupported version: " + str(version)) fail("Unsupported version: " + str(version))
def _ninja_toolchains(version, register_toolchains): def _ninja_toolchains(version, register_toolchains):
if "1.12.1" == version:
maybe(
http_archive,
name = "ninja_1.12.1_linux",
urls = [
"https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip",
],
sha256 = "6f98805688d19672bd699fbbfa2c2cf0fc054ac3df1f0e6a47664d963d530255",
strip_prefix = "",
build_file_content = _NINJA_BUILD_FILE.format(
bin = "ninja",
env = "{\"NINJA\": \"$(execpath :ninja_bin)\"}",
),
)
maybe(
http_archive,
name = "ninja_1.12.1_linux-aarch64",
urls = [
"https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux-aarch64.zip",
],
sha256 = "5c25c6570b0155e95fce5918cb95f1ad9870df5768653afe128db822301a05a1",
strip_prefix = "",
build_file_content = _NINJA_BUILD_FILE.format(
bin = "ninja",
env = "{\"NINJA\": \"$(execpath :ninja_bin)\"}",
),
)
maybe(
http_archive,
name = "ninja_1.12.1_mac",
urls = [
"https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-mac.zip",
],
sha256 = "89a287444b5b3e98f88a945afa50ce937b8ffd1dcc59c555ad9b1baf855298c9",
strip_prefix = "",
build_file_content = _NINJA_BUILD_FILE.format(
bin = "ninja",
env = "{\"NINJA\": \"$(execpath :ninja_bin)\"}",
),
)
maybe(
http_archive,
name = "ninja_1.12.1_mac_aarch64",
urls = [
"https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-mac.zip",
],
sha256 = "89a287444b5b3e98f88a945afa50ce937b8ffd1dcc59c555ad9b1baf855298c9",
strip_prefix = "",
build_file_content = _NINJA_BUILD_FILE.format(
bin = "ninja",
env = "{\"NINJA\": \"$(execpath :ninja_bin)\"}",
),
)
maybe(
http_archive,
name = "ninja_1.12.1_win",
urls = [
"https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-win.zip",
],
sha256 = "f550fec705b6d6ff58f2db3c374c2277a37691678d6aba463adcbb129108467a",
strip_prefix = "",
build_file_content = _NINJA_BUILD_FILE.format(
bin = "ninja.exe",
env = "{\"NINJA\": \"$(execpath :ninja_bin)\"}",
),
)
# buildifier: leave-alone
maybe(
prebuilt_toolchains_repository,
name = "ninja_1.12.1_toolchains",
repos = {
"ninja_1.12.1_linux": [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
"ninja_1.12.1_linux-aarch64": [
"@platforms//cpu:aarch64",
"@platforms//os:linux",
],
"ninja_1.12.1_mac": [
"@platforms//cpu:x86_64",
"@platforms//os:macos",
],
"ninja_1.12.1_mac_aarch64": [
"@platforms//cpu:aarch64",
"@platforms//os:macos",
],
"ninja_1.12.1_win": [
"@platforms//cpu:x86_64",
"@platforms//os:windows",
],
},
tool = "ninja",
)
if register_toolchains:
native.register_toolchains(
"@ninja_1.12.1_toolchains//:ninja_1.12.1_linux_toolchain",
"@ninja_1.12.1_toolchains//:ninja_1.12.1_linux-aarch64_toolchain",
"@ninja_1.12.1_toolchains//:ninja_1.12.1_mac_toolchain",
"@ninja_1.12.1_toolchains//:ninja_1.12.1_mac_aarch64_toolchain",
"@ninja_1.12.1_toolchains//:ninja_1.12.1_win_toolchain",
)
return
if "1.12.0" == version: if "1.12.0" == version:
maybe( maybe(
http_archive, http_archive,

View File

@ -10,8 +10,14 @@ CMAKE_SHA256_URL_TEMPLATE = "https://cmake.org/files/v{minor}/cmake-{full}-SHA-2
CMAKE_URL_TEMPLATE = "https://github.com/Kitware/CMake/releases/download/v{full}/{file}" CMAKE_URL_TEMPLATE = "https://github.com/Kitware/CMake/releases/download/v{full}/{file}"
CMAKE_VERSIONS = [ CMAKE_VERSIONS = [
"3.29.5",
"3.29.4",
"3.29.3",
"3.29.2",
"3.29.1", "3.29.1",
"3.29.0", "3.29.0",
"3.28.6",
"3.28.5",
"3.28.4", "3.28.4",
"3.28.3", "3.28.3",
"3.28.2", "3.28.2",
@ -166,6 +172,7 @@ NINJA_TARGETS = {
} }
NINJA_VERSIONS = ( NINJA_VERSIONS = (
"1.12.1",
"1.12.0", "1.12.0",
"1.11.1", "1.11.1",
"1.11.0", "1.11.0",