-
Notifications
You must be signed in to change notification settings - Fork 9
/
MODULE.bazel
71 lines (64 loc) · 2.98 KB
/
MODULE.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
module(name = "arolla")
bazel_dep(name = "abseil-cpp", version = "20240722.0", repo_name = "com_google_absl")
bazel_dep(name = "abseil-py", version = "2.1.0", repo_name = "com_google_absl_py")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "boost.math", version = "1.83.0.bcr.1")
bazel_dep(name = "eigen", version = "4.0.0-20241125")
bazel_dep(name = "google_benchmark", version = "1.8.5", repo_name = "com_google_benchmark")
bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googletest")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "protobuf", version = "29.1", repo_name = "com_google_protobuf")
bazel_dep(name = "pybind11_abseil", version = "202402.0")
bazel_dep(name = "pybind11_bazel", version = "2.13.6")
bazel_dep(name = "pybind11_protobuf", version = "0.0.0-20240524-1d7a729")
bazel_dep(name = "re2", version = "2024-07-02.bcr.1", repo_name = "com_googlesource_code_re2")
bazel_dep(name = "riegeli", version = "0.0.0-20240927-cdfb25a", repo_name = "com_google_riegeli")
bazel_dep(name = "rules_cc", version = "0.1.0")
bazel_dep(name = "rules_python", version = "1.0.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
ignore_root_user_error = True, # Required for our containerized CI environments.
python_version = "3.11",
)
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "arolla_pip_deps",
python_version = "3.11",
requirements_lock = "//:requirements_lock.txt",
)
use_repo(pip, pip_deps = "arolla_pip_deps")
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_google_cityhash",
build_file = "external/BUILD.cityhash",
integrity = "sha256-sNnBNfNr3Ev3ThP3/+i6otiBOC9n57A5/xc0vSQwIBg=",
patch_cmds = [
# Running "configure" creates the config.h file needed for this library.
# Then, the source files are moved to a new "cityhash" directory for
# consistency with the namespace.
"./configure",
"mkdir cityhash",
"mv config.h cityhash",
"mv src/city.h cityhash",
"mv src/citycrc.h cityhash",
"mv src/city.cc cityhash",
],
patches = [
# Apply patches to add a "third_party_cityhash" namespace to the functions.
"external/cityhash.patch",
],
strip_prefix = "cityhash-master",
url = "https://github.com/google/cityhash/archive/refs/heads/master.tar.gz",
)
http_archive(
name = "com_google_double_conversion",
integrity = "sha256-BOxERhhQq78zgk2oSXgEOyJVSJa1UsX9EanFrktNKW4=",
strip_prefix = "double-conversion-3.3.0",
url = "https://github.com/google/double-conversion/archive/refs/tags/v3.3.0.tar.gz",
)
http_archive(
name = "icu4c",
build_file = "external/BUILD.icu4c",
integrity = "sha256-TLp7es0dPELES7DBS+ZjcJjH+vKzMM6Ha8XzuRXQl0U=",
url = "https://github.com/unicode-org/icu/releases/download/release-69-1/icu4c-69_1-src.tgz",
)