blob: c18c57f087a7c3d0b5c74af4f3fb30f13ba17747 [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,
Nicolas "Pixel" Noble60ca22f2016-10-20 10:23:53 +020011 linkopts = ["-pthread"],
Nicolas "Pixel" Noble31d11db2016-10-20 09:29:46 +020012 includes = [
13 "include"
14 ]
15 )
16
17
18def nanopb():
19 native.cc_library(
20 name = "nanopb",
21 srcs = [
22 '//third_party/nanopb/pb_common.c',
23 '//third_party/nanopb/pb_decode.c',
24 '//third_party/nanopb/pb_encode.c',
25 ],
26 hdrs = [
27 '//third_party/nanopb/pb.h',
28 '//third_party/nanopb/pb_common.h',
29 '//third_party/nanopb/pb_decode.h',
30 '//third_party/nanopb/pb_encode.h',
31 ]
32 )