WORKSPACE 1.72 KB
Newer Older
1
workspace(name = "com_google_protobuf")
2

3
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4

5 6
new_local_repository(
    name = "submodule_gmock",
7
    build_file = "@//:third_party/googletest/BUILD.bazel",
8
    path = "third_party/googletest",
9 10
)

11
http_archive(
12
    name = "six_archive",
13
    build_file = "@//:six.BUILD",
14
    sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
Dmitry Lomov's avatar
Dmitry Lomov committed
15
    urls = ["https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55"],
Jisi Liu's avatar
Jisi Liu committed
16 17
)

18 19 20 21 22 23 24
http_archive(
    name = "bazel_skylib",
    sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d",
    strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b",
    urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"],
)

25 26 27 28 29 30 31 32
http_archive(
    name = "net_zlib",
    build_file = "//:third_party/zlib.BUILD",
    sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
    strip_prefix = "zlib-1.2.11",
    urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
)

33
bind(
34 35
    name = "python_headers",
    actual = "//util/python:python_headers",
36 37 38
)

bind(
39
    name = "gtest",
40
    actual = "@submodule_gmock//:gtest",
41
)
Jisi Liu's avatar
Jisi Liu committed
42 43

bind(
44
    name = "gtest_main",
45
    actual = "@submodule_gmock//:gtest_main",
46 47 48 49 50
)

bind(
    name = "six",
    actual = "@six_archive//:six",
Jisi Liu's avatar
Jisi Liu committed
51
)
52 53

maven_jar(
54 55
    name = "guava_maven",
    artifact = "com.google.guava:guava:18.0",
56 57 58 59 60 61 62 63
)

bind(
    name = "guava",
    actual = "@guava_maven//jar",
)

maven_jar(
64
    name = "gson_maven",
Bo Yang's avatar
Bo Yang committed
65
    artifact = "com.google.code.gson:gson:2.7",
66 67 68 69 70 71
)

bind(
    name = "gson",
    actual = "@gson_maven//jar",
)
72 73 74 75 76

bind(
    name = "zlib",
    actual = "@net_zlib//:zlib",
)