Skip to content

Commit 406f7e8

Browse files
committed
Add jsoncpp_test bazel configuration
This patch adds a new configuration for jsoncpp_test in the BUILD.bazel file.
1 parent 037752d commit 406f7e8

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

BUILD.bazel

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cc_library(
2323
"include/json/writer.h",
2424
],
2525
copts = [
26-
"-DJSON_USE_EXCEPTION=0",
26+
"-DJSON_USE_EXCEPTION=1",
2727
"-DJSON_HAS_INT64",
2828
],
2929
includes = ["include"],
@@ -35,3 +35,22 @@ cc_library(
3535
name = "private",
3636
textual_hdrs = ["src/lib_json/json_valueiterator.inl"],
3737
)
38+
39+
cc_binary(
40+
name = "jsontestrunner",
41+
srcs = ["src/jsontestrunner/main.cpp"],
42+
includes = ["include"],
43+
deps = [":jsoncpp"],
44+
)
45+
46+
cc_binary(
47+
name = "jsoncpp_test",
48+
srcs = [
49+
"src/test_lib_json/jsontest.cpp",
50+
"src/test_lib_json/jsontest.h",
51+
"src/test_lib_json/main.cpp",
52+
"src/test_lib_json/fuzz.h",
53+
"src/test_lib_json/fuzz.cpp",
54+
],
55+
deps = [":jsoncpp"],
56+
)

0 commit comments

Comments
 (0)