提交 4656b708 编写于 作者: L Liangliang He

Update protobuf/gtest mirror and bazel version

上级 d86adc2a
...@@ -5,26 +5,26 @@ workspace(name = "mace") ...@@ -5,26 +5,26 @@ workspace(name = "mace")
# This statement defines the @com_google_protobuf repo. # This statement defines the @com_google_protobuf repo.
http_archive( http_archive(
name = "com_google_protobuf", name = "com_google_protobuf",
urls = ["https://github.com/google/protobuf/archive/b4b0e304be5a68de3d0ee1af9b286f958750f5e4.zip"], urls = ["http://v9.git.n.xiaomi.com/deep-learning/protobuf/repository/archive.zip?ref=b4b0e304be5a68de3d0ee1af9b286f958750f5e4"],
strip_prefix = "protobuf-b4b0e304be5a68de3d0ee1af9b286f958750f5e4", strip_prefix = "protobuf-b4b0e304be5a68de3d0ee1af9b286f958750f5e4-b4b0e304be5a68de3d0ee1af9b286f958750f5e4",
sha256 = "ff771a662fb6bd4d3cc209bcccedef3e93980a49f71df1e987f6afa3bcdcba3a", sha256 = "11087b7d623d066e9b58acf22e3d8f8433e2f3ce1248123bd61da4e109a3f30a",
) )
# cc_proto_library rules implicitly depend on @com_google_protobuf_cc//:cc_toolchain, # cc_proto_library rules implicitly depend on @com_google_protobuf_cc//:cc_toolchain,
# which is the C++ proto runtime (base classes and common utilities). # which is the C++ proto runtime (base classes and common utilities).
http_archive( http_archive(
name = "com_google_protobuf_cc", name = "com_google_protobuf_cc",
urls = ["https://github.com/google/protobuf/archive/b4b0e304be5a68de3d0ee1af9b286f958750f5e4.zip"], urls = ["http://v9.git.n.xiaomi.com/deep-learning/protobuf/repository/archive.zip?ref=b4b0e304be5a68de3d0ee1af9b286f958750f5e4"],
strip_prefix = "protobuf-b4b0e304be5a68de3d0ee1af9b286f958750f5e4", strip_prefix = "protobuf-b4b0e304be5a68de3d0ee1af9b286f958750f5e4-b4b0e304be5a68de3d0ee1af9b286f958750f5e4",
sha256 = "ff771a662fb6bd4d3cc209bcccedef3e93980a49f71df1e987f6afa3bcdcba3a", sha256 = "11087b7d623d066e9b58acf22e3d8f8433e2f3ce1248123bd61da4e109a3f30a",
) )
new_http_archive( new_http_archive(
name = "gtest", name = "gtest",
url = "https://github.com/google/googletest/archive/release-1.8.0.zip", url = "http://v9.git.n.xiaomi.com/deep-learning/googletest/repository/archive.zip?ref=release-1.8.0",
sha256 = "f3ed3b58511efd272eb074a3a6d6fb79d7c2e6a0e374323d1e6bcbcc1ef141bf", strip_prefix = "googletest-release-1.8.0-ec44c6c1675c25b9827aacd08c02433cccde7780/googletest",
sha256 = "a0b43a0a43cda0cc401a46d75519d961ef27f6674d4126366e47d9c946c4bbcd",
build_file = "mace/third_party/gtest.BUILD", build_file = "mace/third_party/gtest.BUILD",
strip_prefix = "googletest-release-1.8.0/googletest",
) )
# Set up Android NDK # Set up Android NDK
......
...@@ -60,7 +60,7 @@ RUN echo "startup --batch" >>/etc/bazel.bazelrc ...@@ -60,7 +60,7 @@ RUN echo "startup --batch" >>/etc/bazel.bazelrc
RUN echo "build --spawn_strategy=standalone --genrule_strategy=standalone" \ RUN echo "build --spawn_strategy=standalone --genrule_strategy=standalone" \
>>/etc/bazel.bazelrc >>/etc/bazel.bazelrc
# Install the most recent bazel release. # Install the most recent bazel release.
ENV BAZEL_VERSION 0.4.5 ENV BAZEL_VERSION 0.5.4
WORKDIR / WORKDIR /
RUN mkdir /bazel && \ RUN mkdir /bazel && \
cd /bazel && \ cd /bazel && \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册