Skip to content

Commit 375a111

Browse files
mglbcdunn2001
andauthored
Add support for Bazel build system (#1275)
Co-authored-by: Christopher Dunn <[email protected]>
1 parent 5fabc5e commit 375a111

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

BUILD.bazel

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
licenses(["unencumbered"]) # Public Domain or MIT
2+
3+
exports_files(["LICENSE"])
4+
5+
cc_library(
6+
name = "jsoncpp",
7+
srcs = [
8+
"src/lib_json/json_reader.cpp",
9+
"src/lib_json/json_tool.h",
10+
"src/lib_json/json_value.cpp",
11+
"src/lib_json/json_writer.cpp",
12+
],
13+
hdrs = [
14+
"include/json/allocator.h",
15+
"include/json/assertions.h",
16+
"include/json/config.h",
17+
"include/json/json_features.h",
18+
"include/json/forwards.h",
19+
"include/json/json.h",
20+
"include/json/reader.h",
21+
"include/json/value.h",
22+
"include/json/version.h",
23+
"include/json/writer.h",
24+
],
25+
copts = [
26+
"-DJSON_USE_EXCEPTION=0",
27+
"-DJSON_HAS_INT64",
28+
],
29+
includes = ["include"],
30+
visibility = ["//visibility:public"],
31+
deps = [":private"],
32+
)
33+
34+
cc_library(
35+
name = "private",
36+
textual_hdrs = ["src/lib_json/json_valueiterator.inl"],
37+
)

0 commit comments

Comments
 (0)