workspace.bzl 821 B

123456789101112131415161718192021222324
  1. # TensorFlow external dependencies that can be loaded in WORKSPACE files.
  2. load("//vendor:repo.bzl", "bili_http_archive")
  3. # Sanitize a dependency so that it works correctly from code that includes
  4. # TensorFlow as a submodule.
  5. def clean_dep(dep):
  6. return str(Label(dep))
  7. # If TensorFlow is linked as a submodule.
  8. # path_prefix is no longer used.
  9. # tf_repo_name is thought to be under consideration.
  10. def bili_workspace(path_prefix="", tf_repo_name=""):
  11. # Note that we check the minimum bazel version in WORKSPACE.
  12. bili_http_archive(
  13. name = "pcre",
  14. sha256 = "84c3c4d2eb9166aaed44e39b89e4b6a49eac6fed273bdb844c94fb6c8bdda1b5",
  15. urls = [
  16. "http://bazel-cabin.bilibili.co/clib/pcre-8.42.zip",
  17. ],
  18. strip_prefix = "pcre-8.42",
  19. build_file = clean_dep("//vendor:pcre.BUILD"),
  20. )