Compare commits

...

2 Commits

Author SHA1 Message Date
Jordan Bayles
94f152714b remove the copts, that's unusual 2025-03-12 16:14:20 -07:00
Jordan Bayles
406f7e8ba9 Add jsoncpp_test bazel configuration
This patch adds a new configuration for jsoncpp_test in
the BUILD.bazel file.
2025-03-12 16:12:56 -07:00

View File

@@ -22,10 +22,6 @@ cc_library(
"include/json/version.h",
"include/json/writer.h",
],
copts = [
"-DJSON_USE_EXCEPTION=0",
"-DJSON_HAS_INT64",
],
includes = ["include"],
visibility = ["//visibility:public"],
deps = [":private"],
@@ -35,3 +31,22 @@ cc_library(
name = "private",
textual_hdrs = ["src/lib_json/json_valueiterator.inl"],
)
cc_binary(
name = "jsontestrunner",
srcs = ["src/jsontestrunner/main.cpp"],
includes = ["include"],
deps = [":jsoncpp"],
)
cc_binary(
name = "jsoncpp_test",
srcs = [
"src/test_lib_json/jsontest.cpp",
"src/test_lib_json/jsontest.h",
"src/test_lib_json/main.cpp",
"src/test_lib_json/fuzz.h",
"src/test_lib_json/fuzz.cpp",
],
deps = [":jsoncpp"],
)