Files
tensorflow/third_party/systemlibs/jsoncpp.BUILD
Jason Zaman 209e4d12a2 third_party: unbundle jsoncpp dep
The jsoncpp headers are included with a different path so we have to
symlink them so the are in the dir structure that is expected.

Signed-off-by: Jason Zaman <jason@perfinion.com>
2018-07-13 11:25:51 +08:00

38 lines
769 B
Plaintext

licenses(["unencumbered"]) # Public Domain or MIT
filegroup(
name = "LICENSE",
visibility = ["//visibility:public"],
)
HEADERS = [
"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 -vsf /usr/include/jsoncpp/json/$$i $(@D)/include/json/$$i
done
""",
)
cc_library(
name = "jsoncpp",
hdrs = HEADERS,
includes = ["."],
linkopts = ["-ljsoncpp"],
visibility = ["//visibility:public"],
)