kse-01/tensorflow/third_party/systemlibs/jsoncpp.BUILD
github-classroom[bot] 1122cdd8b0
Initial commit
2023-10-09 11:37:31 +00:00

39 lines
834 B (Stored with Git LFS)
Text

licenses(["unencumbered"]) # Public Domain or MIT
filegroup(
name = "LICENSE",
visibility = ["//visibility:public"],
)
HEADERS = [
"include/json/allocator.h",
"include/json/assertions.h",
"include/json/autolink.h",
"include/json/config.h",
"include/json/features.h",
"include/json/forwards.h",
"include/json/json.h",
"include/json/reader.h",
"include/json/value.h",
"include/json/version.h",
"include/json/writer.h",
]
genrule(
name = "link_headers",
outs = HEADERS,
cmd = """
for i in $(OUTS); do
i=$${i##*/}
ln -sf $(INCLUDEDIR)/jsoncpp/json/$$i $(@D)/include/json/$$i
done
""",
)
cc_library(
name = "jsoncpp",
hdrs = HEADERS,
includes = ["."],
linkopts = ["-ljsoncpp"],
visibility = ["//visibility:public"],
)