Kaido Kert | 25902c6 | 2024-06-17 17:10:28 -0700 | [diff] [blame^] | 1 | workspace(name = "com_google_protobuf") |
| 2 | |
| 3 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 4 | load("//:protobuf_deps.bzl", "protobuf_deps") |
| 5 | |
| 6 | # Load common dependencies. |
| 7 | protobuf_deps() |
| 8 | |
| 9 | new_local_repository( |
| 10 | name = "submodule_gmock", |
| 11 | build_file = "@//:third_party/googletest/BUILD.bazel", |
| 12 | path = "third_party/googletest", |
David Ghandehari | 175e9c8 | 2017-02-21 15:46:11 -0800 | [diff] [blame] | 13 | ) |
| 14 | |
Kaido Kert | 25902c6 | 2024-06-17 17:10:28 -0700 | [diff] [blame^] | 15 | http_archive( |
David Ghandehari | 175e9c8 | 2017-02-21 15:46:11 -0800 | [diff] [blame] | 16 | name = "six_archive", |
Kaido Kert | 25902c6 | 2024-06-17 17:10:28 -0700 | [diff] [blame^] | 17 | build_file = "@//:six.BUILD", |
David Ghandehari | 175e9c8 | 2017-02-21 15:46:11 -0800 | [diff] [blame] | 18 | sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", |
Kaido Kert | 25902c6 | 2024-06-17 17:10:28 -0700 | [diff] [blame^] | 19 | urls = ["https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55"], |
| 20 | ) |
| 21 | |
| 22 | http_archive( |
| 23 | name = "bazel_skylib", |
| 24 | sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d", |
| 25 | strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b", |
| 26 | urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"], |
David Ghandehari | 175e9c8 | 2017-02-21 15:46:11 -0800 | [diff] [blame] | 27 | ) |
| 28 | |
| 29 | bind( |
| 30 | name = "python_headers", |
| 31 | actual = "//util/python:python_headers", |
| 32 | ) |
| 33 | |
| 34 | bind( |
| 35 | name = "gtest", |
Kaido Kert | 25902c6 | 2024-06-17 17:10:28 -0700 | [diff] [blame^] | 36 | actual = "@submodule_gmock//:gtest", |
David Ghandehari | 175e9c8 | 2017-02-21 15:46:11 -0800 | [diff] [blame] | 37 | ) |
| 38 | |
| 39 | bind( |
| 40 | name = "gtest_main", |
Kaido Kert | 25902c6 | 2024-06-17 17:10:28 -0700 | [diff] [blame^] | 41 | actual = "@submodule_gmock//:gtest_main", |
David Ghandehari | 175e9c8 | 2017-02-21 15:46:11 -0800 | [diff] [blame] | 42 | ) |
| 43 | |
| 44 | bind( |
| 45 | name = "six", |
| 46 | actual = "@six_archive//:six", |
| 47 | ) |
| 48 | |
| 49 | maven_jar( |
Kaido Kert | 25902c6 | 2024-06-17 17:10:28 -0700 | [diff] [blame^] | 50 | name = "guava_maven", |
| 51 | artifact = "com.google.guava:guava:18.0", |
David Ghandehari | 175e9c8 | 2017-02-21 15:46:11 -0800 | [diff] [blame] | 52 | ) |
| 53 | |
| 54 | bind( |
| 55 | name = "guava", |
| 56 | actual = "@guava_maven//jar", |
| 57 | ) |
| 58 | |
| 59 | maven_jar( |
Kaido Kert | 25902c6 | 2024-06-17 17:10:28 -0700 | [diff] [blame^] | 60 | name = "gson_maven", |
| 61 | artifact = "com.google.code.gson:gson:2.7", |
David Ghandehari | 175e9c8 | 2017-02-21 15:46:11 -0800 | [diff] [blame] | 62 | ) |
| 63 | |
| 64 | bind( |
| 65 | name = "gson", |
| 66 | actual = "@gson_maven//jar", |
| 67 | ) |
Kaido Kert | 25902c6 | 2024-06-17 17:10:28 -0700 | [diff] [blame^] | 68 | |
| 69 | maven_jar( |
| 70 | name = "error_prone_annotations_maven", |
| 71 | artifact = "com.google.errorprone:error_prone_annotations:2.3.2", |
| 72 | ) |
| 73 | |
| 74 | bind( |
| 75 | name = "error_prone_annotations", |
| 76 | actual = "@error_prone_annotations_maven//jar", |
| 77 | ) |