blob: 46292570af3f50b584b6084f04860e35cfe536c8 [file] [log] [blame]
Carmelo Cascone72893b72018-08-09 00:59:06 -07001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Ray Milkey472d8392018-05-23 17:06:51 -07002
Carmelo Cascone3effb542020-08-08 19:30:18 -07003P4RUNTIME_VER = "1.2.0"
4P4RUNTIME_SHA = "0fce7e06c63e60a8cddfe56f3db3d341953560c054d4c09ffda0e84476124f5a"
Ray Milkey472d8392018-05-23 17:06:51 -07005
6def generate_p4lang():
Carmelo Cascone72893b72018-08-09 00:59:06 -07007 http_archive(
8 name = "com_github_p4lang_p4runtime",
Carmelo Casconee45902b2018-12-18 13:30:45 -08009 urls = ["https://github.com/p4lang/p4runtime/archive/v%s.zip" % P4RUNTIME_VER],
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070010 sha256 = P4RUNTIME_SHA,
Carmelo Casconee45902b2018-12-18 13:30:45 -080011 strip_prefix = "p4runtime-%s/proto" % P4RUNTIME_VER,
Ray Milkey5063f5b2018-08-15 16:22:30 -070012 build_file = "//tools/build/bazel:p4runtime_BUILD",
Ray Milkey472d8392018-05-23 17:06:51 -070013 )