blob: bf7e62b44cadc5a959be0ee1e8ae0de5c186e005 [file] [log] [blame]
Carmelo Cascone72893b72018-08-09 00:59:06 -07001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Carmelo Casconebde9beb2019-02-08 14:40:56 -08002load("//tools/build/bazel:variables.bzl", "PROTOBUF_VERSION")
Carmelo Cascone72893b72018-08-09 00:59:06 -07003
Carmelo Cascone0f8b7be2019-01-29 16:10:57 -08004SHA = "9510dd2afc29e7245e9e884336f848c8a6600a14ae726adb6befdb4f786f0be2"
Carmelo Cascone72893b72018-08-09 00:59:06 -07005
6def generate_protobuf():
7 http_archive(
8 name = "com_google_protobuf",
Carmelo Cascone0f8b7be2019-01-29 16:10:57 -08009 urls = ["https://github.com/protocolbuffers/protobuf/archive/v%s.zip" %
Carmelo Casconebde9beb2019-02-08 14:40:56 -080010 PROTOBUF_VERSION],
Carmelo Cascone72893b72018-08-09 00:59:06 -070011 sha256 = SHA,
Carmelo Casconebde9beb2019-02-08 14:40:56 -080012 strip_prefix = "protobuf-" + PROTOBUF_VERSION,
Carmelo Cascone72893b72018-08-09 00:59:06 -070013 )