blob: 4a65eab6e20fb8c0e4a1e7368ba9a8c31045fa21 [file] [log] [blame]
Carmelo Cascone72893b72018-08-09 00:59:06 -07001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
3PROTOBUF_VER = "3.6.1"
4SHA = "0a4c6d0678eb2f063df332cff1a41647ef692c067b5cfb19e51bca778e79d9e0"
5
6def generate_protobuf():
7 http_archive(
8 name = "com_google_protobuf",
Ray Milkey5063f5b2018-08-15 16:22:30 -07009 urls = ["https://github.com/google/protobuf/releases/download/v%s/protobuf-all-%s.zip" %
10 (PROTOBUF_VER, PROTOBUF_VER)],
Carmelo Cascone72893b72018-08-09 00:59:06 -070011 sha256 = SHA,
12 strip_prefix = "protobuf-" + PROTOBUF_VER,
13 )