mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-04-20 16:03:34 +02:00
Add jsoncpp_test bazel configuration
This patch adds a new configuration for jsoncpp_test in the BUILD.bazel file.
This commit is contained in:
parent
037752d9a1
commit
406f7e8ba9
21
BUILD.bazel
21
BUILD.bazel
@ -23,7 +23,7 @@ cc_library(
|
|||||||
"include/json/writer.h",
|
"include/json/writer.h",
|
||||||
],
|
],
|
||||||
copts = [
|
copts = [
|
||||||
"-DJSON_USE_EXCEPTION=0",
|
"-DJSON_USE_EXCEPTION=1",
|
||||||
"-DJSON_HAS_INT64",
|
"-DJSON_HAS_INT64",
|
||||||
],
|
],
|
||||||
includes = ["include"],
|
includes = ["include"],
|
||||||
@ -35,3 +35,22 @@ cc_library(
|
|||||||
name = "private",
|
name = "private",
|
||||||
textual_hdrs = ["src/lib_json/json_valueiterator.inl"],
|
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"],
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user