Adding back external_deps and public_hdrs.

pull/9240/head
Nicolas "Pixel" Noble 8 years ago
parent 60ca22fef5
commit e8dbd8aaae
  1. 14
      BUILD
  2. 29
      grpc-build-system.bzl

14
BUILD

@ -537,11 +537,13 @@ grpc_cc_library(
"include/grpc/grpc_security.h",
"include/grpc/census.h",
],
external_deps = [
"libssl",
"zlib",
"nanopb",
],
deps = [
"//external:libssl",
"//external:zlib",
":gpr",
"//external:nanopb",
],
language = "C",
)
@ -690,9 +692,11 @@ grpc_cc_library(
"include/grpc/impl/codegen/sync_posix.h",
"include/grpc/impl/codegen/sync_windows.h",
],
external_deps = [
"libssl",
"protobuf_clib",
],
deps = [
"//external:libssl",
"//external:protobuf_clib",
":grpc",
],
)

@ -1,32 +1,21 @@
def grpc_cc_library(name, srcs = [], hdrs = [], deps = [], standalone = False, language = "C++"):
#
# This is for the gRPC build system. This isn't intended to be used outsite of
# the BUILD file for gRPC. It contains the mapping for the template system we
# use to generate other platform's build system files.
#
def grpc_cc_library(name, srcs = [], public_hdrs = [], hdrs = [], external_deps = [], deps = [], standalone = False, language = "C++"):
copts = []
if language == "C":
copts = ["-std=c99"]
native.cc_library(
name = name,
srcs = srcs,
hdrs = hdrs,
deps = deps,
hdrs = hdrs + public_hdrs,
deps = deps + ["//external:" + dep for dep in external_deps],
copts = copts,
linkopts = ["-pthread"],
includes = [
"include"
]
)
def nanopb():
native.cc_library(
name = "nanopb",
srcs = [
'//third_party/nanopb/pb_common.c',
'//third_party/nanopb/pb_decode.c',
'//third_party/nanopb/pb_encode.c',
],
hdrs = [
'//third_party/nanopb/pb.h',
'//third_party/nanopb/pb_common.h',
'//third_party/nanopb/pb_decode.h',
'//third_party/nanopb/pb_encode.h',
]
)

Loading…
Cancel
Save