Skip to content

Commit ca98c98

Browse files
authored
Add a BUILD.bazel file for //example. (#1602)
1 parent 037752d commit ca98c98

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

example/BUILD.bazel

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
cc_binary(
2+
name = "readFromStream_ok",
3+
srcs = ["readFromStream/readFromStream.cpp"],
4+
deps = ["//:jsoncpp"],
5+
args = ["$(location :readFromStream/withComment.json)"],
6+
data = ["readFromStream/withComment.json"],
7+
)
8+
9+
cc_binary(
10+
name = "readFromStream_err",
11+
srcs = ["readFromStream/readFromStream.cpp"],
12+
deps = ["//:jsoncpp"],
13+
args = ["$(location :readFromStream/errorFormat.json)"],
14+
data = ["readFromStream/errorFormat.json"],
15+
)
16+
17+
cc_binary(
18+
name = "readFromString",
19+
srcs = ["readFromString/readFromString.cpp"],
20+
deps = ["//:jsoncpp"],
21+
)
22+
23+
cc_binary(
24+
name = "streamWrite",
25+
srcs = ["streamWrite/streamWrite.cpp"],
26+
deps = ["//:jsoncpp"],
27+
)
28+
29+
cc_binary(
30+
name = "stringWrite",
31+
srcs = ["stringWrite/stringWrite.cpp"],
32+
deps = ["//:jsoncpp"],
33+
)

0 commit comments

Comments
 (0)