blob: 1d6d1a42c2dfe750745d2ea12bcefc5c8093b97a [file] [log] [blame]
Nicolas "Pixel" Noble31d11db2016-10-20 09:29:46 +02001def 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
17def 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 )