James Kuszmaul | 2cffe85 | 2021-10-27 20:17:49 -0700 | [diff] [blame] | 1 | genrule( |
2 | name = "make_stubs_public", | ||||
3 | outs = ["snappy-stubs-public.h"], | ||||
4 | cmd = "echo \"#include <cstddef>\n#include <sys/uio.h>\n\" > $@", | ||||
5 | ) | ||||
6 | |||||
7 | cc_library( | ||||
8 | name = "snappy", | ||||
9 | srcs = [ | ||||
10 | "snappy.cc", | ||||
11 | "snappy-internal.h", | ||||
12 | "snappy-sinksource.cc", | ||||
13 | "snappy-sinksource.h", | ||||
14 | "snappy-stubs-internal.cc", | ||||
15 | "snappy-stubs-internal.h", | ||||
16 | ], | ||||
17 | hdrs = [ | ||||
18 | "snappy.h", | ||||
19 | "snappy-stubs-public.h", | ||||
20 | ], | ||||
21 | copts = ["-Wno-sign-compare"], | ||||
22 | ) |