mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
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>
38 lines
769 B
Plaintext
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"],
|
|
)
|