xref: /aosp_15_r20/external/tflite-support/third_party/flatbuffers/workspace.bzl (revision b16991f985baa50654c05c5adbb3c8bbcfb40082)
1"""Loads the Flatbuffers library, used by TF Lite."""
2
3load("//third_party:repo.bzl", "third_party_http_archive")
4
5def repo():
6    third_party_http_archive(
7        name = "flatbuffers",
8        strip_prefix = "flatbuffers-1.12.0",
9        sha256 = "62f2223fb9181d1d6338451375628975775f7522185266cd5296571ac152bc45",
10        urls = [
11            "https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/flatbuffers/archive/v1.12.0.tar.gz",
12            "https://github.com/google/flatbuffers/archive/v1.12.0.tar.gz",
13        ],
14        build_file = "//third_party/flatbuffers:BUILD.bazel",
15        delete = ["build_defs.bzl"],
16        link_files = {
17            "//third_party/flatbuffers:build_defs.bzl": "build_defs.bzl",
18        },
19    )
20