-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathdeps.bzl
More file actions
138 lines (122 loc) · 5.2 KB
/
Copy pathdeps.bzl
File metadata and controls
138 lines (122 loc) · 5.2 KB
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
130
131
132
133
134
135
136
137
138
"""
Main dependencies of cel-cpp.
"""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_jar")
def base_deps():
"""Base evaluator and test dependencies."""
# 2023-05-15
ABSL_SHA1 = "3aa3377ef66e6388ed19fd7c862bf0dc3a3630e0"
ABSL_SHA256 = "91b144618b8d608764b556d56eba07d4a6055429807e8d8fca0566cc5b66485e"
http_archive(
name = "com_google_absl",
urls = ["https://github.com/abseil/abseil-cpp/archive/" + ABSL_SHA1 + ".zip"],
strip_prefix = "abseil-cpp-" + ABSL_SHA1,
sha256 = ABSL_SHA256,
)
# v1.11.0
GOOGLETEST_SHA1 = "e2239ee6043f73722e7aa812a459f54a28552929"
GOOGLETEST_SHA256 = "8daa1a71395892f7c1ec5f7cb5b099a02e606be720d62f1a6a98f8f8898ec826"
http_archive(
name = "com_google_googletest",
urls = ["https://github.com/google/googletest/archive/" + GOOGLETEST_SHA1 + ".zip"],
strip_prefix = "googletest-" + GOOGLETEST_SHA1,
sha256 = GOOGLETEST_SHA256,
)
# v1.6.0
BENCHMARK_SHA1 = "f91b6b42b1b9854772a90ae9501464a161707d1e"
BENCHMARK_SHA256 = "00bd0837db9266c758a087cdf0831a0d3e337c6bb9e3fad75d2be4f9bf480d95"
http_archive(
name = "com_github_google_benchmark",
urls = ["https://github.com/google/benchmark/archive/" + BENCHMARK_SHA1 + ".zip"],
strip_prefix = "benchmark-" + BENCHMARK_SHA1,
sha256 = BENCHMARK_SHA256,
)
# 2022-02-18
RE2_SHA1 = "f6834581a8913c03d087de1e5d5b479f8a870400"
RE2_SHA256 = "ef7f29b79f9e3a8e4030ea2a0f71a66bd99aa0376fe641d86d47d6129c7f5aed"
http_archive(
name = "com_googlesource_code_re2",
urls = ["https://github.com/google/re2/archive/" + RE2_SHA1 + ".zip"],
strip_prefix = "re2-" + RE2_SHA1,
sha256 = RE2_SHA256,
)
PROTOBUF_VERSION = "23.0"
PROTOBUF_SHA = "b8faf8487cc364e5c2b47a9abd77512bc79a6389ea45392ca938ba7617eae877"
http_archive(
name = "com_google_protobuf",
sha256 = PROTOBUF_SHA,
strip_prefix = "protobuf-" + PROTOBUF_VERSION,
urls = ["https://github.com/protocolbuffers/protobuf/archive/v" + PROTOBUF_VERSION + ".tar.gz"],
)
GOOGLEAPIS_GIT_SHA = "f19049fdd8dfc8b6eba387f4ef6d1d8b4d0103e7" # May 31, 2022
GOOGLEAPIS_SHA = "cbda1073fe2eb3b7a5a41fd940a592cfe1861895580c13bf25066896f9e9bede"
http_archive(
name = "com_google_googleapis",
sha256 = GOOGLEAPIS_SHA,
strip_prefix = "googleapis-" + GOOGLEAPIS_GIT_SHA,
urls = ["https://github.com/googleapis/googleapis/archive/" + GOOGLEAPIS_GIT_SHA + ".tar.gz"],
)
def parser_deps():
"""ANTLR dependency for the parser."""
# Apr 15, 2022
ANTLR4_VERSION = "4.10.1"
http_archive(
name = "antlr4_runtimes",
build_file_content = """
package(default_visibility = ["//visibility:public"])
cc_library(
name = "cpp",
srcs = glob(["runtime/Cpp/runtime/src/**/*.cpp"]),
hdrs = glob(["runtime/Cpp/runtime/src/**/*.h"]),
includes = ["runtime/Cpp/runtime/src"],
)
""",
sha256 = "a320568b738e42735946bebc5d9d333170e14a251c5734e8b852ad1502efa8a2",
strip_prefix = "antlr4-" + ANTLR4_VERSION,
urls = ["https://github.com/antlr/antlr4/archive/v" + ANTLR4_VERSION + ".tar.gz"],
)
http_jar(
name = "antlr4_jar",
urls = ["https://www.antlr.org/download/antlr-" + ANTLR4_VERSION + "-complete.jar"],
sha256 = "41949d41f20d31d5b8277187735dd755108df52b38db6c865108d3382040f918",
)
def flatbuffers_deps():
"""FlatBuffers support."""
FLAT_BUFFERS_SHA = "a83caf5910644ba1c421c002ef68e42f21c15f9f"
http_archive(
name = "com_github_google_flatbuffers",
sha256 = "b8efbc25721e76780752bad775a97c3f77a0250271e2db37fc747b20e8b0f24a",
strip_prefix = "flatbuffers-" + FLAT_BUFFERS_SHA,
url = "https://github.com/google/flatbuffers/archive/" + FLAT_BUFFERS_SHA + ".tar.gz",
)
def cel_spec_deps():
"""CEL Spec conformance testing."""
http_archive(
name = "io_bazel_rules_go",
sha256 = "207fad3e6689135c5d8713e5a17ba9d1290238f47b9ba545b63d9303406209c6",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.7/rules_go-v0.24.7.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.24.7/rules_go-v0.24.7.tar.gz",
],
)
http_archive(
name = "bazel_gazelle",
sha256 = "b85f48fa105c4403326e9525ad2b2cc437babaa6e15a3fc0b1dbab0ab064bc7c",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.21.2/bazel-gazelle-v0.22.2.tar.gz",
],
)
CEL_SPEC_GIT_SHA = "c8bbae9828aea503e17300affc7e0b7264a4983e" # 4/28/2023
http_archive(
name = "com_google_cel_spec",
sha256 = "d19c06c91162b10c9d2a8f4799ce231ecfa100fb6f8258d767a56efcdfc9d46f",
strip_prefix = "cel-spec-" + CEL_SPEC_GIT_SHA,
urls = ["https://github.com/google/cel-spec/archive/" + CEL_SPEC_GIT_SHA + ".zip"],
)
def cel_cpp_deps():
"""All core dependencies of cel-cpp."""
base_deps()
parser_deps()
flatbuffers_deps()
cel_spec_deps()