From 4ab991c41bc93211c7c6a1ebf660ef34167bcfad Mon Sep 17 00:00:00 2001 From: horance Date: Thu, 23 May 2019 06:45:40 +0800 Subject: [PATCH] user can deps nlohmann json using bazel directly --- BUILD.bazel | 13 +++++++++++++ WORKSPACE | 1 + 2 files changed, 14 insertions(+) create mode 100644 BUILD.bazel create mode 100644 WORKSPACE diff --git a/BUILD.bazel b/BUILD.bazel new file mode 100644 index 000000000..b8c097308 --- /dev/null +++ b/BUILD.bazel @@ -0,0 +1,13 @@ +licenses(["notice"]) # 3-Clause BSD + +exports_files(["LICENSE.MIT"]) + +cc_library( + name = "json", + hdrs = glob([ + "include/**/*.hpp", + ]), + includes = ["include"], + visibility = ["//visibility:public"], + alwayslink = 1, +) diff --git a/WORKSPACE b/WORKSPACE new file mode 100644 index 000000000..2b2ae9dba --- /dev/null +++ b/WORKSPACE @@ -0,0 +1 @@ +workspace(name = "nlohmann_json")