Add back nlohmann_json_lib dep needed by google-cloud-cpp

This commit is contained in:
Abhishek Kulkarni 2020-09-14 12:05:07 -07:00
parent a772f35ae7
commit 878acbdc4f
3 changed files with 14 additions and 0 deletions

View File

@ -137,6 +137,7 @@ tensorflow/third_party/nccl/archive.patch
tensorflow/third_party/nccl/build_defs.bzl.tpl
tensorflow/third_party/nccl/nccl_configure.bzl
tensorflow/third_party/nccl/system.BUILD.tpl
tensorflow/third_party/nlohmann_json.BUILD
tensorflow/third_party/opt_einsum.BUILD
tensorflow/third_party/pcre.BUILD
tensorflow/third_party/png.BUILD
@ -374,3 +375,4 @@ tensorflow/tools/pip_package/simple_console_for_windows.py
tensorflow/tools/pip_package/xla_build/CMakeLists.txt
tensorflow/virtual_root_template_v1.__init__.py
tensorflow/virtual_root_template_v2.__init__.py

View File

@ -1109,6 +1109,17 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
],
)
tf_http_archive(
name = "nlohmann_json_lib",
build_file = clean_dep("//third_party:nlohmann_json.BUILD"),
sha256 = "c377963a95989270c943d522bfefe7b889ef5ed0e1e15d535fd6f6f16ed70732",
strip_prefix = "json-3.4.0",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/nlohmann/json/archive/v3.4.0.tar.gz",
"https://github.com/nlohmann/json/archive/v3.4.0.tar.gz",
],
)
tf_http_archive(
name = "pybind11",
urls = [

View File

@ -5,6 +5,7 @@ exports_files(["LICENSE.MIT"])
cc_library(
name = "nlohmann_json_lib",
hdrs = glob([
"include/nlohmann/*.hpp",
"include/nlohmann/**/*.hpp",
]),
copts = [