2019-06-17 01:03:25 +02:00
|
|
|
workspace(name = "mediapipe")
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2022-09-06 23:29:51 +02:00
|
|
|
# Protobuf expects an //external:python_headers target
|
|
|
|
bind(
|
|
|
|
name = "python_headers",
|
|
|
|
actual = "@local_config_python//:python_headers",
|
|
|
|
)
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
http_archive(
|
|
|
|
name = "bazel_skylib",
|
2023-02-06 18:41:44 +01:00
|
|
|
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
|
2021-03-25 23:01:44 +01:00
|
|
|
urls = [
|
2023-02-06 18:41:44 +01:00
|
|
|
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
|
2021-03-25 23:01:44 +01:00
|
|
|
],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
2021-03-25 23:01:44 +01:00
|
|
|
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
|
|
|
|
bazel_skylib_workspace()
|
2019-06-17 01:03:25 +02:00
|
|
|
load("@bazel_skylib//lib:versions.bzl", "versions")
|
2021-03-25 23:01:44 +01:00
|
|
|
versions.check(minimum_bazel_version = "3.7.2")
|
2019-06-17 01:03:25 +02:00
|
|
|
|
2023-01-30 18:58:26 +01:00
|
|
|
# ABSL cpp library lts_2023_01_25.
|
2019-06-17 01:03:25 +02:00
|
|
|
http_archive(
|
|
|
|
name = "com_google_absl",
|
|
|
|
urls = [
|
2023-01-30 18:58:26 +01:00
|
|
|
"https://github.com/abseil/abseil-cpp/archive/refs/tags/20230125.0.tar.gz",
|
2019-06-17 01:03:25 +02:00
|
|
|
],
|
2019-12-03 01:07:09 +01:00
|
|
|
patches = [
|
2023-01-30 18:58:26 +01:00
|
|
|
"@//third_party:com_google_absl_windows_patch.diff"
|
2019-12-03 01:07:09 +01:00
|
|
|
],
|
|
|
|
patch_args = [
|
|
|
|
"-p1",
|
|
|
|
],
|
2023-01-30 18:58:26 +01:00
|
|
|
strip_prefix = "abseil-cpp-20230125.0",
|
|
|
|
sha256 = "3ea49a7d97421b88a8c48a0de16c16048e17725c7ec0f1d3ea2683a2a75adc21"
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2019-08-19 23:15:40 +02:00
|
|
|
http_archive(
|
|
|
|
name = "rules_cc",
|
2022-06-23 21:35:07 +02:00
|
|
|
strip_prefix = "rules_cc-2f8c04c04462ab83c545ab14c0da68c3b4c96191",
|
|
|
|
# The commit can be updated if the build passes. Last updated 6/23/22.
|
|
|
|
urls = ["https://github.com/bazelbuild/rules_cc/archive/2f8c04c04462ab83c545ab14c0da68c3b4c96191.zip"],
|
2019-08-19 23:15:40 +02:00
|
|
|
)
|
|
|
|
|
2020-08-30 05:41:10 +02:00
|
|
|
http_archive(
|
|
|
|
name = "rules_foreign_cc",
|
2021-03-25 23:01:44 +01:00
|
|
|
strip_prefix = "rules_foreign_cc-0.1.0",
|
|
|
|
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.1.0.zip",
|
2020-08-30 05:41:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")
|
|
|
|
|
|
|
|
rules_foreign_cc_dependencies()
|
|
|
|
|
|
|
|
# This is used to select all contents of the archives for CMake-based packages to give CMake access to them.
|
|
|
|
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
# GoogleTest/GoogleMock framework. Used by most unit-tests.
|
2021-07-24 02:09:32 +02:00
|
|
|
# Last updated 2021-07-02.
|
2019-06-17 01:03:25 +02:00
|
|
|
http_archive(
|
2020-07-09 02:34:05 +02:00
|
|
|
name = "com_google_googletest",
|
2021-07-24 02:09:32 +02:00
|
|
|
urls = ["https://github.com/google/googletest/archive/4ec4cd23f486bf70efcc5d2caa40f24368f752e3.zip"],
|
|
|
|
strip_prefix = "googletest-4ec4cd23f486bf70efcc5d2caa40f24368f752e3",
|
|
|
|
sha256 = "de682ea824bfffba05b4e33b67431c247397d6175962534305136aa06f92e049",
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2022-03-21 20:07:37 +01:00
|
|
|
# Google Benchmark library v1.6.1 released on 2022-01-10.
|
2019-06-17 01:03:25 +02:00
|
|
|
http_archive(
|
|
|
|
name = "com_google_benchmark",
|
2022-03-21 20:07:37 +01:00
|
|
|
urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.6.1.tar.gz"],
|
|
|
|
strip_prefix = "benchmark-1.6.1",
|
|
|
|
sha256 = "6132883bc8c9b0df5375b16ab520fac1a85dc9e4cf5be59480448ece74b278d4",
|
2019-06-17 01:03:25 +02:00
|
|
|
build_file = "@//third_party:benchmark.BUILD",
|
|
|
|
)
|
|
|
|
|
|
|
|
# gflags needed by glog
|
|
|
|
http_archive(
|
|
|
|
name = "com_github_gflags_gflags",
|
2020-05-21 18:46:31 +02:00
|
|
|
strip_prefix = "gflags-2.2.2",
|
|
|
|
sha256 = "19713a36c9f32b33df59d1c79b4958434cb005b5b47dc5400a7a4b078111d9b5",
|
|
|
|
url = "https://github.com/gflags/gflags/archive/v2.2.2.zip",
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-08-30 05:41:10 +02:00
|
|
|
# 2020-08-21
|
2019-06-17 01:03:25 +02:00
|
|
|
http_archive(
|
2020-08-30 05:41:10 +02:00
|
|
|
name = "com_github_glog_glog",
|
|
|
|
strip_prefix = "glog-0a2e5931bd5ff22fd3bf8999eb8ce776f159cda6",
|
|
|
|
sha256 = "58c9b3b6aaa4dd8b836c0fd8f65d0f941441fb95e27212c5eeb9979cfd3592ab",
|
|
|
|
urls = [
|
|
|
|
"https://github.com/google/glog/archive/0a2e5931bd5ff22fd3bf8999eb8ce776f159cda6.zip",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
http_archive(
|
|
|
|
name = "com_github_glog_glog_no_gflags",
|
|
|
|
strip_prefix = "glog-0a2e5931bd5ff22fd3bf8999eb8ce776f159cda6",
|
|
|
|
sha256 = "58c9b3b6aaa4dd8b836c0fd8f65d0f941441fb95e27212c5eeb9979cfd3592ab",
|
|
|
|
build_file = "@//third_party:glog_no_gflags.BUILD",
|
|
|
|
urls = [
|
|
|
|
"https://github.com/google/glog/archive/0a2e5931bd5ff22fd3bf8999eb8ce776f159cda6.zip",
|
|
|
|
],
|
2019-09-30 19:18:09 +02:00
|
|
|
patches = [
|
2020-12-10 04:13:05 +01:00
|
|
|
"@//third_party:com_github_glog_glog_9779e5ea6ef59562b030248947f787d1256132ae.diff",
|
2019-09-30 19:18:09 +02:00
|
|
|
],
|
|
|
|
patch_args = [
|
|
|
|
"-p1",
|
|
|
|
],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2020-02-10 22:27:13 +01:00
|
|
|
# easyexif
|
|
|
|
http_archive(
|
|
|
|
name = "easyexif",
|
|
|
|
url = "https://github.com/mayanklahiri/easyexif/archive/master.zip",
|
|
|
|
strip_prefix = "easyexif-master",
|
|
|
|
build_file = "@//third_party:easyexif.BUILD",
|
|
|
|
)
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
# libyuv
|
|
|
|
http_archive(
|
|
|
|
name = "libyuv",
|
2021-04-01 01:20:27 +02:00
|
|
|
# Error: operand type mismatch for `vbroadcastss' caused by commit 8a13626e42f7fdcf3a6acbb0316760ee54cda7d8.
|
|
|
|
urls = ["https://chromium.googlesource.com/libyuv/libyuv/+archive/2525698acba9bf9b701ba6b4d9584291a1f62257.tar.gz"],
|
2019-06-17 01:03:25 +02:00
|
|
|
build_file = "@//third_party:libyuv.BUILD",
|
|
|
|
)
|
|
|
|
|
2020-04-07 04:10:12 +02:00
|
|
|
# Note: protobuf-javalite is no longer released as a separate download, it's included in the main Java download.
|
|
|
|
# ...but the Java download is currently broken, so we use the "source" download.
|
2019-06-17 01:03:25 +02:00
|
|
|
http_archive(
|
|
|
|
name = "com_google_protobuf_javalite",
|
2021-12-10 23:03:51 +01:00
|
|
|
sha256 = "87407cd28e7a9c95d9f61a098a53cf031109d451a7763e7dd1253abf8b4df422",
|
|
|
|
strip_prefix = "protobuf-3.19.1",
|
|
|
|
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz"],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2019-08-17 03:49:25 +02:00
|
|
|
http_archive(
|
2020-05-21 18:46:31 +02:00
|
|
|
name = "com_google_protobuf",
|
2021-12-10 23:03:51 +01:00
|
|
|
sha256 = "87407cd28e7a9c95d9f61a098a53cf031109d451a7763e7dd1253abf8b4df422",
|
|
|
|
strip_prefix = "protobuf-3.19.1",
|
|
|
|
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz"],
|
2019-12-07 00:33:11 +01:00
|
|
|
patches = [
|
2020-05-21 18:46:31 +02:00
|
|
|
"@//third_party:com_google_protobuf_fixes.diff"
|
2019-12-07 00:33:11 +01:00
|
|
|
],
|
|
|
|
patch_args = [
|
|
|
|
"-p1",
|
|
|
|
],
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2023-02-22 17:34:35 +01:00
|
|
|
load("@//third_party/flatbuffers:workspace.bzl", flatbuffers = "repo")
|
2022-09-06 23:29:51 +02:00
|
|
|
flatbuffers()
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
http_archive(
|
|
|
|
name = "com_google_audio_tools",
|
2023-02-08 21:51:35 +01:00
|
|
|
strip_prefix = "multichannel-audio-tools-1f6b1319f13282eda6ff1317be13de67f4723860",
|
|
|
|
urls = ["https://github.com/google/multichannel-audio-tools/archive/1f6b1319f13282eda6ff1317be13de67f4723860.zip"],
|
|
|
|
sha256 = "fe346e1aee4f5069c4cbccb88706a9a2b2b4cf98aeb91ec1319be77e07dd7435",
|
2022-11-11 00:10:37 +01:00
|
|
|
repo_mapping = {"@com_github_glog_glog" : "@com_github_glog_glog_no_gflags"},
|
2020-05-21 18:46:31 +02:00
|
|
|
)
|
2019-06-17 01:03:25 +02:00
|
|
|
|
2022-09-28 22:35:30 +02:00
|
|
|
http_archive(
|
|
|
|
name = "pffft",
|
|
|
|
strip_prefix = "jpommier-pffft-7c3b5a7dc510",
|
|
|
|
urls = ["https://bitbucket.org/jpommier/pffft/get/7c3b5a7dc510.zip"],
|
|
|
|
build_file = "@//third_party:pffft.BUILD",
|
|
|
|
)
|
|
|
|
|
2022-09-06 23:29:51 +02:00
|
|
|
# sentencepiece
|
|
|
|
http_archive(
|
|
|
|
name = "com_google_sentencepiece",
|
|
|
|
strip_prefix = "sentencepiece-1.0.0",
|
|
|
|
sha256 = "c05901f30a1d0ed64cbcf40eba08e48894e1b0e985777217b7c9036cac631346",
|
|
|
|
urls = [
|
|
|
|
"https://github.com/google/sentencepiece/archive/1.0.0.zip",
|
|
|
|
],
|
2022-10-27 19:14:34 +02:00
|
|
|
patches = [
|
2023-02-22 17:34:35 +01:00
|
|
|
"@//third_party:com_google_sentencepiece_no_gflag_no_gtest.diff",
|
2022-10-27 19:14:34 +02:00
|
|
|
],
|
|
|
|
patch_args = ["-p1"],
|
2022-11-11 07:10:41 +01:00
|
|
|
repo_mapping = {"@com_google_glog" : "@com_github_glog_glog_no_gflags"},
|
2022-09-06 23:29:51 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "org_tensorflow_text",
|
|
|
|
sha256 = "f64647276f7288d1b1fe4c89581d51404d0ce4ae97f2bcc4c19bd667549adca8",
|
|
|
|
strip_prefix = "text-2.2.0",
|
|
|
|
urls = [
|
|
|
|
"https://github.com/tensorflow/text/archive/v2.2.0.zip",
|
|
|
|
],
|
|
|
|
patches = [
|
2023-02-22 17:34:35 +01:00
|
|
|
"@//third_party:tensorflow_text_remove_tf_deps.diff",
|
|
|
|
"@//third_party:tensorflow_text_a0f49e63.diff",
|
2022-09-06 23:29:51 +02:00
|
|
|
],
|
|
|
|
patch_args = ["-p1"],
|
|
|
|
repo_mapping = {"@com_google_re2": "@com_googlesource_code_re2"},
|
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "com_googlesource_code_re2",
|
|
|
|
sha256 = "e06b718c129f4019d6e7aa8b7631bee38d3d450dd980246bfaf493eb7db67868",
|
|
|
|
strip_prefix = "re2-fe4a310131c37f9a7e7f7816fa6ce2a8b27d65a8",
|
|
|
|
urls = [
|
|
|
|
"https://github.com/google/re2/archive/fe4a310131c37f9a7e7f7816fa6ce2a8b27d65a8.tar.gz",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-08-13 03:57:56 +02:00
|
|
|
# 2020-07-09
|
|
|
|
http_archive(
|
|
|
|
name = "pybind11_bazel",
|
|
|
|
strip_prefix = "pybind11_bazel-203508e14aab7309892a1c5f7dd05debda22d9a5",
|
|
|
|
urls = ["https://github.com/pybind/pybind11_bazel/archive/203508e14aab7309892a1c5f7dd05debda22d9a5.zip"],
|
|
|
|
sha256 = "75922da3a1bdb417d820398eb03d4e9bd067c4905a4246d35a44c01d62154d91",
|
|
|
|
)
|
|
|
|
|
2022-11-15 20:49:21 +01:00
|
|
|
# 2022-10-20
|
2020-08-13 03:57:56 +02:00
|
|
|
http_archive(
|
|
|
|
name = "pybind11",
|
|
|
|
urls = [
|
2022-11-15 20:49:21 +01:00
|
|
|
"https://github.com/pybind/pybind11/archive/v2.10.1.zip",
|
2020-08-13 03:57:56 +02:00
|
|
|
],
|
2022-11-15 20:49:21 +01:00
|
|
|
sha256 = "fcf94065efcfd0a7a828bacf118fa11c43f6390d0c805e3e6342ac119f2e9976",
|
|
|
|
strip_prefix = "pybind11-2.10.1",
|
2020-08-13 03:57:56 +02:00
|
|
|
build_file = "@pybind11_bazel//:pybind11.BUILD",
|
|
|
|
)
|
|
|
|
|
2022-09-06 23:29:51 +02:00
|
|
|
http_archive(
|
|
|
|
name = "pybind11_protobuf",
|
|
|
|
sha256 = "baa1f53568283630a5055c85f0898b8810f7a6431bd01bbaedd32b4c1defbcb1",
|
|
|
|
strip_prefix = "pybind11_protobuf-3594106f2df3d725e65015ffb4c7886d6eeee683",
|
|
|
|
urls = [
|
|
|
|
"https://github.com/pybind/pybind11_protobuf/archive/3594106f2df3d725e65015ffb4c7886d6eeee683.tar.gz",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-12-10 23:03:51 +01:00
|
|
|
# Point to the commit that deprecates the usage of Eigen::MappedSparseMatrix.
|
2019-12-07 00:33:11 +01:00
|
|
|
http_archive(
|
|
|
|
name = "ceres_solver",
|
2021-12-10 23:03:51 +01:00
|
|
|
url = "https://github.com/ceres-solver/ceres-solver/archive/123fba61cf2611a3c8bddc9d91416db26b10b558.zip",
|
2019-12-07 00:33:11 +01:00
|
|
|
patches = [
|
2020-05-21 18:46:31 +02:00
|
|
|
"@//third_party:ceres_solver_compatibility_fixes.diff"
|
2019-12-07 00:33:11 +01:00
|
|
|
],
|
|
|
|
patch_args = [
|
|
|
|
"-p1",
|
|
|
|
],
|
2021-12-10 23:03:51 +01:00
|
|
|
strip_prefix = "ceres-solver-123fba61cf2611a3c8bddc9d91416db26b10b558",
|
|
|
|
sha256 = "8b7b16ceb363420e0fd499576daf73fa338adb0b1449f58bea7862766baa1ac7"
|
2019-12-07 00:33:11 +01:00
|
|
|
)
|
|
|
|
|
2020-08-30 05:41:10 +02:00
|
|
|
http_archive(
|
|
|
|
name = "opencv",
|
|
|
|
build_file_content = all_content,
|
|
|
|
strip_prefix = "opencv-3.4.10",
|
|
|
|
urls = ["https://github.com/opencv/opencv/archive/3.4.10.tar.gz"],
|
|
|
|
)
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
new_local_repository(
|
|
|
|
name = "linux_opencv",
|
|
|
|
build_file = "@//third_party:opencv_linux.BUILD",
|
|
|
|
path = "/usr",
|
|
|
|
)
|
|
|
|
|
2019-08-17 03:49:25 +02:00
|
|
|
new_local_repository(
|
|
|
|
name = "linux_ffmpeg",
|
|
|
|
build_file = "@//third_party:ffmpeg_linux.BUILD",
|
|
|
|
path = "/usr"
|
|
|
|
)
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
new_local_repository(
|
|
|
|
name = "macos_opencv",
|
|
|
|
build_file = "@//third_party:opencv_macos.BUILD",
|
2022-05-04 00:29:57 +02:00
|
|
|
# For local MacOS builds, the path should point to an opencv@3 installation.
|
|
|
|
# If you edit the path here, you will also need to update the corresponding
|
|
|
|
# prefix in "opencv_macos.BUILD".
|
|
|
|
path = "/usr/local",
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2019-08-17 03:49:25 +02:00
|
|
|
new_local_repository(
|
|
|
|
name = "macos_ffmpeg",
|
|
|
|
build_file = "@//third_party:ffmpeg_macos.BUILD",
|
2020-08-30 05:41:10 +02:00
|
|
|
path = "/usr/local/opt/ffmpeg",
|
2019-08-17 03:49:25 +02:00
|
|
|
)
|
|
|
|
|
2020-05-21 18:46:31 +02:00
|
|
|
new_local_repository(
|
|
|
|
name = "windows_opencv",
|
|
|
|
build_file = "@//third_party:opencv_windows.BUILD",
|
|
|
|
path = "C:\\opencv\\build",
|
|
|
|
)
|
|
|
|
|
2019-06-17 01:03:25 +02:00
|
|
|
http_archive(
|
|
|
|
name = "android_opencv",
|
|
|
|
build_file = "@//third_party:opencv_android.BUILD",
|
|
|
|
strip_prefix = "OpenCV-android-sdk",
|
|
|
|
type = "zip",
|
2019-11-21 21:01:51 +01:00
|
|
|
url = "https://github.com/opencv/opencv/releases/download/3.4.3/opencv-3.4.3-android-sdk.zip",
|
2019-06-17 01:03:25 +02:00
|
|
|
)
|
|
|
|
|
2019-08-17 03:49:25 +02:00
|
|
|
# After OpenCV 3.2.0, the pre-compiled opencv2.framework has google protobuf symbols, which will
|
|
|
|
# trigger duplicate symbol errors in the linking stage of building a mediapipe ios app.
|
|
|
|
# To get a higher version of OpenCV for iOS, opencv2.framework needs to be built from source with
|
|
|
|
# '-DBUILD_PROTOBUF=OFF -DBUILD_opencv_dnn=OFF'.
|
|
|
|
http_archive(
|
|
|
|
name = "ios_opencv",
|
|
|
|
sha256 = "7dd536d06f59e6e1156b546bd581523d8df92ce83440002885ec5abc06558de2",
|
|
|
|
build_file = "@//third_party:opencv_ios.BUILD",
|
|
|
|
type = "zip",
|
|
|
|
url = "https://github.com/opencv/opencv/releases/download/3.2.0/opencv-3.2.0-ios-framework.zip",
|
|
|
|
)
|
|
|
|
|
2021-06-10 00:43:03 +02:00
|
|
|
http_archive(
|
|
|
|
name = "stblib",
|
|
|
|
strip_prefix = "stb-b42009b3b9d4ca35bc703f5310eedc74f584be58",
|
|
|
|
sha256 = "13a99ad430e930907f5611325ec384168a958bf7610e63e60e2fd8e7b7379610",
|
|
|
|
urls = ["https://github.com/nothings/stb/archive/b42009b3b9d4ca35bc703f5310eedc74f584be58.tar.gz"],
|
|
|
|
build_file = "@//third_party:stblib.BUILD",
|
|
|
|
patches = [
|
|
|
|
"@//third_party:stb_image_impl.diff"
|
|
|
|
],
|
|
|
|
patch_args = [
|
|
|
|
"-p1",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2022-12-08 00:23:10 +01:00
|
|
|
# Load Zlib before initializing TensorFlow and the iOS build rules to guarantee
|
|
|
|
# that the target @zlib//:mini_zlib is available
|
|
|
|
http_archive(
|
|
|
|
name = "zlib",
|
2023-02-22 17:34:35 +01:00
|
|
|
build_file = "@//third_party:zlib.BUILD",
|
2022-12-08 00:23:10 +01:00
|
|
|
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
|
|
|
|
strip_prefix = "zlib-1.2.11",
|
|
|
|
urls = [
|
|
|
|
"http://mirror.bazel.build/zlib.net/fossils/zlib-1.2.11.tar.gz",
|
|
|
|
"http://zlib.net/fossils/zlib-1.2.11.tar.gz", # 2017-01-15
|
|
|
|
],
|
|
|
|
patches = [
|
|
|
|
"@//third_party:zlib.diff",
|
|
|
|
],
|
|
|
|
patch_args = [
|
|
|
|
"-p1",
|
|
|
|
],
|
|
|
|
)
|
2019-08-17 03:49:25 +02:00
|
|
|
|
2022-12-08 00:23:10 +01:00
|
|
|
# iOS basic build deps.
|
2019-11-15 20:38:21 +01:00
|
|
|
http_archive(
|
2019-08-17 03:49:25 +02:00
|
|
|
name = "build_bazel_rules_apple",
|
2022-12-08 00:23:10 +01:00
|
|
|
sha256 = "f94e6dddf74739ef5cb30f000e13a2a613f6ebfa5e63588305a71fce8a8a9911",
|
|
|
|
url = "https://github.com/bazelbuild/rules_apple/releases/download/1.1.3/rules_apple.1.1.3.tar.gz",
|
2020-04-07 04:10:12 +02:00
|
|
|
patches = [
|
|
|
|
# Bypass checking ios unit test runner when building MP ios applications.
|
|
|
|
"@//third_party:build_bazel_rules_apple_bypass_test_runner_check.diff"
|
|
|
|
],
|
|
|
|
patch_args = [
|
|
|
|
"-p1",
|
|
|
|
],
|
2019-08-17 03:49:25 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
load(
|
|
|
|
"@build_bazel_rules_apple//apple:repositories.bzl",
|
|
|
|
"apple_rules_dependencies",
|
|
|
|
)
|
|
|
|
apple_rules_dependencies()
|
|
|
|
|
|
|
|
load(
|
|
|
|
"@build_bazel_rules_swift//swift:repositories.bzl",
|
|
|
|
"swift_rules_dependencies",
|
|
|
|
)
|
|
|
|
swift_rules_dependencies()
|
|
|
|
|
2022-12-08 00:23:10 +01:00
|
|
|
load(
|
|
|
|
"@build_bazel_rules_swift//swift:extras.bzl",
|
|
|
|
"swift_rules_extra_dependencies",
|
2020-05-21 18:46:31 +02:00
|
|
|
)
|
2022-12-08 00:23:10 +01:00
|
|
|
swift_rules_extra_dependencies()
|
2020-05-21 18:46:31 +02:00
|
|
|
|
2019-08-17 03:49:25 +02:00
|
|
|
load(
|
|
|
|
"@build_bazel_apple_support//lib:repositories.bzl",
|
|
|
|
"apple_support_dependencies",
|
|
|
|
)
|
|
|
|
apple_support_dependencies()
|
|
|
|
|
|
|
|
# More iOS deps.
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "google_toolbox_for_mac",
|
|
|
|
url = "https://github.com/google/google-toolbox-for-mac/archive/v2.2.1.zip",
|
|
|
|
sha256 = "e3ac053813c989a88703556df4dc4466e424e30d32108433ed6beaec76ba4fdc",
|
|
|
|
strip_prefix = "google-toolbox-for-mac-2.2.1",
|
|
|
|
build_file = "@//third_party:google_toolbox_for_mac.BUILD",
|
|
|
|
)
|
2019-12-07 00:33:11 +01:00
|
|
|
|
2020-04-07 04:10:12 +02:00
|
|
|
# Maven dependencies.
|
|
|
|
|
2021-03-25 23:01:44 +01:00
|
|
|
RULES_JVM_EXTERNAL_TAG = "4.0"
|
|
|
|
RULES_JVM_EXTERNAL_SHA = "31701ad93dbfe544d597dbe62c9a1fdd76d81d8a9150c2bf1ecf928ecdf97169"
|
2020-04-07 04:10:12 +02:00
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "rules_jvm_external",
|
|
|
|
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
|
|
|
|
sha256 = RULES_JVM_EXTERNAL_SHA,
|
|
|
|
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@rules_jvm_external//:defs.bzl", "maven_install")
|
|
|
|
|
|
|
|
# Important: there can only be one maven_install rule. Add new maven deps here.
|
|
|
|
maven_install(
|
|
|
|
artifacts = [
|
|
|
|
"androidx.concurrent:concurrent-futures:1.0.0-alpha03",
|
2021-08-19 00:18:12 +02:00
|
|
|
"androidx.lifecycle:lifecycle-common:2.3.1",
|
|
|
|
"androidx.activity:activity:1.2.2",
|
2021-10-06 22:44:33 +02:00
|
|
|
"androidx.exifinterface:exifinterface:1.3.3",
|
2021-08-19 00:18:12 +02:00
|
|
|
"androidx.fragment:fragment:1.3.4",
|
2020-04-07 04:10:12 +02:00
|
|
|
"androidx.annotation:annotation:aar:1.1.0",
|
|
|
|
"androidx.appcompat:appcompat:aar:1.1.0-rc01",
|
2020-10-16 11:40:55 +02:00
|
|
|
"androidx.camera:camera-core:1.0.0-beta10",
|
|
|
|
"androidx.camera:camera-camera2:1.0.0-beta10",
|
|
|
|
"androidx.camera:camera-lifecycle:1.0.0-beta10",
|
2020-04-07 04:10:12 +02:00
|
|
|
"androidx.constraintlayout:constraintlayout:aar:1.1.3",
|
|
|
|
"androidx.core:core:aar:1.1.0-rc03",
|
|
|
|
"androidx.legacy:legacy-support-v4:aar:1.0.0",
|
|
|
|
"androidx.recyclerview:recyclerview:aar:1.1.0-beta02",
|
2020-08-30 05:41:10 +02:00
|
|
|
"androidx.test.espresso:espresso-core:3.1.1",
|
|
|
|
"com.github.bumptech.glide:glide:4.11.0",
|
2020-04-07 04:10:12 +02:00
|
|
|
"com.google.android.material:material:aar:1.0.0-rc01",
|
2021-06-24 23:10:25 +02:00
|
|
|
"com.google.auto.value:auto-value:1.8.1",
|
|
|
|
"com.google.auto.value:auto-value-annotations:1.8.1",
|
2021-07-24 02:09:32 +02:00
|
|
|
"com.google.code.findbugs:jsr305:latest.release",
|
2021-11-13 05:10:43 +01:00
|
|
|
"com.google.android.datatransport:transport-api:3.0.0",
|
|
|
|
"com.google.android.datatransport:transport-backend-cct:3.1.0",
|
|
|
|
"com.google.android.datatransport:transport-runtime:3.1.0",
|
2021-10-06 22:44:33 +02:00
|
|
|
"com.google.flogger:flogger-system-backend:0.6",
|
|
|
|
"com.google.flogger:flogger:0.6",
|
2020-04-07 04:10:12 +02:00
|
|
|
"com.google.guava:guava:27.0.1-android",
|
2020-10-16 11:40:55 +02:00
|
|
|
"com.google.guava:listenablefuture:1.0",
|
2020-08-30 05:41:10 +02:00
|
|
|
"junit:junit:4.12",
|
|
|
|
"org.hamcrest:hamcrest-library:1.3",
|
2020-04-07 04:10:12 +02:00
|
|
|
],
|
|
|
|
repositories = [
|
|
|
|
"https://maven.google.com",
|
|
|
|
"https://dl.google.com/dl/android/maven2",
|
|
|
|
"https://repo1.maven.org/maven2",
|
2021-03-25 23:01:44 +01:00
|
|
|
"https://jcenter.bintray.com",
|
2020-04-07 04:10:12 +02:00
|
|
|
],
|
|
|
|
fetch_sources = True,
|
|
|
|
version_conflict_policy = "pinned",
|
|
|
|
)
|
2020-05-21 18:46:31 +02:00
|
|
|
|
|
|
|
# Needed by TensorFlow
|
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_closure",
|
|
|
|
sha256 = "e0a111000aeed2051f29fcc7a3f83be3ad8c6c93c186e64beb1ad313f0c7f9f9",
|
|
|
|
strip_prefix = "rules_closure-cf1e44edb908e9616030cc83d085989b8e6cd6df",
|
|
|
|
urls = [
|
|
|
|
"http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz", # 2019-04-04
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2022-09-06 23:29:51 +02:00
|
|
|
# TensorFlow repo should always go after the other external dependencies.
|
2023-03-09 06:02:34 +01:00
|
|
|
# TF on 2023-03-08.
|
|
|
|
_TENSORFLOW_GIT_COMMIT = "24f7ee636d62e1f8d8330357f8bbd65956dfb84d"
|
|
|
|
_TENSORFLOW_SHA256 = "7f8a96dd99215c0cdc77230d3dbce43e60102b64a89203ad04aa09b0a187a4bd"
|
2020-05-21 18:46:31 +02:00
|
|
|
http_archive(
|
|
|
|
name = "org_tensorflow",
|
|
|
|
urls = [
|
|
|
|
"https://github.com/tensorflow/tensorflow/archive/%s.tar.gz" % _TENSORFLOW_GIT_COMMIT,
|
|
|
|
],
|
|
|
|
patches = [
|
|
|
|
"@//third_party:org_tensorflow_compatibility_fixes.diff",
|
2021-10-06 22:44:33 +02:00
|
|
|
# Diff is generated with a script, don't update it manually.
|
|
|
|
"@//third_party:org_tensorflow_custom_ops.diff",
|
2020-05-21 18:46:31 +02:00
|
|
|
],
|
|
|
|
patch_args = [
|
|
|
|
"-p1",
|
|
|
|
],
|
|
|
|
strip_prefix = "tensorflow-%s" % _TENSORFLOW_GIT_COMMIT,
|
|
|
|
sha256 = _TENSORFLOW_SHA256,
|
|
|
|
)
|
|
|
|
|
2021-03-25 23:01:44 +01:00
|
|
|
load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3")
|
|
|
|
tf_workspace3()
|
|
|
|
load("@org_tensorflow//tensorflow:workspace2.bzl", "tf_workspace2")
|
|
|
|
tf_workspace2()
|
2021-08-19 00:18:12 +02:00
|
|
|
|
|
|
|
# Edge TPU
|
|
|
|
http_archive(
|
|
|
|
name = "libedgetpu",
|
|
|
|
sha256 = "14d5527a943a25bc648c28a9961f954f70ba4d79c0a9ca5ae226e1831d72fe80",
|
|
|
|
strip_prefix = "libedgetpu-3164995622300286ef2bb14d7fdc2792dae045b7",
|
|
|
|
urls = [
|
|
|
|
"https://github.com/google-coral/libedgetpu/archive/3164995622300286ef2bb14d7fdc2792dae045b7.tar.gz"
|
|
|
|
],
|
|
|
|
)
|
|
|
|
load("@libedgetpu//:workspace.bzl", "libedgetpu_dependencies")
|
|
|
|
libedgetpu_dependencies()
|
|
|
|
|
|
|
|
load("@coral_crosstool//:configure.bzl", "cc_crosstool")
|
|
|
|
cc_crosstool(name = "crosstool")
|
2022-09-06 23:29:51 +02:00
|
|
|
|
2022-11-04 18:57:26 +01:00
|
|
|
|
|
|
|
# Node dependencies
|
|
|
|
http_archive(
|
|
|
|
name = "build_bazel_rules_nodejs",
|
|
|
|
sha256 = "5aae76dced38f784b58d9776e4ab12278bc156a9ed2b1d9fcd3e39921dc88fda",
|
|
|
|
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.7.1/rules_nodejs-5.7.1.tar.gz"],
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
|
|
|
|
build_bazel_rules_nodejs_dependencies()
|
|
|
|
|
|
|
|
# fetches nodejs, npm, and yarn
|
|
|
|
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
|
|
|
|
node_repositories()
|
|
|
|
yarn_install(
|
|
|
|
name = "npm",
|
2023-02-22 17:34:35 +01:00
|
|
|
package_json = "@//:package.json",
|
|
|
|
yarn_lock = "@//:yarn.lock",
|
2022-11-04 18:57:26 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
# Protobuf for Node dependencies
|
|
|
|
http_archive(
|
|
|
|
name = "rules_proto_grpc",
|
|
|
|
sha256 = "bbe4db93499f5c9414926e46f9e35016999a4e9f6e3522482d3760dc61011070",
|
|
|
|
strip_prefix = "rules_proto_grpc-4.2.0",
|
|
|
|
urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/4.2.0.tar.gz"],
|
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "com_google_protobuf_javascript",
|
|
|
|
sha256 = "35bca1729532b0a77280bf28ab5937438e3dcccd6b31a282d9ae84c896b6f6e3",
|
|
|
|
strip_prefix = "protobuf-javascript-3.21.2",
|
|
|
|
urls = ["https://github.com/protocolbuffers/protobuf-javascript/archive/refs/tags/v3.21.2.tar.gz"],
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_toolchains", "rules_proto_grpc_repos")
|
|
|
|
rules_proto_grpc_toolchains()
|
|
|
|
rules_proto_grpc_repos()
|
|
|
|
|
|
|
|
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
|
|
|
|
rules_proto_dependencies()
|
|
|
|
rules_proto_toolchains()
|
|
|
|
|
2023-02-22 17:34:35 +01:00
|
|
|
load("@//third_party:external_files.bzl", "external_files")
|
2022-09-06 23:29:51 +02:00
|
|
|
external_files()
|
2022-11-09 19:26:25 +01:00
|
|
|
|
2023-02-22 17:34:35 +01:00
|
|
|
load("@//third_party:wasm_files.bzl", "wasm_files")
|
2022-11-09 19:26:25 +01:00
|
|
|
wasm_files()
|