Nicolas "Pixel" Noble | 31d11db | 2016-10-20 09:29:46 +0200 | [diff] [blame^] | 1 | def grpc_cc_library(name, srcs = [], hdrs = [], deps = [], standalone = False, language = "C++"): |
| 2 | copts = [] |
| 3 | if language == "C": |
| 4 | copts = ["-std=c99"] |
| 5 | native.cc_library( |
| 6 | name = name, |
| 7 | srcs = srcs, |
| 8 | hdrs = hdrs, |
| 9 | deps = deps, |
| 10 | copts = copts, |
| 11 | includes = [ |
| 12 | "include" |
| 13 | ] |
| 14 | ) |
| 15 | |
| 16 | |
| 17 | def nanopb(): |
| 18 | native.cc_library( |
| 19 | name = "nanopb", |
| 20 | srcs = [ |
| 21 | '//third_party/nanopb/pb_common.c', |
| 22 | '//third_party/nanopb/pb_decode.c', |
| 23 | '//third_party/nanopb/pb_encode.c', |
| 24 | ], |
| 25 | hdrs = [ |
| 26 | '//third_party/nanopb/pb.h', |
| 27 | '//third_party/nanopb/pb_common.h', |
| 28 | '//third_party/nanopb/pb_decode.h', |
| 29 | '//third_party/nanopb/pb_encode.h', |
| 30 | ] |
| 31 | ) |