Lines 5-39
filegroup(
Link Here
|
5 |
visibility = ["//visibility:public"], |
5 |
visibility = ["//visibility:public"], |
6 |
) |
6 |
) |
7 |
|
7 |
|
8 |
HEADERS = [ |
|
|
9 |
"include/json/allocator.h", |
10 |
"include/json/assertions.h", |
11 |
"include/json/autolink.h", |
12 |
"include/json/config.h", |
13 |
"include/json/features.h", |
14 |
"include/json/forwards.h", |
15 |
"include/json/json.h", |
16 |
"include/json/reader.h", |
17 |
"include/json/value.h", |
18 |
"include/json/version.h", |
19 |
"include/json/writer.h", |
20 |
] |
21 |
|
22 |
genrule( |
23 |
name = "link_headers", |
24 |
outs = HEADERS, |
25 |
cmd = """ |
26 |
for i in $(OUTS); do |
27 |
i=$${i##*/} |
28 |
ln -sf $(INCLUDEDIR)/jsoncpp/json/$$i $(@D)/include/json/$$i |
29 |
done |
30 |
""", |
31 |
) |
32 |
|
33 |
cc_library( |
8 |
cc_library( |
34 |
name = "jsoncpp", |
9 |
name = "jsoncpp", |
35 |
hdrs = HEADERS, |
|
|
36 |
includes = ["."], |
37 |
linkopts = ["-ljsoncpp"], |
10 |
linkopts = ["-ljsoncpp"], |
38 |
visibility = ["//visibility:public"], |
11 |
visibility = ["//visibility:public"], |
39 |
) |
12 |
) |
40 |
- |
|
|