mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-14 15:05:34 +02:00
Compare commits
1 Commits
jsoncpp_te
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ca98c98457 |
23
BUILD.bazel
23
BUILD.bazel
@@ -22,6 +22,10 @@ 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"],
|
||||
@@ -31,22 +35,3 @@ 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"],
|
||||
)
|
||||
|
33
example/BUILD.bazel
Normal file
33
example/BUILD.bazel
Normal file
@@ -0,0 +1,33 @@
|
||||
cc_binary(
|
||||
name = "readFromStream_ok",
|
||||
srcs = ["readFromStream/readFromStream.cpp"],
|
||||
deps = ["//:jsoncpp"],
|
||||
args = ["$(location :readFromStream/withComment.json)"],
|
||||
data = ["readFromStream/withComment.json"],
|
||||
)
|
||||
|
||||
cc_binary(
|
||||
name = "readFromStream_err",
|
||||
srcs = ["readFromStream/readFromStream.cpp"],
|
||||
deps = ["//:jsoncpp"],
|
||||
args = ["$(location :readFromStream/errorFormat.json)"],
|
||||
data = ["readFromStream/errorFormat.json"],
|
||||
)
|
||||
|
||||
cc_binary(
|
||||
name = "readFromString",
|
||||
srcs = ["readFromString/readFromString.cpp"],
|
||||
deps = ["//:jsoncpp"],
|
||||
)
|
||||
|
||||
cc_binary(
|
||||
name = "streamWrite",
|
||||
srcs = ["streamWrite/streamWrite.cpp"],
|
||||
deps = ["//:jsoncpp"],
|
||||
)
|
||||
|
||||
cc_binary(
|
||||
name = "stringWrite",
|
||||
srcs = ["stringWrite/stringWrite.cpp"],
|
||||
deps = ["//:jsoncpp"],
|
||||
)
|
Reference in New Issue
Block a user