diff --git a/WORKSPACE b/WORKSPACE index d1430a05..b317f629 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -80,6 +80,24 @@ cc_library( urls = ["https://github.com/aappleby/smhasher/archive/master.zip"], ) +http_archive( + name = "nlohmann_json", + strip_prefix = "json-3.10.5", + build_file_content = """ +cc_library( + name = "json", + hdrs = glob([ + "include/nlohmann/**/*.hpp", + ]), + includes = ["include"], + visibility = ["//visibility:public"], + alwayslink = True, +)""", + urls = [ + "https://github.com/nlohmann/json/archive/refs/tags/v3.10.5.tar.gz", + ], +) + load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") # Load common dependencies. protobuf_deps() diff --git a/internal/platform/implementation/windows/BUILD b/internal/platform/implementation/windows/BUILD index f102b395..e76c9872 100644 --- a/internal/platform/implementation/windows/BUILD +++ b/internal/platform/implementation/windows/BUILD @@ -192,7 +192,6 @@ cc_library( "//internal/platform/implementation/shared:count_down_latch", "//internal/platform/implementation/shared:file", "//internal/platform/implementation/windows/generated:types", - "//third_party/json", "@com_google_absl//absl/container:flat_hash_map", "@com_google_absl//absl/memory", "@com_google_absl//absl/status", @@ -201,6 +200,7 @@ cc_library( "@com_google_absl//absl/strings:str_format", "@com_google_absl//absl/synchronization", "@com_google_absl//absl/time", + "@nlohmann_json//:json", ], ) @@ -218,7 +218,7 @@ cc_library( ], deps = [ "//internal/platform:base", - "//third_party/json", + "@nlohmann_json//:json", ], )