forked from google-research/mozolm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE.bazel
80 lines (65 loc) · 2.85 KB
/
WORKSPACE.bazel
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
73
74
75
76
77
78
79
80
# Copyright 2020 MozoLM Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Bazel (http://bazel.io/) workspace file for MozoLM server.
workspace(name = "com_google_mozolm")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# ------------------------------------
# gRPC package for Bazel:
# ------------------------------------
# See https://github.com/grpc/grpc/blob/master/src/cpp/README.md#make
grpc_version = "1.33.2"
http_archive(
name = "com_github_grpc_grpc",
urls = ["https://github.com/grpc/grpc/archive/v%s.tar.gz" % grpc_version],
sha256 = "2060769f2d4b0d3535ba594b2ab614d7f68a492f786ab94b4318788d45e3278a",
strip_prefix = "grpc-%s" % grpc_version,
)
# ------------------------------------
# gRPC dependencies:
# ------------------------------------
# Check the list of third-party dependencies accessible through gRPC here:
#
# https://github.com/grpc/grpc/tree/master/third_party
#
# Please do not specify these dependencies separately as they are likely to
# clash with the versions provided by gRPC.
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
# Not mentioned in official docs. Mentioned here: https://github.com/grpc/grpc/issues/20511
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
grpc_extra_deps()
# -------------------------------------------------------------------------
# OpenFst: See
# http://www.openfst.org/twiki/pub/FST/FstDownload/README
# -------------------------------------------------------------------------
openfst_version = "1.7.10-rc1"
http_archive(
name = "org_openfst",
urls = ["https://github.com/agutkin/finite_state/raw/main/openfst-%s.tar.gz" % openfst_version],
sha256 = "b82eb91d22b9b3f271702bef2dfd0e400ab4193e9bbc96fa595b14e22a1a6577",
strip_prefix = "openfst-%s" % openfst_version,
)
# -------------------------------------------------------------------------
# OpenGrm N-Gram:
# -------------------------------------------------------------------------
opengrm_ngram_version = "1.3.12-rc1"
http_archive(
name = "org_opengrm_ngram",
urls = ["https://github.com/agutkin/finite_state/raw/main/ngram-%s.tar.gz" % opengrm_ngram_version],
sha256 = "656b429002cc4e7f12a75ce9410ef2c4fbd8a63cc359c49ae724c52b0b646e10",
strip_prefix = "ngram-%s" % opengrm_ngram_version
)
# Local Variables:
# mode: bazel-build-mode
# End: