diff --git a/WORKSPACE b/WORKSPACE index 84ab876bc7..9a8ef94268 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -78,3 +78,12 @@ http_archive( strip_prefix = "benchmark-1.5.0", urls = ["https://github.com/google/benchmark/archive/v1.5.0.tar.gz"], ) + +http_archive( + name = "github_nlohmann_json", + sha256 = "69cc88207ce91347ea530b227ff0776db82dcb8de6704e1a3d74f4841bc651cf", + urls = [ + "https://github.com/nlohmann/json/releases/download/v3.6.1/include.zip", + ], + build_file = "//third_party:nlohmann_json.BUILD", +) diff --git a/third_party/json/BUILD b/third_party/json/BUILD new file mode 100644 index 0000000000..8ef196cd85 --- /dev/null +++ b/third_party/json/BUILD @@ -0,0 +1 @@ +exports_files(["LICENSE"]) diff --git a/third_party/json/nlohmann_json.BUILD b/third_party/json/nlohmann_json.BUILD new file mode 100644 index 0000000000..cd2d93eef6 --- /dev/null +++ b/third_party/json/nlohmann_json.BUILD @@ -0,0 +1,14 @@ +licenses(["notice"]) # 3-Clause BSD + +exports_files(["LICENSE.MIT"]) + +cc_library( + name = "json", + hdrs = glob([ + "include/**/*.hpp", + ]), + includes = ["include"], + visibility = ["//visibility:public"], + alwayslink = 1, +) +