Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 1 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 2 | |
Carmelo Cascone | c0b23a4 | 2019-04-25 13:50:54 -0700 | [diff] [blame] | 3 | PROTOBUF_VERSION = "3.6.1.3" |
Carmelo Cascone | 0f8b7be | 2019-01-29 16:10:57 -0800 | [diff] [blame] | 4 | SHA = "9510dd2afc29e7245e9e884336f848c8a6600a14ae726adb6befdb4f786f0be2" |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 5 | |
| 6 | def generate_protobuf(): |
| 7 | http_archive( |
| 8 | name = "com_google_protobuf", |
Carmelo Cascone | 0f8b7be | 2019-01-29 16:10:57 -0800 | [diff] [blame] | 9 | urls = ["https://github.com/protocolbuffers/protobuf/archive/v%s.zip" % |
Carmelo Cascone | bde9beb | 2019-02-08 14:40:56 -0800 | [diff] [blame] | 10 | PROTOBUF_VERSION], |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 11 | sha256 = SHA, |
Carmelo Cascone | bde9beb | 2019-02-08 14:40:56 -0800 | [diff] [blame] | 12 | strip_prefix = "protobuf-" + PROTOBUF_VERSION, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 13 | ) |