Bump Halide version from 14.0.0 to 15.0.0 and add MacOS Halide dependency

PiperOrigin-RevId: 515362310
This commit is contained in:
MediaPipe Team 2023-03-09 09:47:14 -08:00 committed by Copybara-Service
parent 2c64421471
commit 563b193bca
2 changed files with 22 additions and 11 deletions

View File

@ -554,24 +554,32 @@ new_local_repository(
http_archive( http_archive(
name = "linux_halide", name = "linux_halide",
sha256 = "be3bdd067acb9ee0d37d0830821113cd69174bee46da466a836d8829fef7cf91", sha256 = "f62b2914823d6e33d18693f5b74484f274523bf5402ce51988e24393d123b375",
strip_prefix = "Halide-14.0.0-x86-64-linux", strip_prefix = "Halide-15.0.0-x86-64-linux",
urls = ["https://github.com/halide/Halide/releases/download/v14.0.0/Halide-14.0.0-x86-64-linux-6b9ed2afd1d6d0badf04986602c943e287d44e46.tar.gz"], urls = ["https://github.com/halide/Halide/releases/download/v15.0.0/Halide-15.0.0-x86-64-linux-d7651f4b32f9dbd764f243134001f7554378d62d.tar.gz"],
build_file = "@//third_party:halide.BUILD", build_file = "@//third_party:halide.BUILD",
) )
http_archive( http_archive(
name = "macos_halide", name = "macos_x86_64_halide",
sha256 = "569b1cda858d278d9dd68e072768d8347775e419f2ff39ff34d001ceb299e3c4", sha256 = "3d832aed942080ea89aa832462c68fbb906f3055c440b7b6d35093d7c52f6aab",
strip_prefix = "Halide-14.0.0-x86-64-osx", strip_prefix = "Halide-15.0.0-x86-64-osx",
urls = ["https://github.com/halide/Halide/releases/download/v14.0.0/Halide-14.0.0-x86-64-osx-6b9ed2afd1d6d0badf04986602c943e287d44e46.tar.gz"], urls = ["https://github.com/halide/Halide/releases/download/v15.0.0/Halide-15.0.0-x86-64-osx-d7651f4b32f9dbd764f243134001f7554378d62d.tar.gz"],
build_file = "@//third_party:halide.BUILD",
)
http_archive(
name = "macos_arm_64_halide",
sha256 = "b1fad3c9810122b187303d7031d9e35fb43761f345d18cc4492c00ed5877f641",
strip_prefix = "Halide-15.0.0-arm-64-osx",
urls = ["https://github.com/halide/Halide/releases/download/v15.0.0/Halide-15.0.0-arm-64-osx-d7651f4b32f9dbd764f243134001f7554378d62d.tar.gz"],
build_file = "@//third_party:halide.BUILD", build_file = "@//third_party:halide.BUILD",
) )
http_archive( http_archive(
name = "windows_halide", name = "windows_halide",
sha256 = "a7a0481af2691ec436d79c20ca441e9a701bfce409f4f763dab75a8f1d740179", sha256 = "5acf6fe161dd375856a2b43f4bb0a32815ba958b0585ee312c44e008aa7b0b64",
strip_prefix = "Halide-14.0.0-x86-64-windows", strip_prefix = "Halide-15.0.0-x86-64-windows",
urls = ["https://github.com/halide/Halide/releases/download/v14.0.0/Halide-14.0.0-x86-64-windows-6b9ed2afd1d6d0badf04986602c943e287d44e46.zip"], urls = ["https://github.com/halide/Halide/releases/download/v15.0.0/Halide-15.0.0-x86-64-windows-d7651f4b32f9dbd764f243134001f7554378d62d.zip"],
build_file = "@//third_party:halide.BUILD", build_file = "@//third_party:halide.BUILD",
) )

View File

@ -28,7 +28,10 @@ halide_library_runtimes()
name = target_name, name = target_name,
actual = select({ actual = select({
"//conditions:default": "@linux_halide//:" + target_name, "//conditions:default": "@linux_halide//:" + target_name,
"@mediapipe//mediapipe:macos": "@macos_halide//:" + target_name, # TODO: this shouldn't be necessary.
"@mediapipe//mediapipe:macos_i386": "@macos_x86_64_halide//:" + target_name,
"@mediapipe//mediapipe:macos_x86_64": "@macos_x86_64_halide//:" + target_name,
"@mediapipe//mediapipe:macos_arm64": "@macos_arm_64_halide//:" + target_name,
"@mediapipe//mediapipe:windows": "@windows_halide//:" + target_name, "@mediapipe//mediapipe:windows": "@windows_halide//:" + target_name,
}), }),
) )