|
| 1 | +# **************************************************************** |
| 2 | +# List of external dependencies |
| 3 | +# **************************************************************** |
| 4 | + |
| 5 | +DEPS = { |
| 6 | + |
| 7 | + # Grpc repo is required by multiple languages but we put it here. |
| 8 | + "com_github_grpc_grpc": { |
| 9 | + "rule": "git_repository", |
| 10 | + "remote": "https://github.com/grpc/grpc.git", |
| 11 | + "init_submodules": True, |
| 12 | + "commit": "673fa6c88b8abd542ae50c4480de92880a1e4777", |
| 13 | + }, |
| 14 | + |
| 15 | + # Hooray! The boringssl team provides a "master-with-bazel" branch |
| 16 | + # with all BUILD files ready to go. To update, pick the |
| 17 | + # newest-ish commit-id off that branch. |
| 18 | + "boringssl": { |
| 19 | + "rule": "git_repository", |
| 20 | + "remote": "https://boringssl.googlesource.com/boringssl", |
| 21 | + "commit": "36b3ab3e5d3a4892444a698f7989f2150824d804", # Aug 3 2016 |
| 22 | + }, |
| 23 | + |
| 24 | + # libssl is required for c++ grpc where it is expected in |
| 25 | + # //external:libssl. This can be either boringssl or openssl. |
| 26 | + "libssl": { |
| 27 | + "rule": "bind", |
| 28 | + "actual": "@boringssl//:ssl", |
| 29 | + }, |
| 30 | + |
| 31 | + # C-library for zlib |
| 32 | + "com_github_madler_zlib": { |
| 33 | + "rule": "new_git_repository", |
| 34 | + "remote": "https://github.com/madler/zlib", |
| 35 | + "tag": "v1.2.8", |
| 36 | + "build_file": str(Label("//protobuf:build_file/com_github_madler_zlib.BUILD")), |
| 37 | + }, |
| 38 | + |
| 39 | + # grpc++ expects //external:zlib |
| 40 | + "zlib": { |
| 41 | + "rule": "bind", |
| 42 | + "actual": "@com_github_madler_zlib//:zlib", |
| 43 | + }, |
| 44 | + |
| 45 | + # grpc++ expects "//external:protobuf_clib" |
| 46 | + "protobuf_clib": { |
| 47 | + "rule": "bind", |
| 48 | + "actual": "@com_github_google_protobuf//:protobuf", |
| 49 | + }, |
| 50 | + |
| 51 | + # grpc++ requires nanobp (and now has a BUILD file!) |
| 52 | + "com_github_nanopb_nanopb": { |
| 53 | + "rule": "git_repository", |
| 54 | + "remote": "https://github.com/nanopb/nanopb.git", |
| 55 | + "commit": "91bb64a47b36b112c9b22391ef76fab29cf2cffc", # Sep 1 2016 |
| 56 | + }, |
| 57 | + |
| 58 | + # grpc++ expects //external:nanopb |
| 59 | + "nanopb": { |
| 60 | + "rule": "bind", |
| 61 | + "actual": "@com_github_nanopb_nanopb//:nanopb", |
| 62 | + }, |
| 63 | + |
| 64 | + # Bind the executable cc_binary grpc plugin into |
| 65 | + # //external:protoc_gen_grpc_cpp. Expects |
| 66 | + # //external:protobuf_compiler. TODO: is it really necessary to |
| 67 | + # bind it in external? |
| 68 | + "protoc_gen_grpc_cpp": { |
| 69 | + "rule": "bind", |
| 70 | + "actual": "@com_github_grpc_grpc//:grpc_cpp_plugin", |
| 71 | + }, |
| 72 | + |
| 73 | + # Bind the protobuf proto_lib into //external. Required for |
| 74 | + # compiling the protoc_gen_grpc plugin |
| 75 | + "protobuf_compiler": { |
| 76 | + "rule": "bind", |
| 77 | + "actual": "@com_github_google_protobuf//:protoc_lib", |
| 78 | + }, |
| 79 | + |
| 80 | + # GTest is for our own internal cc tests. |
| 81 | + "gtest": { |
| 82 | + "rule": "new_git_repository", |
| 83 | + "remote": "https://github.com/google/googletest.git", |
| 84 | + "commit": "ed9d1e1ff92ce199de5ca2667a667cd0a368482a", |
| 85 | + "build_file": str(Label("//protobuf:build_file/gtest.BUILD")), |
| 86 | + }, |
| 87 | + |
| 88 | +} |
0 commit comments