-
Notifications
You must be signed in to change notification settings - Fork 15
/
workspace.bzl
72 lines (63 loc) · 2.89 KB
/
workspace.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# TensorFlow Serving external dependencies that can be loaded in WORKSPACE
# files.
load("@org_tensorflow//third_party:repo.bzl", "tf_http_archive")
load("@org_tensorflow//tensorflow:workspace.bzl", "tf_workspace")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def tf_serving_workspace():
"""All TensorFlow Serving external dependencies."""
tf_workspace(path_prefix = "", tf_repo_name = "org_tensorflow")
# ===== gRPC dependencies =====
native.bind(
name = "libssl",
actual = "@boringssl//:ssl",
)
# gRPC wants the existence of a cares dependence but its contents are not
# actually important since we have set GRPC_ARES=0 in tools/bazel.rc
native.bind(
name = "cares",
actual = "@grpc//third_party/nanopb:nanopb",
)
# ===== RapidJSON (rapidjson.org) dependencies =====
http_archive(
name = "com_github_tencent_rapidjson",
urls = [
"https://github.com/Tencent/rapidjson/archive/v1.1.0.zip",
],
sha256 = "8e00c38829d6785a2dfb951bb87c6974fa07dfe488aa5b25deec4b8bc0f6a3ab",
strip_prefix = "rapidjson-1.1.0",
build_file = "@//third_party/rapidjson:BUILD",
)
# ===== libevent (libevent.org) dependencies =====
http_archive(
name = "com_github_libevent_libevent",
urls = [
"https://github.com/libevent/libevent/archive/release-2.1.8-stable.zip",
],
sha256 = "70158101eab7ed44fd9cc34e7f247b3cae91a8e4490745d9d6eb7edc184e4d96",
strip_prefix = "libevent-release-2.1.8-stable",
build_file = "@//third_party/libevent:BUILD",
)
# ===== Override TF defined `com_google_absl` (we need a recent version).
tf_http_archive(
name = "com_google_absl",
build_file = str(Label("@org_tensorflow//third_party:com_google_absl.BUILD")),
sha256 = "b6aa25c8283cca9de282bb7f5880b04492af76213b2f48c135c4963c6333a21e",
strip_prefix = "abseil-cpp-36d37ab992038f52276ca66b9da80c1cf0f57dc2",
urls = [
"http://mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/36d37ab992038f52276ca66b9da80c1cf0f57dc2.tar.gz",
"https://github.com/abseil/abseil-cpp/archive/36d37ab992038f52276ca66b9da80c1cf0f57dc2.tar.gz",
],
)
# ===== TF.Text dependencies
# NOTE: Before updating this version, you must manually run the tests found in:
# https://github.com/tensorflow/text/blob/master/oss_scripts/model_server/tests.txt
http_archive(
name = "org_tensorflow_text",
sha256 = "2d6e1be79989d5b03da75a34d9e1331a70221d17dd754e80a7bca6e8daa8ae59",
strip_prefix = "text-a2f2ad05638c37161d2f06bdbf6eb5e0858b00e6",
urls = [
"https://github.com/tensorflow/text/archive/a2f2ad05638c37161d2f06bdbf6eb5e0858b00e6.zip",
],
patches = ["@//third_party/tf_text:tftext.patch"],
patch_args = ["-p1"],
)