aboutsummaryrefslogtreecommitdiffhomepage
path: root/jsoncpp.BUILD
blob: 2bb2e19a67f56248917b9c8dd8d09d26d09676df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
licenses(["notice"])  # MIT

JSON_HEADERS = [
    "include/json/assertions.h",
    "include/json/autolink.h",
    "include/json/config.h",
    "include/json/features.h",
    "include/json/forwards.h",
    "include/json/json.h",
    "src/lib_json/json_batchallocator.h",
    "include/json/reader.h",
    "include/json/value.h",
    "include/json/writer.h",
]

JSON_SOURCES = [
    "src/lib_json/json_reader.cpp",
    "src/lib_json/json_value.cpp",
    "src/lib_json/json_writer.cpp",
    "src/lib_json/json_tool.h",
]

INLINE_SOURCES = [
    "src/lib_json/json_valueiterator.inl",
]

cc_library(
    name = "jsoncpp",
    srcs = JSON_SOURCES,
    hdrs = JSON_HEADERS,
    includes = ["include"],
    textual_hdrs = INLINE_SOURCES,
    visibility = ["//visibility:public"],
)