forked from google/cel-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
134 lines (118 loc) · 3.69 KB
/
WORKSPACE
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
http_archive(
name = "com_google_absl",
strip_prefix = "abseil-cpp-master",
urls = ["https://github.com/abseil/abseil-cpp/archive/master.zip"],
)
http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-3.5.1",
urls = ["https://github.com/google/protobuf/archive/v3.5.1.zip"],
)
http_archive(
name = "com_google_protobuf_javalite",
strip_prefix = "protobuf-javalite",
urls = ["https://github.com/google/protobuf/archive/javalite.zip"],
)
http_archive(
name = "com_google_googletest",
urls = ["https://github.com/google/googletest/archive/master.zip"],
strip_prefix = "googletest-master",
)
http_archive(
name = "com_google_cel_spec",
urls = ["https://github.com/google/cel-spec/archive/master.zip"],
strip_prefix = "cel-spec-master",
)
# Google RE2 (Regular Expression) C++ Library
http_archive(
name = "com_googlesource_code_re2",
strip_prefix = "re2-master",
urls = ["https://github.com/google/re2/archive/master.zip"],
)
# gflags
http_archive(
name = "com_github_gflags_gflags",
sha256 = "6e16c8bc91b1310a44f3965e616383dbda48f83e8c1eaa2370a215057b00cabe",
strip_prefix = "gflags-77592648e3f3be87d6c7123eb81cbad75f9aef5a",
urls = [
"https://mirror.bazel.build/github.com/gflags/gflags/archive/77592648e3f3be87d6c7123eb81cbad75f9aef5a.tar.gz",
"https://github.com/gflags/gflags/archive/77592648e3f3be87d6c7123eb81cbad75f9aef5a.tar.gz",
],
)
# glog
http_archive(
name = "com_google_glog",
sha256 = "1ee310e5d0a19b9d584a855000434bb724aa744745d5b8ab1855c85bff8a8e21",
strip_prefix = "glog-028d37889a1e80e8a07da1b8945ac706259e5fd8",
urls = [
"https://mirror.bazel.build/github.com/google/glog/archive/028d37889a1e80e8a07da1b8945ac706259e5fd8.tar.gz",
"https://github.com/google/glog/archive/028d37889a1e80e8a07da1b8945ac706259e5fd8.tar.gz",
],
)
new_http_archive(
name = "com_google_googleapis",
url = "https://github.com/googleapis/googleapis/archive/master.zip",
strip_prefix = "googleapis-master/",
build_file_content = """
proto_library(
name = 'rpc_status',
srcs = ['google/rpc/status.proto'],
deps = [
'@com_google_protobuf//:any_proto',
'@com_google_protobuf//:empty_proto',
],
visibility = ['//visibility:public'],
)
proto_library(
name = 'rpc_code',
srcs = ['google/rpc/code.proto'],
visibility = ['//visibility:public'],
)
proto_library(
name = 'type_money',
srcs = ['google/type/money.proto'],
visibility = ['//visibility:public'],
)
proto_library(
name = 'expr_v1beta1',
srcs = [
'google/api/expr/v1beta1/eval.proto',
'google/api/expr/v1beta1/value.proto',
],
deps = [
':rpc_status',
'@com_google_protobuf//:any_proto',
'@com_google_protobuf//:struct_proto',
],
visibility = ['//visibility:public'],
)
cc_proto_library(
name = 'cc_rpc_status',
deps = [':rpc_status'],
visibility = ['//visibility:public'],
)
cc_proto_library(
name = 'cc_rpc_code',
deps = [':rpc_code'],
visibility = ['//visibility:public'],
)
cc_proto_library(
name = 'cc_type_money',
deps = [':type_money'],
visibility = ['//visibility:public'],
)
cc_proto_library(
name = 'cc_expr_v1beta1',
deps = [':expr_v1beta1'],
visibility = ['//visibility:public'],
)
"""
)
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.12.0/rules_go-0.12.0.tar.gz",
sha256 = "c1f52b8789218bb1542ed362c4f7de7052abcf254d865d96fb7ba6d44bc15ee3",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()