Skip to content

Commit

Permalink
Add support for Bazel build system (#1275)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Dunn <[email protected]>
  • Loading branch information
mglb and cdunn2001 authored May 6, 2021
1 parent 5fabc5e commit 375a111
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
licenses(["unencumbered"]) # Public Domain or MIT

exports_files(["LICENSE"])

cc_library(
name = "jsoncpp",
srcs = [
"src/lib_json/json_reader.cpp",
"src/lib_json/json_tool.h",
"src/lib_json/json_value.cpp",
"src/lib_json/json_writer.cpp",
],
hdrs = [
"include/json/allocator.h",
"include/json/assertions.h",
"include/json/config.h",
"include/json/json_features.h",
"include/json/forwards.h",
"include/json/json.h",
"include/json/reader.h",
"include/json/value.h",
"include/json/version.h",
"include/json/writer.h",
],
copts = [
"-DJSON_USE_EXCEPTION=0",
"-DJSON_HAS_INT64",
],
includes = ["include"],
visibility = ["//visibility:public"],
deps = [":private"],
)

cc_library(
name = "private",
textual_hdrs = ["src/lib_json/json_valueiterator.inl"],
)

0 comments on commit 375a111

Please sign in to comment.