WORKSPACE 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing,
  12. # software distributed under the License is distributed on an
  13. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. # KIND, either express or implied. See the License for the
  15. # specific language governing permissions and limitations
  16. # under the License.
  17. workspace(name = "com_github_brpc_brpc")
  18. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  19. skylib_version = "0.8.0"
  20. http_archive(
  21. name = "bazel_skylib",
  22. type = "tar.gz",
  23. url = "https://github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel-skylib.{}.tar.gz".format (skylib_version, skylib_version),
  24. sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e",
  25. )
  26. http_archive(
  27. name = "com_google_protobuf",
  28. strip_prefix = "protobuf-3.6.1.3",
  29. sha256 = "9510dd2afc29e7245e9e884336f848c8a6600a14ae726adb6befdb4f786f0be2",
  30. type = "zip",
  31. url = "https://github.com/protocolbuffers/protobuf/archive/v3.6.1.3.zip",
  32. )
  33. http_archive(
  34. name = "com_github_gflags_gflags",
  35. strip_prefix = "gflags-46f73f88b18aee341538c0dfc22b1710a6abedef",
  36. url = "https://github.com/gflags/gflags/archive/46f73f88b18aee341538c0dfc22b1710a6abedef.tar.gz",
  37. )
  38. bind(
  39. name = "gflags",
  40. actual = "@com_github_gflags_gflags//:gflags",
  41. )
  42. http_archive(
  43. name = "com_github_google_leveldb",
  44. build_file = "//:leveldb.BUILD",
  45. strip_prefix = "leveldb-a53934a3ae1244679f812d998a4f16f2c7f309a6",
  46. url = "https://github.com/google/leveldb/archive/a53934a3ae1244679f812d998a4f16f2c7f309a6.tar.gz"
  47. )
  48. http_archive(
  49. name = "com_github_google_glog",
  50. build_file = "//:glog.BUILD",
  51. strip_prefix = "glog-a6a166db069520dbbd653c97c2e5b12e08a8bb26",
  52. url = "https://github.com/google/glog/archive/a6a166db069520dbbd653c97c2e5b12e08a8bb26.tar.gz"
  53. )
  54. http_archive(
  55. name = "com_google_googletest",
  56. strip_prefix = "googletest-0fe96607d85cf3a25ac40da369db62bbee2939a5",
  57. url = "https://github.com/google/googletest/archive/0fe96607d85cf3a25ac40da369db62bbee2939a5.tar.gz",
  58. )
  59. new_local_repository(
  60. name = "openssl",
  61. path = "/usr",
  62. build_file = "//:openssl.BUILD",
  63. )
  64. new_local_repository(
  65. name = "openssl_macos",
  66. build_file = "//:openssl.BUILD",
  67. path = "/usr/local/opt/openssl",
  68. )
  69. bind(
  70. name = "ssl",
  71. actual = "@openssl//:ssl"
  72. )
  73. bind(
  74. name = "ssl_macos",
  75. actual = "@openssl_macos//:ssl"
  76. )
  77. new_local_repository(
  78. name = "zlib",
  79. build_file = "//:zlib.BUILD",
  80. path = "/usr",
  81. )