From 5b81784a138dfb3bf8513ac9e16e468a105af338 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen Date: Mon, 29 Jul 2019 00:06:42 -0400 Subject: [PATCH] Use recursive glob instead of listing files explicitly. --- BUILD | 6 ++---- nlohmann_json.bzl | 39 --------------------------------------- 2 files changed, 2 insertions(+), 43 deletions(-) delete mode 100644 nlohmann_json.bzl diff --git a/BUILD b/BUILD index 1551f8ece..80635384f 100644 --- a/BUILD +++ b/BUILD @@ -4,12 +4,10 @@ exports_files([ "LICENSE.MIT" ]) -load(":nlohmann_json.bzl", "nlohmann_json_hdrs", "nlohmann_json_srcs") - cc_library( name = "nlohmann_json", - srcs = nlohmann_json_srcs, - hdrs = nlohmann_json_hdrs, + srcs = [], + hdrs = glob(["include/**/*.hpp"]), includes = ["include"], deps = [], ) diff --git a/nlohmann_json.bzl b/nlohmann_json.bzl deleted file mode 100644 index a06ef55ac..000000000 --- a/nlohmann_json.bzl +++ /dev/null @@ -1,39 +0,0 @@ -nlohmann_json_hdrs = [ - "include/nlohmann/adl_serializer.hpp", - "include/nlohmann/json_fwd.hpp", - "include/nlohmann/thirdparty/hedley/hedley_undef.hpp", - "include/nlohmann/thirdparty/hedley/hedley.hpp", - "include/nlohmann/json.hpp", - "include/nlohmann/detail/json_pointer.hpp", - "include/nlohmann/detail/value_t.hpp", - "include/nlohmann/detail/input/json_sax.hpp", - "include/nlohmann/detail/input/lexer.hpp", - "include/nlohmann/detail/input/input_adapters.hpp", - "include/nlohmann/detail/input/position_t.hpp", - "include/nlohmann/detail/input/binary_reader.hpp", - "include/nlohmann/detail/input/parser.hpp", - "include/nlohmann/detail/iterators/internal_iterator.hpp", - "include/nlohmann/detail/iterators/iteration_proxy.hpp", - "include/nlohmann/detail/iterators/json_reverse_iterator.hpp", - "include/nlohmann/detail/iterators/iterator_traits.hpp", - "include/nlohmann/detail/iterators/iter_impl.hpp", - "include/nlohmann/detail/iterators/primitive_iterator.hpp", - "include/nlohmann/detail/json_ref.hpp", - "include/nlohmann/detail/macro_scope.hpp", - "include/nlohmann/detail/macro_unscope.hpp", - "include/nlohmann/detail/exceptions.hpp", - "include/nlohmann/detail/output/output_adapters.hpp", - "include/nlohmann/detail/output/serializer.hpp", - "include/nlohmann/detail/output/binary_writer.hpp", - "include/nlohmann/detail/conversions/from_json.hpp", - "include/nlohmann/detail/conversions/to_chars.hpp", - "include/nlohmann/detail/conversions/to_json.hpp", - "include/nlohmann/detail/meta/void_t.hpp", - "include/nlohmann/detail/meta/cpp_future.hpp", - "include/nlohmann/detail/meta/detected.hpp", - "include/nlohmann/detail/meta/is_sax.hpp", - "include/nlohmann/detail/meta/type_traits.hpp", -] - -nlohmann_json_srcs = [ -]