Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The jsoncpp headers are included with a different path so we have to symlnk them so the are in the dir structure that is expected. Signed-off-by: Jason Zaman <jason@perfinion.com>
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
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"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ VALID_LIBS=[ | |
"grpc", | ||
"jemalloc", | ||
"jpeg", | ||
"jsoncpp_git", | ||
"lmdb", | ||
"nasm", | ||
"org_sqlite", | ||
|