blob: 36876800242dd37e1e70aee50e381639a87ee56b [file] [log] [blame]
Jakob Buchgraber699c0eb2017-09-05 17:15:10 +02001workspace(name = "com_google_protobuf")
Cody Schroeder802d5432018-12-11 11:58:26 -08002
Dmitry Lomov31232c92018-06-12 14:03:16 +02003load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Kent Rossb6375e02019-02-26 10:07:55 -08004load("//:protobuf_deps.bzl", "protobuf_deps")
5
6# Load common dependencies.
7protobuf_deps()
Jakob Buchgraber699c0eb2017-09-05 17:15:10 +02008
Carlos O'Ryan3c5442a2018-03-26 16:54:32 -04009new_local_repository(
10 name = "submodule_gmock",
Cody Schroeder802d5432018-12-11 11:58:26 -080011 build_file = "@//:third_party/googletest/BUILD.bazel",
Carlos O'Ryan3c5442a2018-03-26 16:54:32 -040012 path = "third_party/googletest",
Jisi Liu7a0c4312015-06-18 16:45:27 -070013)
14
Dmitry Lomov31232c92018-06-12 14:03:16 +020015http_archive(
David Z. Chen985c9682016-02-11 18:11:10 -080016 name = "six_archive",
Dmitry Lomov8be69672018-06-13 11:06:18 +020017 build_file = "@//:six.BUILD",
Adrian Ludwin1327e6f2016-09-09 12:45:37 -040018 sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
Dmitry Lomove62c1bd2018-06-12 14:09:17 +020019 urls = ["https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55"],
Jisi Liufbc51b72015-10-22 13:38:17 -070020)
21
Jingwen Chenb2a19082018-01-12 18:42:22 -050022http_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"],
27)
28
Jisi Liu7a0c4312015-06-18 16:45:27 -070029bind(
David Z. Chen985c9682016-02-11 18:11:10 -080030 name = "python_headers",
31 actual = "//util/python:python_headers",
Jisi Liu7a0c4312015-06-18 16:45:27 -070032)
33
34bind(
David Z. Chen985c9682016-02-11 18:11:10 -080035 name = "gtest",
Carlos O'Ryan3c5442a2018-03-26 16:54:32 -040036 actual = "@submodule_gmock//:gtest",
Jisi Liu7a0c4312015-06-18 16:45:27 -070037)
Jisi Liufbc51b72015-10-22 13:38:17 -070038
39bind(
David Z. Chen985c9682016-02-11 18:11:10 -080040 name = "gtest_main",
Carlos O'Ryan3c5442a2018-03-26 16:54:32 -040041 actual = "@submodule_gmock//:gtest_main",
David Z. Chen985c9682016-02-11 18:11:10 -080042)
43
44bind(
45 name = "six",
46 actual = "@six_archive//:six",
Jisi Liufbc51b72015-10-22 13:38:17 -070047)
Steven Parkesa9244ca2016-03-10 17:50:25 -080048
49maven_jar(
Adrian Ludwin1327e6f2016-09-09 12:45:37 -040050 name = "guava_maven",
51 artifact = "com.google.guava:guava:18.0",
Steven Parkesa9244ca2016-03-10 17:50:25 -080052)
53
54bind(
55 name = "guava",
56 actual = "@guava_maven//jar",
57)
58
59maven_jar(
Adrian Ludwin1327e6f2016-09-09 12:45:37 -040060 name = "gson_maven",
Bo Yangb28ab732016-09-20 22:04:48 +000061 artifact = "com.google.code.gson:gson:2.7",
Steven Parkesa9244ca2016-03-10 17:50:25 -080062)
63
64bind(
65 name = "gson",
66 actual = "@gson_maven//jar",
67)
David Ostrovsky35c9a5f2019-03-03 21:57:33 +010068
69maven_jar(
70 name = "error_prone_annotations_maven",
71 artifact = "com.google.errorprone:error_prone_annotations:2.3.2",
72)
73
74bind(
75 name = "error_prone_annotations",
76 actual = "@error_prone_annotations_maven//jar",
77)