-
Notifications
You must be signed in to change notification settings - Fork 4
/
WORKSPACE.bazel
129 lines (102 loc) · 4.61 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Copyright 2024 Nisaba 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.
#
# Where the SHA-256 checksums are needed, these can be generated using the
# `sha256sum` tool on Unix platforms (found as part of `coreutils` package
# in most Linux distributions).
workspace(name = "com_google_nisaba")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# -------------------------------------------------------------------------
# Google protocol buffers. See
# https://github.com/protocolbuffers/protobuf
# -------------------------------------------------------------------------
git_repository(
name = "com_google_protobuf",
remote = "https://github.com/protocolbuffers/protobuf.git",
tag = "v4.24.3",
)
# -------------------------------------------------------------------------
# nlohmann json. See
# https://github.com/nlohmann/json
# -------------------------------------------------------------------------
git_repository(
name = "com_github_nlohmann_json",
remote = "https://github.com/nlohmann/json.git",
tag = "v3.11.3",
)
# Import external protobuf dependencies into this workspace.
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
# -------------------------------------------------------------------------
# Python rules.
# -------------------------------------------------------------------------
http_archive(
name = "rules_python",
strip_prefix = "rules_python-0.25.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz",
sha256 = "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036",
)
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
# -------------------------------------------------------------------------
# Google testing framework. See
# https://github.com/google/googletest
# -------------------------------------------------------------------------
http_archive(
name = "com_google_googletest",
strip_prefix = "googletest-main",
urls = ["https://github.com/google/googletest/archive/main.zip"],
)
# -------------------------------------------------------------------------
# Pynini: See
# http://www.opengrm.org/twiki/bin/view/GRM/Pynini
# -------------------------------------------------------------------------
pynini_version = "2.1.5-rc2-absl"
http_archive(
name = "org_opengrm_pynini",
urls = ["https://github.com/agutkin/finite_state/raw/main/pynini-%s.tar.gz" % pynini_version],
sha256 = "f9efbd615c64201b8a099ab309fbc81e98624c5f4618f11e4fb808d2628bf5d7",
strip_prefix = "pynini-%s" % pynini_version
)
load("@org_opengrm_pynini//bazel:workspace.bzl", "pynini_repositories")
pynini_repositories()
# -------------------------------------------------------------------------
# External Python packages.
# -------------------------------------------------------------------------
# Python external packages installation.
load("@rules_python//python:pip.bzl", "pip_parse")
pip_parse(
name = "pip_deps",
requirements_lock = "//:requirements.txt", # Top level requirements.
)
load("@pip_deps//:requirements.bzl", "install_deps")
install_deps()
# -------------------------------------------------------------------------
# Rules for generating C++ code from Protocol Buffers.
# -------------------------------------------------------------------------
http_archive(
name = "rules_cc",
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz"],
sha256 = "2037875b9a4456dce4a79d112a8ae885bbc4aad968e6587dca6e64f3a0900cdf",
strip_prefix = "rules_cc-0.0.9",
)
load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies")
rules_cc_dependencies()
# -------------------------------------------------------------------------
# Public dependencies that need to be exposed for the downstream projects.
# -------------------------------------------------------------------------
load("@//bazel:workspace.bzl", "nisaba_public_repositories")
nisaba_public_repositories()